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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0javascript problemjavascript problem
Previous
 
Next
New Post
6/28/2008 5:59 PM
 

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 8:29 PM
 

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
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
7/9/2008 5:48 AM
 

Thanks a lot - that was very helpfull clue.

 
New Post
7/10/2008 4:59 AM
 

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
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0javascript problemjavascript problem


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