[jQuery] Re: Selector don't work when adding html to page

2008-11-20 Thread ricardobeat
You can handle that issue with event delegation, try the Livequery plugin: http://brandonaaron.net/docs/livequery/ - ricardo On Nov 20, 3:42 pm, jetm <[EMAIL PROTECTED]> wrote: > Thanks, work very well. I'm understand is part the ajax philosophy, > > Hector, there is another solutions for this c

[jQuery] Re: Selector don't work when adding html to page

2008-11-20 Thread jetm
Thanks, work very well. I'm understand is part the ajax philosophy, Hector, there is another solutions for this common problem in ajax requests? tia, jetm On Nov 20, 11:19 am, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > Oops, i meant "they won't have target='_blank'" > :) > > -Hector > > On Th

[jQuery] Re: Selector don't work when adding html to page

2008-11-20 Thread Hector Virgen
Oops, i meant "they won't have target='_blank'" :) -Hector On Thu, Nov 20, 2008 at 9:18 AM, Hector Virgen <[EMAIL PROTECTED]> wrote: > This is a common problem with ajax requests. What's happening is the > selector only applies to elements that exist on the page at the time the > selector was c

[jQuery] Re: Selector don't work when adding html to page

2008-11-20 Thread Hector Virgen
This is a common problem with ajax requests. What's happening is the selector only applies to elements that exist on the page at the time the selector was called. Once your ajax request has updated the page with more elements, they won't have click events because they didn't exist when the selector