[jQuery] Re: Using .live and .each

2009-08-06 Thread James
In that case, $.live is not used for that. $.live works for browser events like mouseover, mouse clicks, field focus, etc. For your issue, just put the converter code into a function of its own and run it again after your ajax is completed and the DOM is modified with the new content. Otherwise yo

[jQuery] Re: Using .live and .each

2009-08-06 Thread Nic Hubbard
Sorry, I slipped up while typing. I meant I am NOW using ajax as well. Using ajax I bring in new content such as: my iso date Each time I insert these into the DOM they need to be converted. The above script was used to convert them on page load and did not account for content being added usi

[jQuery] Re: Using .live and .each

2009-08-05 Thread James
It's not clear what you want to do. You said you are "not using ajax" but you have content "brought in through ajax". What exactly do you need $.live for? For what browser event? On Aug 5, 1:17 pm, Nic Hubbard wrote: > Anyone?  Someone must have done this... > > On Aug 5, 11:32 am, Nic Hubbard

[jQuery] Re: Using .live and .each

2009-08-05 Thread Nic Hubbard
Anyone? Someone must have done this... On Aug 5, 11:32 am, Nic Hubbard wrote: > I have a script that runs when I load the page which converts some > dates.  I am not using ajax as well, and I need to use .live to > convert the dates that I brought in through ajax.  How would I > combine .live w