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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Adding javascript to a page ..Adding javascript to a page ..
Previous
 
Next
New Post
7/30/2006 9:49 AM
 

Various situations call for adding javascript to a page in various areas .. for example, the new Amazon product review feature requires an additional javascript section after all of the material but before the end </body> tag

Using a text/html module in the bottom pane, or trying to put it in the footer doesn't seem to work - footer is too short and the module says "not available"

So I'm wondering .. is there a general approach to placeing javascript (and falsh objects) in various places?

Head

Body - before content

Body after content

Outside body but before and html

etc.

Also addressing the insertioon of the script tag itself vs insertion of a file load statement for external javascript file in cases where is does not fit directly (eg the Header area via the site setting Header text box whihc seems to have a maximum)

Maybe this is addresses somewhere and I missed it? If so just point me to it. TIA

 
New Post
7/30/2006 11:13 AM
 

DotNetNuke Modules from Snapsis.com
 
New Post
7/30/2006 11:32 AM
 

Hi:

Thanks for that .. but I am looking for a way to add it as a module to a page in all of the various areas it may be needed in without having to resort to skin changes.

The way a page admin/editor would want to do it

I was thinking it existed but I just didn't see it yet .. but maybe there needs to be a new module? An "add javascript to wherever" module? Or am I being goofy?

 
New Post
7/30/2006 12:20 PM
 

 

You could use the text/html module, but keep it in text mode, and don't switch to design view.
Technically javascript should be in the head section, but I have use this method without trouble.

You can also put it in the page settings > page header tags like you mentioned and it will go to the head .

If the text is too large then you should consider putting it in an external file and linking to it.


DotNetNuke Modules from Snapsis.com
 
New Post
7/30/2006 12:40 PM
 

Hi:

Text? I assume you mean the html tab since there is only design and html tabs. (even though the module is called text/html implying the design tab is text if the html tab is html  :)

Anyway, it causes "error -  the module is not available" which I have reported several times to the forums with no replies or comments. I'm using 4.3.3 .. maybe it is a version issue?

Even if it worked .. I think we may still need a consistent way to add javascript in places it is not currently provided  for page editing .. particularly with so much new javascript activity (ajax and all) as well as flash.

Or maybe I am missing the big picture?

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Adding javascript to a page ..Adding javascript to a page ..


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