eire web design home page contact eire-web design eire web design and development site map
stepping on in business
• Ajax link and search engines friendly URLs

Ajax link and search engines friendly URLs



Ajax technology, everyone is talking about it, but it has it’s own drawback.
Few advantages for using Ajax on your website:

1. Better and more responsive website and web applications.
2. It uses existing technology that are available in most browsers.
3. It can be use with any server-side language (ASP, PHP) + JavaScript, already in use by many web developers.
4. Ajax integrates perfectly with existing designs and website functionality.
5. Enables immediate tasks like server-side form validation without refreshing the page.
6. Creating simple suggest functionality like Google Suggest.

plus a lot more…

Some of the disadvantages using Ajax:

1. Because pages does not change while it still brings new content or checking a form, can not be easily bookmarked.
2. Search engines may not be able to index all pages available on your website.
3. Back button in browsers doesn’t work as with a normal page.
4. Javascript can be disabled in some browsers client-side making your application non-functional.

Today we will be discussing the solution for creating friendly URLs, using Ajax technology while keeping the functionality for users that have Javascript disabled, and also allow search engines to index your page content as well.

So lets go ahead.
A standard link to another page normally looks like this:

text

while an Ajax link is formatted as below:

text

The problem with the Ajax formated link is that search engine can not follow it and if javascript is disabled on the client-side, the link is useless.
A simple way to make the link working no matter what, is by creating a new page that will include your content you were going to load into the existing page, and change your link structure as in the example below:

text

Adding “return false;” to the “onclick”, if javascript is enabled, the browser will fetch the content into the page section specified without refresh, but if javascript is not available the user will be brought to the new page you just created.

This is just one of the solutions available to make sure you keep the functionality of your website, search engines will index your content, and having a responsive web applications where Javascript available.

Good luck!

Tags:

This entry was posted on Wednesday, November 7th, 2007 at 1:18 pm and is filed under Ajax. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4.67 out of 5)
Loading ... Loading ...


  • 2 Responses to “Ajax link and search engines friendly URLs”

The new improved www.ratemypub.ie - Page 2 - Irish SEO, Marketing & Webmaster Discussion Says:
February 17th, 2008 at 2:59 pm

[...] a look at this article I wrote a while back. Ajax link and search engines friendly URLs | Website Design Ireland, Website Development Ajax it’s a nice feature but if not done properly has it downside. __________________ :. Web [...]

Shacker Says:
May 30th, 2009 at 11:12 pm

http://www.silveryhat.com/delynie/f47/making-ajax-url-search-engine-optimization-friendly-the-simple-way-6828.html

Detail tutorial of this same subject. It explains the structure of PHP and Javascript that involves in the process.

  • Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Links...

Chicklets...
  • http://www.eire-webdesign.ie/blog/feed/
    http://www.eire-webdesign.ie/blog/feed/
    Google Reader or Homepage
    Add to My Yahoo!
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    add to msn
    Add to My AOL
    Add to Technorati Favorites!
    pageflakes
    windows live