Hello,
I'm creating a widget using jQuery. It's a charting widget which communicates with the server (PHP) through ajax to update the chart.
My problem is that I need 2 of this widget on the same page without one overwriting the other. How can I encapsulate the javascript code without using the same code twice and without defining separate events for each chart control, update button, etc. ?