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 use Javascript in DotNetNuke moduleHow to use Javascript in DotNetNuke module
Previous
 
Next
New Post
5/10/2008 4:58 AM
 

Hi,

My skill in DotNetNuke module is so weak. Please help me materials to use Javascript in DotNetNuke module? Can you tell me how many ways to use or add Js in DotNetNuke module, please? If you can, please share me examples.

 I am reading a tip from _http://www.howtodotnetnuke.com/Blog/tabid/54/EntryID/4/Default.aspx and try to use it in DotNetNuke module. However, there are many errors such as

tipobj.style is not an object.

 
New Post
5/12/2008 10:13 AM
 

You can include JS in a DNN module just like you would in any other .NET application.

You can include it inline, you can use the ClientScript object to register blocks of script, and startup scripts.  They key is that you must be aware of the dynamic ID's of controls when referencing them in DotNetNuke.  Due to the way that INamingContainer works in .NET your ID's are modified by DNN, so when working with scripting you must be sure that you call the .ClientId property of your controls to get the proper ID when building your JS.

I will have an example later today posted to my blog that shows how to do this!


-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
5/12/2008 9:33 PM
 

Thank you for your help. I gradually know how to work with js in DNN.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to use Javascript in DotNetNuke moduleHow to use Javascript in DotNetNuke module


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