I’m trying to use jQuery UI tabs much like a Master Page in ASP.Net. I have specific javascript that needs to run once each tab is loaded. I’ve tried to have a $(document).ready function in each page, but I’ve read that’s bad practice and only seems to work in IE.
I know there’s a load event, but I need to the event to be specific for each tab and I’m not sure how to accomplish this, or if it’s even possible. I may have to revert to using and actual MasterPage with postbacks for each page load.
Where did you read that it’s bad practice?
Afaik, having multiple
$(document).ready()‘s will simply make them “merge”, so that all code that is in either of them will run. I don’t remember if that’s new in jQuery 1.3 though, so you might want to check that out.