Liquid Fire Posted June 25, 2007 Share Posted June 25, 2007 I am building a website for a travel company and a lot of the main content(about destinations/hotels/events/etc..) are being pulled from AJAX. The issue it that all this information is not going to be picked up by the search engines because they do not understand Javascript. Is there a way to get all the possible content on a page(basically call all possible ajax calls for the search engine but not the display this content) including the content AJAX can pull for the search engine to see? I hope their is a way because if not I will not be able to use AJAX at all( they sell mostly thought their website so that need to be very SE friendly). I know i posted this in the javascript forum so please no grief about double posting, i want them to delete that post since it belongs here. Quote Link to comment Share on other sites More sharing options...
mainewoods Posted July 2, 2007 Share Posted July 2, 2007 in your links that call ajax to update the page, do this: <a href="actual url" onclick="ajaxupdate();return false;">Link</a> the href specified there would be a separate page that contains the contents that the ajax would return to the current page. The search engines would follow the link there and index that page. Another method is just to put a big NOSCRIPT tag at the top of the page with links to the rest of your pages and some content for the search engines to chew on. Bottom line, search engines index no content generated by javascript. Only content found on page load with no js execution will be indexed. Turn off js in your browser and then reload the page, that's what search engines see. If any links are now dead because they are js only, then those links are invisible to search engines and any content retrieved that way will not be indexed. If search engines are very important, built the website with js turned off first, making sure all content can be retrieved with js off. Only then add js. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.