> I am loading a page with severl jquery events on one of the divs.
> Depending on interaction with the user, the div triggering the jquery
> events could be reloaded from an ajax call.  But as it stands now, new
> content that is added to the dom is not triggering the code in the
> original $(document).ready() supplied in the head.  If I want the page
> to set up those events again, I have to reimport the js file
> containing my jquery events (this causes to copies to exist in the
> dom.
>
> Is there a way to force the existing jquery scripts to rebuild its
> event stack based on  the new dom content?
>
> I was thinking something like
>
> $(document).rebindDom()

Please check out the LiveQuery plugin.  I think it's exactly what you
need:

http://docs.jquery.com/Plugins/livequery

Mike

Reply via email to