Multiple Controls on a Page with Multiple Instances of Javascript

Posted by mattdell on Stack Overflow See other posts from Stack Overflow or by mattdell
Published on 2010-05-10T23:17:42Z Indexed on 2010/05/10 23:24 UTC
Read the original article Hit count: 298

Filed under:
|
|
|

I have created a Web Control in ASP for use in integrating with Telligent CommunityServer. The control is written in ASP with some 10 lines of C# backend for controlling visibility of the UI elements based on permissions, but I'd say 90% of the functionality is straight-up Javascript.

The control works beautifully, until you drop two instances of the Control on the same page--since they reference the exact same Javascript functions, only one control works.

How can I take this functionality that I have, this 1200 lines of Javascript, and make it so that each instance of the control can reference its each unique instance of Javascript?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about asp