SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru JoePrice's Avatar
    Join Date
    Jan 2002
    Location
    UK
    Posts
    673
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Making 'xmlHttpRequest' content indexable for search engines

    Hi, I'm trying to make content on the homepage of my site www.desktopwallpapers.co.uk - called using XmlHttpRequest - indexable to search engines.


    I've read through the google docs (https://developers.google.com/webmas...etting-started), but I'm obviously missing something.


    My website uses a javascript function to load a php file, passing parameters in the get string. e.g. http://www.somesite.com/somePage?var1=300


    The google docs suggest you need to put <meta name="fragment" content="!"> into the page to get the content indexed (step 3). I've tried putting this meta tag into both the page which calls the javascript, as well as the php page the javascipt calls. By doing a 'fetch as googlebot' request, I'm still not getting the content.


    Can anyone point me in the right direction?


    Many thanks

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,717
    Mentioned
    103 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by JoePrice View Post
    I'm still not getting the content.
    It can take a while, up to six weeks for google to reindex the content of a page.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Guru JoePrice's Avatar
    Join Date
    Jan 2002
    Location
    UK
    Posts
    673
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply.
    Just to clarify, putting <meta name="fragment" content="!"> on my page is not going to make a 'view source' show the right content either?

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,717
    Mentioned
    103 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by JoePrice View Post
    Thanks for the reply.
    Just to clarify, putting <meta name="fragment" content="!"> on my page is not going to make a 'view source' show the right content either?
    Definately not.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •