Jump to content

Ajax and Search Engines


Liquid Fire

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.