Results 1 to 8 of 8

Thread: Ho to make Ajax page SEO friendly?

  1. #1
    Join Date
    Aug 2008
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Arrow Ho to make Ajax page SEO friendly?

    Hello!

    How do I make this code non-obstrusive and Search Engine friendly?
    HTML Code:
    <a href="javascript:showdiv('contentarea'); ajaxpage('page.html', 'contentarea');" title="Click to view this page" onClick='changeZIndex(10)';><img src="images/image1.jpg" style="margin-left:14px;" /></a>
    Can you guys give samples based on the above code?

    Thanks a lot!

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The same way you make it human-friendly: make sure your page works properly without Javascript enabled. In this case, that might involve something like:
    Code:
    <a href="page.html"
       onclick="showdiv('contentarea');
                ajaxpage(this.href, 'contentarea');
                changeZIndex(10);"
       title="Click to view this page">
      <img src="images/image1.jpg"
           style="margin-left: 14px;">
    </a>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Aug 2008
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot for your response.

    I tried your code, but it's not triggering the "ajaxpage(this.href, 'contentarea');" properly.

    Any other suggestions?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You'll have to give a bit more information than that.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Aug 2008
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Twey,

    I'm sorry, I'll PM you the test site link so you can inspect.
    Thanks for help!

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I see your site. Where exactly have you attempted to implement the code I gave you above?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Aug 2008
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    It's in every link on the site, like the images, the banner, home, about us, etc.

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I'm seeing a lot of things like:
    Code:
    <a href="javascript:showdiv('contentarea'); ajaxpage('home.html', 'contentarea'); changeZIndex(4);" title="Go to home page" onclick=document.getElementById('headlbl').innerHTML='&nbsp;Property&nbsp;Holdings&nbsp;Co.';>
    That doesn't bear much resemblance to what I suggested at all, and it's certainly not search-engine– or human-friendly.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •