[jQuery] Re: New link being ignored by jQuery

2009-01-20 Thread Mark MacInnes

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.


[jQuery] Re: New link being ignored by jQuery

2009-01-20 Thread Rick Faircloth

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.



[jQuery] Re: New link being ignored by jQuery

2009-01-19 Thread Rick Faircloth

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.



[jQuery] Re: New link being ignored by jQuery

2009-01-19 Thread Karl Rudd

Check out the documentation for several solutions:

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_..._.3F

Karl Rudd

On Tue, Jan 20, 2009 at 5:14 AM, Mark MacInnes
markamacin...@googlemail.com wrote:

 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.



[jQuery] Re: New link being ignored by jQuery

2009-01-19 Thread Erik R. Peterson


I did check it out... It still doesn't work.  All of the scripts in  
div tags, both Mootools and jquery...


Need help..

Erik


On Jan 19, 2009, at 4:47 PM, Karl Rudd wrote:



Check out the documentation for several solutions:

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_..._.3F

Karl Rudd

On Tue, Jan 20, 2009 at 5:14 AM, Mark MacInnes
markamacin...@googlemail.com wrote:


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.