[jQuery] Re: Reinit $(document).ready()

2008-08-21 Thread Mike Alsup
> How do I trigger the ready() event listener on content that is > dynamically loaded via ajax?  I am loading a chunk of html into a div > has a bunch of items that trigger the same scripts previously loaded. > How do I get jquery to reinit all the listeners from $ > (document).ready() on the cont

[jQuery] Re: Reinit $(document).ready(); -----HELP

2008-08-20 Thread sissi
hello again I found the solution. The secret is to add an ajaxComplete-Event- Handler to the element that gets the ajax-html attached. That is the link that helped me: http://drupal.org/node/274566 Cheers Sissi

[jQuery] Re: Reinit $(document).ready(); -----HELP

2008-08-20 Thread sissi
Hi guys I got a similar problem :-) I want to get an element by ID that is inside the HTML that I've just added via ajax. But when I look for the ID the new HTML is not inserted completely yet so it doesnt find the element I am looking for. How can I do something like that: Wait with getting el