hi there,
I hope you can help me with a problem; first, please don't worry about my language skills, I come from germany and I don't speak english every day, unfortunately :-(
I'm using jquery tabs in ajax mode and have some problems concerning click events. An example: I initalizate in my first and second tab such a click function on a button:
$(".new_message").live("click", function() { alert("test"); });
Now imagine following: a user clicks on the first tab and the button marked with class "new_message" is holding the defined click function. Up to here everything is fine, but on selecting the second tab, which has got the same button, there is a problem: javascript alerts two time "test", but I only want to get it once. I searched a lot to solve this problem, all solutions I got were to use the live function, but i did so and it's not working.
Is there a possibility to make this work, even in ajax tabs? Please note, that the javascript content of a tab was not loaded until it was selected. I'm not caching my tabs, so the content of the tab fires again and again (so if you click on tab 1, than tab 2 and again tab 1, the script alerts three times "test")...
I hope you get it, whatever ;o) Cheers, Bamboo