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  |  

telerik -- supercharge your DNN websites
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  javascript problem
Previous Previous
 
Next Next
New Post 6/28/2008 3:59 PM
Resolved
User is offline Peter
33 posts
10th Ranked


javascript problem 

Hi

I have a problem with my module and javascript. When I add only once this module on page or add two modules but on diffrent pages everything is correct but when I add two (or more)  the same modules on one page then javascript works only with last added module? Is there any way to 'bind' javascript with each module on the same page?

thanks in advance

 
New Post 6/28/2008 6:29 PM
User is offline William Severance
842 posts
www.wesnetdesigns.com
7th Ranked






Re: javascript problem 

For modules with simple/limited amounts of Javascript, spend a bit of time understanding the concept of the Naming Container and the need to pass the ClientID (rather than simply the ID) of controls into your JS methods. For more involved Javascript needs, look into client-side scripting using component, behavior, control extenders, script controls, etc. provided in the MS AJAX framework and MS AJAX Control Toolkit. You'll also find some interesting reading about the DNN ClientAPI and DNN Control development on Jon Henning's website http://www.codeendeavors.com.

 


Bill, WESNet Designs
 
New Post 7/9/2008 3:48 AM
User is offline Peter
33 posts
10th Ranked


Re: javascript problem 

Thanks a lot - that was very helpfull clue.

 
New Post 7/10/2008 2:59 AM
User is offline Agung Riyadi
100 posts
9th Ranked


Re: javascript problem 

Communicating between .ascx and Javascript without using ClientID is possible with this free control : http://code.msdn.microsoft.com/RegClientControls

RegClientControls can make caller from external javascript into your web form control ID without using <%= ... %> again.

It is really helpfull. Try that !

HTH.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  javascript problem
 


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.

 


DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de
The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com
DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com

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