the story:
I use ajax a lot inside a certain project, I build floating divs and populate them with different content using ajax (similar with how facebook works when using the popups).
The problem I have is when getting an ajax page I need to reinclude all javascript inside that page in order for the javascript functions to work properly.
In short when I output the ajax content i do again the <script src='.. things
The big problem is that this slows down the application as there are additionally calls for the javascript files that are already included in the parent window.
How do you handle this issue? Thank you!
What issue? If you are about handlers that you’ve attached to an events of dynamically added objects, then, in case of using jquery, your best bet would be livequery plugin.