Quoting Laurent Goussard <[EMAIL PROTECTED]>:

> If I update the content of my page using a jQuery method, I can't
> access the new elements using jQuery. document.getElementById works,
> document.getElementsByName works, prototype' $() works, firebug list
> the new DOM elements, but jQuery considers thoses elements does not
> exists...

It is my understanding that jQuery does consider those elements to
exist. This is demonstrated by the fact that our previous example works
- ie. appending a string to an element then immediately "find"ing an
element created from that string. Maybe I don't understand this aspect
of your problem correctly?

> I can understand that jQuery needs the document to be ready to
> trigger
> any event, but the event has already been declared and the DOM is
> up-to-date so, the DOM as jQuery listed it is supposed to be up to
> date too, isn't it ?

The event has "already been declared" only for the elements that existed
at the time. Are you expecting jQuery to automatically check for .test
elements every time the DOM is added to and then attach your event
handler if one is found? It does not do that automatically but if it is
even feasible then a plugin could possibly be made to add 
that functionality.

> Is there a reload DOM method I can call without having to redeclare
> each handler I need ?

My preference would be to use event bubbling as detailed by Juha Suni
earlier in this thread. That way you can add to the DOM and not have to
reattach the event handlers each time which is what I think you want.

Joel.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to