Java Entrepreneur

Java Application Development & Entrepreneurship

Implement Ajax not only from the viewpoint of users but even search engines

We all know that webmasters are increasingly using Ajax to improve user experience but we also need to consider the fact that crawlers have a pretty hard time with JavaScript. In order to ensure better compatibility between Ajax and search engine spiders Google Webmaster blog has offered certain tips which could help in creating better Ajax web pages not only from the viewpoint of users but even the search engine too. In order to ensure that Ajax and static links coexist Google says that you should format the links so that there is a static link while JavaScript function is also called. At the end of the day it would ensure Ajax functionality for JavaScript users whereas non- JavaScript users would be able to ignore the script and follow the link. If you still have not been able to get a hold of what I am saying go through the example to get a better understanding of it.

10053329.jpg

foo 32

Note that the static link's URL has a parameter (?foo=32) instead of a fragment (#foo=32), which is used by the Ajax code. This is important, as search engines understand URL parameters but often ignore fragments

What we are able to achieve as a result of it is not only a static link to the search engine but even the Ajax path is not ignored by the crawler with the use of onClick function. My advice to everybody out there working with Ajax is to not hesitate using it but implement it with proper understanding so that at the end of the day you meet both the interests of users and search engine.

Info & Utils

Published in Saturday, November 10th, 2007, at 12:38 am, and filed under AJAX.

Do it youself: Digg it!Save on del.icio.usMake a trackback.

Previous text: .

Next text: .

Leave a Reply

Java Entrepreneur © 2007. Theme Squared created by Rodrigo Ghedin.