[jQuery] Re: live event with instant execution

2009-12-26 Thread speedpac...@gmail.com
Hi, What you say is exactly what the alternative would be. Just you have better insight of what is needed... I have a class "tip_class". Each element that has this class needs to have a tooltip initiated. What I do when the page is loaded, is indeed loop through all elements that have this class

[jQuery] Re: live event with instant execution

2009-12-25 Thread Johan Borestad
Hi! I'm not really sure of what you're trying to do, but the main problem is that you're not passing all selectors to your flexinInitialiseElement method. Maybe somethingl like this will help you. It's iterationg through all dom nodes and passing them to flexinInitialiseElement. $("*").each(functi

[jQuery] Re: live event with instant execution

2009-12-25 Thread Šime Vidas
The load event wont help you... it has to do with stuff having finished loading, but you are creating new elements based on an AJAX response, so the new elements are not being loaded at all. Well, you can allways initialize the elements after you create them I can't see the problem For e

[jQuery] Re: live event with instant execution

2009-12-25 Thread speedpac...@gmail.com
Basically execute additional javascript code based on a classname adding functionality to these elements... I tried the following, but it doesn't seem to be working... jQuery('*').load(function () { // run code console.log("DEBUG: Initialising element " + jQuery(this)); fle

[jQuery] Re: live event with instant execution

2009-12-24 Thread Šime Vidas
What does "initiating elements" mean?

[jQuery] Re: live event with instant execution

2009-12-24 Thread speedpac...@gmail.com
Hmm - not sure if correct, but would the load event be the one I should be looking at? Sorry for answering my own question, but if someone could confirm, i would feel a lot better ;) David. On 24 dec, 11:28, "speedpac...@gmail.com" wrote: > Hi, > > I do have elements which are being initiated wh