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...Javascript, How?Javascript, How?
Previous
 
Next
New Post
4/5/2007 2:32 PM
 
Pretty simple problem here.

I need to add some javascript to a page, but I have no idea how to.  The code is very simple, but I need some in the header as well as an include for a .js file.

What's the easiest way to go about this?  Is there a module I can use?  Or maybe a way I can add the .js to the main DNN files (I don't care if its included on every page)?

I imagine there is an easy solution to this as it would be desired by a lot of people, I just can't seem to find anything on Google.

Thanks in advance!
 
New Post
4/5/2007 3:47 PM
 

There are several ways to do this. You can include it in your skin, container, or in a single text/html instance. If you have an external js file to reference, your best bet is to include a reference in your skin file.


Rich Campbell
Engage : Your ideas, Our know-how
DNN Experts
St. Louis, MO
314.966.4000
 
New Post
4/5/2007 5:29 PM
 

 

 

Here is a way to get it into the head section where it belongs:

Add a Javascript link to the Head section from your skin


DotNetNuke Modules from Snapsis.com
 
New Post
4/6/2007 12:41 AM
 

DSlocalizator is module that can include .js file at many different locations (and bases on current language if you like). You can include .js files inside head, inside body, inline, etc

ahhh.. and it is free!!

http://dnn.tiendaboliviana.com

Hope it helps


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Javascript, How?Javascript, How?


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