Multiple Controls on a Page with Multiple Instances of Javascript
- by mattdell
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?