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 ...How to add javascript include files?How to add javascript include files?
Previous
 
Next
New Post
4/16/2009 9:41 AM
 

I've tried this but when I click on the image it just keeps spinning saying loading, but never pops up with the enlarged image. I placed the code in the header tag under settings. Any idea why it's doing this?

Thanks

 
New Post
4/16/2009 8:27 PM
 

What image are you talking about? When you save the changes to the page?

I should have probably mentioned that there is also a characther limit when placing tags in the header. If you go over that limit then you could possibly get errors due to an open tag. I don't know what the limit actually is, so if you are placing a full script in the header, I would advise against it.

Best approach is to add a reference to the script and place the script in your js folder.

I learned the hard way:http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/108/threadid/237084/scope/posts/Default.aspx

Also make sure you are trying to enter the script reference in the "PAGE" header, and not the header under module settings. Some scripts can run under the module settings header, but rarely get loaded in the header tag. If you have a script that needs loaded in the header tag, you will need to do it under page settings.

For a much safer solution, there are some 3rd party modules out there on Snowcovered that can inject your scripts where you need them. I believe Will Strohl also came up with an opensource script injector that can be found on CodePlex.

If you used my example code, be sure to remove the extra spaces before and after the < and >

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to add javascript include files?How to add javascript include files?


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