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...How Do I Add This Javascript Code To My Page?How Do I Add This Javascript Code To My Page?
Previous
 
Next
New Post
11/16/2006 10:47 AM
 

I found this great javascript code I would like to add to my website (www.socialize-it.com) and was wondering what module I can put this code into? Will it work with text/html module? Or is there a module I can buy which will let me insert javascript anywhere into my page (because it actually produces a button on my page).
_____________________

Stephanie

www.FEECO.com | www.ENCAP.net

 
New Post
11/16/2006 10:57 AM
 

 

There are a couple ways.  For a small amount of Javascript, use a text/html module, but instead of putting your Javascript in the edit text box, go to the Module Settings > Advanced and put it into the Header field of the module. If you already have a text/module on the page, just use that one instead of creating a new one just for the javascript.

If you want to make a link to an external JS file you can use the method from my blog post here:

Add a Javascript link to the Head section


DotNetNuke Modules from Snapsis.com
 
New Post
11/16/2006 11:02 AM
 

Thank you very much, that works great!
________________

Stephanie

www.FEECO.com | www.ENCAP.net

 
New Post
11/16/2006 1:49 PM
 

Have another Javascript question and this seemed to be a good place to put it.

How do you correct the javascript problems caused by 2 modules that don't work well together on the same page.
Example:  Aggregator, and Tool Tip Pro?
You put both of these on a page and the Tool Tip mouse overs always error.
I am sure there are other examples people have seen.

Thanks!

 
New Post
11/17/2006 7:44 AM
 

You should get the two module vendors involved to insure that they write javascript functions with unique names.  Javascript does not have namespaces, so all functions in a javascript should begin with a unique pseudo-namespace.

DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How Do I Add This Javascript Code To My Page?How Do I Add This Javascript Code To My 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