HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...DNNLabelEdit & XHTML ComplianceDNNLabelEdit & XHTML Compliance
Previous
 
Next
New Post
3/12/2007 10:45 AM
 

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 7: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 6: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 8: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 9: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 DotNetNuk...Using DotNetNuk...Administration ...Administration ...DNNLabelEdit & XHTML ComplianceDNNLabelEdit & XHTML Compliance


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.