Glad to hear it!

Rick

> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On 
> Behalf Of Mark MacInnes
> Sent: Tuesday, January 20, 2009 5:12 AM
> To: jQuery (English)
> Subject: [jQuery] Re: New link being ignored by jQuery
> 
> 
> Hi Rick,
> 
> Thanks for your response. I've got it working now. I used the
> LiveQuery plugin that you recommended. It took a few attempts but I've
> finally managed to get it working!
> 
> Thanks again. Saved me a *lot* of time!
> Mark
> 
> 
> On Jan 19, 9:44 pm, "Rick Faircloth" <r...@whitestonemedia.com> wrote:
> > Hi, Mark...
> >
> > Check into the LiveQuery plug-in and use it on your .click element.
> > (see the instructions at the plug-in site).  You can also use .live function
> > built into jQuery 1.3, if you're using that.  But I understand the .live 
> > function
> > has some limitations that the LiveQuery doesn't have.
> >
> > hth,
> >
> > Rick
> >
> > > -----Original Message-----
> > > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On 
> > > Behalf Of Mark
MacInnes
> > > Sent: Monday, January 19, 2009 1:14 PM
> > > To: jQuery (English)
> > > Subject: [jQuery] New link being ignored by jQuery
> >
> > > I'm using jQuery to perform some ajax when a link with a certain id is
> > > clicked on. The ajax updates a database record and then it replaces
> > > the 'a' tag with a new one. This all works fine. The new 'a' tag has
> > > the same id as the old one, but text and some other properties on it
> > > change. It's the id that activates the jQuery functionality.
> >
> > > When the old 'a' tag is replaced with the new one the jQuery that
> > > should operate doesn't work. I understand that this is because the new
> > > 'a' tag has been added after the page loaded so jQuery doesn't know to
> > > fire when it's clicked on. Is there anything I can do that will force
> > > jQuery to fire when the new 'a' tag is clicked?
> >
> > > I suspect this has probably been answered a million times, but I don't
> > > just can't find the right search terms.

Reply via email to