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.0Client-Centric Module DevelopmentClient-Centric Module Development
Previous
 
Next
New Post
10/12/2007 6:12 PM
 
I'm thinking of moving to DNN, but I use a lot client-centric javascript and ajax. ie. NO UpdatePanels. The problem is, if I have two module instances on a page, how do I get my javascript to play nice? For example, if I'm doing some client side validation of textbox controls, how do I differentiate between Module1 and Module2 text fields? In javascript I would use the $get or $find to reference the text fields, but I can't use these without getting the server control ClientID. Same with using $addHandler method, how can I hook client side events up to the correct modules? I also usually have my javascript in a .js file which gets referenced using the ScriptManager. So I can't easily do inline server-side tricks to get the ClientID.

Thanks in advance for any help or advice.
 
New Post
10/12/2007 9:00 PM
 

I cover these issues on this site:

http://dnnsilverlight.adefwebserver.com/

It's about Silverlight but Silverlight uses JavaScript so it's really about JavaScript. Basically I dynamically generate JavaScript classes with the module number appended to them. This keeps them separate.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
10/15/2007 10:24 AM
 

I will be covering this exact topic during my session at OpenForce Vegas.  A little more detail on the module I am writing can be found in this blog.  Hopefully you can attend.  If not, I will have a sample module available shortly afterwards.

 


 
New Post
10/16/2007 12:25 PM
 
Thanks for the responses guys, much appreciated. The silverlight solution is good, but that method will only work when using silverlight. I need a solution which will work with the asp.net ajax framework. Here is an example, you click a button and need a hide a panel. This works fine when using silverlight as the framework has a sender.findName function. The problem is, there is no such method that I'm aware of for asp.net ajax framework. I need something that will work with the $addHandler method.

Jon, I'm interested in seeing your sample module when it's available.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Client-Centric Module DevelopmentClient-Centric Module Development


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