[jQuery] Re: problems extracting links and redirecting to function

2009-02-28 Thread hybris77
you rock man, thanks that works. amazing stuff, I've no idea why that would work but apparently because of event bubbling, I'll read up on that many thanks again On 28 Feb, 18:52, Karl Swedberg wrote: > Ah, in that case you might want to use the .live() binding: > > $( "#wiki_content a" ).live

[jQuery] Re: problems extracting links and redirecting to function

2009-02-28 Thread Karl Swedberg
Ah, in that case you might want to use the .live() binding: $( "#wiki_content a" ).live('click', function(event) { event.preventDefault(); var link = $(this).text(); searchDelay( link ); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 28, 2009

[jQuery] Re: problems extracting links and redirecting to function

2009-02-28 Thread hybris77
thanks for the feedback, that is a much better solution, however I don't seem to be getting hold of the tags that im after, the problem might be the fact that the div containing the tags is not yet populated when the jquery function to get them runs... but im not sure the div #wiki_content is po

[jQuery] Re: problems extracting links and redirecting to function

2009-02-28 Thread Karl Swedberg
I think it would be a lot simpler to rely on jQuery's implicit iteration: $( "#wiki_content a" ).click(function(event) { event.preventDefault(); var link = $(this).text(); searchDelay( link ); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 2