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...Performance and...Performance and...W3C Validation on DNN6 - Would moving javascript to an external file solve it?W3C Validation on DNN6 - Would moving javascript to an external file solve it?
Previous
 
Next
New Post
9/16/2011 8:08 PM
 
Really... as a skin developer you can suffer to make your DNN Skins W3C compliant. Our newest problem: a javascript on Default.aspx file.
<script type="text/javascript">
        
        //This code is to force a refresh of browser cache
        //in case an old version of dnn.js is loaded
        //It should be removed as soon as .js versioning is added
        jQuery(document).ready(function () {
            if (navigator.userAgent.indexOf(" Chrome/") == -1) {
                if ((typeof dnnJscriptVersion === 'undefined' || dnnJscriptVersion !== "6.0.0") && typeof dnn !== 'undefined') {
                    window.location.reload(true);
                }
            }
        });
</script>

That code is on 06.00.00 and 06.00.01. And the "&&" is causing the W3C validation error...

So the question here is... If we put this code on a separate js file, will it work properly? Please someone tell us yes!


Thanks for any help, guys!

Ally

 
New Post
9/18/2011 8:22 AM
 
See this ticket in gemini for the solution:

http://support.dotnetnuke.com/issue/V...

The solution is to put cdata around the javascript.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...W3C Validation on DNN6 - Would moving javascript to an external file solve it?W3C Validation on DNN6 - Would moving javascript to an external file solve it?


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