Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNNLabelEdit & XHTML ComplianceDNNLabelEdit & XHTML Compliance
Previous
 
Next
New Post
3/12/2007 12:45 PM
 

Hi,

I have just started making our website XHTML compliant and got stuck with the text/html module rendered inside a div issue. After going through various posts I upgraded the webcontrols on my dev site to the latest version 1.5 and changed the DNNLabelEdit control to include " RenderAsDiv="true" " as mentioned in this post

After upgrade the rendered html has no effect, I have lost the ability to directly edit text and i get a javascipt warning (only after logging in as host) that "dnn is undefined".

I am using DNN 4.4.1 with XHTML conformance set to transitional in web.config. Following is the snippet of rendered html:

<span id="dnn_ctr1354_ContentPane" align="left">
 <!-- Start_Module_1354 -->
 <div id="dnn_ctr1354_ModuleContent">
  <div id="dnn_ctr1354_HtmlModule_HtmlModule_lblContent" class="Normal">

 sample text

  </div>
 <!-- End_Module_1354 -->
 </div>
</span>

 
New Post
3/12/2007 9:12 PM
 
It sounds like you only replaced the dll, and not the corresponding javascript.  See this blog for a little more info.

 
New Post
3/13/2007 8:14 AM
 

Thanks for the reply Jon. Yes i did extract the zip file over the root directory but you were right that the javascript files did not copy over.

Anyways, after copying the javascript the module seems to be working fine with no javascript errors. However, the rendered HTML is still the same as i have put in my previous post therefore I am still getting compliance errors.

This is how my DNNLabelEdit control looks like:

<dnn

:DNNLabelEdit id="lblContent" runat="server" cssclass="Normal" enableviewstate="False" MouseOverCssClass="LabelEditOverClassML" LabelEditCssClass="LabelEditTextClass" EditEnabled="False" MultiLine="True" RichTextEnabled="True" RenderAsDiv="True"></dnn:DNNLabelEdit>
 
New Post
3/16/2007 10:10 AM
 

I still can't get my head around this. There something obvious I am missing. I have a login module on the home page which also gets wrapped around the span and produces validation errors. Besides, RenderAsDiv="true" appears in the html and produce validation error. Is the top level span being generated by Text/HTML module?? If not, how do i change it to div and remove align="left".

<span id="dnn_ctr1354_ContentPane" align="left">
<!-- Start_Module_1354 -->
<div id="dnn_ctr1354_ModuleContent">
<span id="dnn_ctr1354_HtmlModule_HtmlModule_lblContent" class="Normal" RenderAsDiv="true">

Text/HTML Module text Here

</span>
<!-- End_Module_1354 -->
</div>
</span>

Has anyone else had these issues?? Any help would be greatly appreciated.

 
New Post
3/22/2007 11:41 AM
 

i solved the problem with Lee Sykes help. Please refer to the follwing post:

http://www.dnncreative.com/Forum/tabid/88/forumid/4/postid/3461/view/topic/Default.aspx

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNNLabelEdit & XHTML ComplianceDNNLabelEdit & XHTML Compliance


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out