[jQuery] Re: slideToggle stops working after refreshing content with Ajax

2009-12-03 Thread jpcozart
more. See:http://docs.jquery.com/Events/live Regards Maurício   -Mensagem Original-   De: Sala   Para: jQuery (English)   Enviada em: sábado, 28 de novembro de 2009 23:28   Assunto: [jQuery] Re: slideToggle stops working after refreshing content with Ajax   Thanks thanks so much

Re: [jQuery] Re: slideToggle stops working after refreshing content with Ajax

2009-11-29 Thread Mauricio (Maujor) Samy Silva
: sábado, 28 de novembro de 2009 23:28 Assunto: [jQuery] Re: slideToggle stops working after refreshing content with Ajax Thanks thanks so much I tried to rebind the event handlers and for some reason that did not work. However, the plugin worked perfectly! Thanks once again, I

[jQuery] Re: slideToggle stops working after refreshing content with Ajax

2009-11-28 Thread jpcozart
You can use the Live Query plugin to resolve this problem: http://docs.jquery.com/Plugins/livequery Or you can rebind the event handlers after the ajax call has updated the page. The new nodes do not have event handlers bound to them when they replace the old nodes: function refreshcontent(){

[jQuery] Re: slideToggle stops working after refreshing content with Ajax

2009-11-28 Thread jpcozart
You can check out the livequery plugin here which addresses this issue: http://docs.jquery.com/Plugins/livequery or you can rebind the event after the ajax call: function refreshcontent(){ $.get(mycontent.php, function(data){ $(#container).animate({ opacity: hide }, 200);

[jQuery] Re: slideToggle stops working after refreshing content with Ajax

2009-11-28 Thread Sala
Thanks thanks so much I tried to rebind the event handlers and for some reason that did not work. However, the plugin worked perfectly! Thanks once again, I spent days on this On Nov 28, 2:17 pm, jpcozart jeremy.coz...@gmail.com wrote: You can use the Live Query plugin to resolve this