Implement Ajax not only from the viewpoint of users but even search engines
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.