Sunday, November 29, 2009

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

jQuery 1.3 version introduces an event method called live() that resolves this issue.
Sice that version you don't need the *livequery plugin* never more.
 
 
Regards
 
Maurício
-----Mensagem Original-----
De: Sala
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

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 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:
...

No comments: