Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Engage Software - Training Partner for DotNetNuke
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  How to use Javascript in DotNetNuke module
Previous Previous
 
Next Next
New Post 5/10/2008 1:58 AM
User is offline Nguyen Minh Duc
74 posts
10th Ranked


How to use Javascript in DotNetNuke module 

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 7:13 AM
User is offline Mitch Sellers
5026 posts
www.mitchelsellers.com
3rd Ranked




Re: How to use Javascript in DotNetNuke module 

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
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.
View Mitchel Sellers's profile on LinkedIn

Visit mitchelsellers.com for DotNetNuke tutorials, modules and technical help

Custom DotNetNuke Services Available (Development, etc).

My sites are hosted with 3Essentials
 
New Post 5/12/2008 6:33 PM
User is offline Nguyen Minh Duc
74 posts
10th Ranked


Re: How to use Javascript in DotNetNuke module 

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

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  How to use Javascript in DotNetNuke module
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Marketplace - Modules & Skins
The DotNetNuke Marketplace is the official e-commerce gateway for the DNN ecosystem. It's the place to buy and sell DotNetNuke modules, DotNetNuke skins, and other DNN offerings.
DotNetNuke Marketplace
ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com
Sunset Hill Solutions - Consulting and Development
We offer general DNN consulting services - including custom module development and commercial module integration/setup.
www.sunsethill.ca

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP