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  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

MadCap Software, Inc.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


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.

 


CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
DocuPeak Business Process Management RAD
Comprehensive enterprise and government process management. Forms, documents, indexing, workflow, views, content intelligence, capture, etc. Point and click rapid application development.
www.Webiplex.com

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