I like Paul's solution better than mine. It's cleaner to attach an event
handler rather than rewrite the href attribute.

Does your page have a large number of <a> tags, or just a few? If there are
a lot of them and the jQuery code slows the page load down, you could use
event delegation to fix that, otherwise Paul's code is fine.

Neither bit of code has the slighest effect on search engines. Their spiders
don't run your JavaScript code - they see the original hrefs as they appear
in the HTML code your server generates. If you do a View Source in the
browser, that's what the spiders see.

-Mike

> Hi Michael & Paul
> 
> Thanks for your replies - both expressions work !
> (plus another I worked on prior to your responses).
> Just have to say thanks for the great jquery community 
> support offerred here
> 
> While I have your attention - had another question to ask....
> 
> Since I am translating the standard hrefs with calls to 
> jquery ajax fpr tje entire CMS how does this effect SEO and 
> other bots that 'spider' through the site
> 
> Will the bots and search engines "SEE the original HREF'S"
> and not execute the ajax calls - if so would Paul's approach 
> be better since it amounts to an onClick handler -where the 
> status bar shows original HREF
> 
> Thanks guys
> very much appreciated!
> 
> 

Reply via email to