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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How does the page creation process work?How does the page creation process work?
Previous
 
Next
New Post
7/30/2007 3:21 AM
 

I have a problem, and to get to the bottom of it I think I need to understand better how the DNN page creation process works.

I am using DNN 4.5.3 with all the standars settings.

When I right click on my home page and click 'View Source' I can see that several of the <script> tags that are used to include the javascript files for the menu bar etc do not have the required attribute "type=text/javascript"

Here is a sample of what I am talking about:

<script src="/js/dnncore.js" type="text/javascript"></script><script src="/js/dnn.js"></script><script src="/js/dnn.xml.js"></script><script src="/js/dnn.dom.positioning.js"></script><script src="/js/dnn.xmlhttp.js"></script><script src="/js/dnn.controls.dnnmenu.js"></script>

The lack of the type attribute dosen't cause a problem in most circumstances, but I have a client who accesses the site from a network with a security policy in place which prevents the browser from loading scrips with no type attribute, so when they access the site the menu is completely missing.

I can see that I need to somehow locath the code that is writing out these script tags and modify it so that it includes the type attributes, but I am new to DNN and I am having trouble understanding how and where thes tags are being written.

Do I need to download the source code for the core and dig around in that, or would it be somewhere else?  Would changing the menu 'provider' have any effect?

Any pointers would be much appreciated.

 

By the way, should I raise a bug-report for the missing type attribute? it is a required attribute for script tags, not optional, so I suppose this should be fixed in future versions?

Thanks

Steve

 

 

 
New Post
7/30/2007 12:15 PM
 

Steve,

First of all to fix this yes, you would need to modify code within the core, I am not 100% sure where it is in, but I would look around in the menu folders of the core library.

Secondly, another option exists for fixing it.  John Mitchell at Snapsis has a module called PageBlaster that can do runtime replacements, he uses it to generate 100% XHTML valid script from his site.  You might have a look at that product http://www.snapsis.com

Lastly, yes if you do not find a bug listed in Gemini it would be great if you could log it with specific details.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
7/31/2007 7:27 AM
 

Thanks for the pointers Mitchel, much appreciated.

Here is where I got to just in case it is useful to anyone else:

The code that produces most of the non-compliant tags is contained in the file:

/Library/Controls/DotNetNuke.WebUtility.ClientAPI.vb

By modifying the source in there and recompiling, most of the script tags can be generated correctly. However this is not where the tag which includes the DNNMenu script ( <script src="/js/dnn.controls.dnnmenu.js"></script> ) is generated.

I searched the entire source code for the string dnnmenu.js and I can't find it anywhere!

In the end I decided to take your advice and check out the DNNBlaster module from Snapsis, it is easy to configure and sorted the problem out for me - thanks again for thepointer!

I will raise a bug report for this issue if it dosen't already exist

Cheers

Steve

 
New Post
8/1/2007 9:43 AM
 

Steve,

I am glad that you got it the way you needed.

When you submit the bug request be sure to post your solution for the items you have already coded.  (It can help the core team get it done faster!)


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How does the page creation process work?How does the page creation process work?


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