Howdy,
Here's the situation:
You have a very complex UI element that is repeated in a list. Each has a menu on it, buttons, it hides and shows subelements, buttons for switch it's state, etc, etc. The elements are populated via JSON so you have to construct the elements and the functionality of the fly.
What's the best way to accomplish this with JQuery? Where would you save the reusable template for the DOM structure? How would you add the behavior on? $().live? .livequery? onclick? manual after every JSON get?
I guess I just see a lot of people doing different things. What's your experience with performance?
Any insight would be much appreciated.
Thanks, JPoz