Ajax
AJAX and SEO – Is it possible to get them together?
On 24, Jan 2009 | 12 Comments | In Ajax, jQuery, SEO | By abcoder
About 7 months ago I threw a question on LinkedIn, AJAX & SEO. It was about is ajax seo friendly! (The website can be found here http://demo.zpbappi.com). Most of the people answered “NO”. All of them suggested me not to use 100% Ajax(ed) website as search endings do not render the javascript. The site has one index.php page and no other pages. When you click any link/buttons it loads the content dynamically using ajax. So I agreed that search engines wont be able to crawl the site properly and stop thinking about it any more.
One week ago I got a project to fully ajaxify a simple static website camillenelson.com with search enginge readability. I already knew (still then) it is not possible. I started re-thinking about the issue and find out a solution of my own. The site has only 8 pages which is a plus point. To assume any site from search spider’s view just disable the javascript from your browser settings and you’ll understand how the spider will go from one link to another.
For example:
<a href="about.html"
onclick="javascript: Load('about'); return false;">
About
</a>
When javascript is enabled, clicking on About link won’t go to about.html page (return false;), rather it would call Load function. I think you’ve already got the idea!
In real I used jQuery to make the whole thing unobtrusive. The static html pages (already done) except index.html were kept as they are. In index.html the container div (the only div that changes for different pages) loads the content of different pages. I created a folder “ajaxContent” and created the html files with same name of the main html(s) but they contain only the contents, not the full html page.
Here is the jQuery code I used: (N.B. All the links are assigned with “ajax” class.)
$(function() {
$("a").focus(function() {
this.blur();
});
$("a.ajax").click(function() {
var lnk = "ajaxContent/" + $(this).attr("href");
var hover = $(this).find("img").attr("src");
var img = $(this).find("img");
$.ajax({
url: lnk,
beforeSend: function() {
$("div#container").html('Loading...');
},
success: function(d) {
$("div#container").html(d);
},
complete: function() {
$("#loading").hide();
}
});
return false;
});
});
If you have any better idea to make a fully-ajaxed website SEO friendly please let me know.
Thanks
-
Looks like you have already gone through my post about how to make ajax pages seo friendly. what did you think of it?
-
I found much simpler way to make ajax link seo friendly, try this article http://www.silveryhat.com/delynie/f47/making-ajax-url-search-engine-optimization-friendly-the-simple-way-6828.html
-
Thank you DnP for the useful link.
-
AJAX (in extreme Single Page Interface) and SEO can be now compatible.
Take a look:
http://itsnat.sourceforge.net/php/spim/spi_manifesto_en.php
http://itsnat.sourceforge.net/index.php?_page=support.tutorial.spi_site -
Have you seen the online demo?
http://www.innowhere.com:8080/spitut/This is the web site explained in the tutorial, try to disable JavaScript
As you can see, GOODBYE to AJAX and SEO and accessibility incompatibilities
Thanks for your comment
-
Пластиковые окна ПВХ, цены на Maximusokna.ru 8(495)502-51-16 Москва – продажа, остекление, изготовление и установка окон. Отделка дверных откосов. Остекление балконов последний этаж.
-
Hi, just attempting close to a few information sites, seems a great platform you’re making use of. Internet marketing from current employing Hubpages a couple of associated with my websites however wanting to modify one in every of these individuals up to the program similar to your own house as a trial run work. Something particularly you would recommend over it?
-
I’m really used to the high quality posts in this blog and I’m no longer impressed every day!
-
Vielen Dank für die info.You sind sehr hilfreich.
-
An impressive share, I just given this onto a colleague who was doing a bit analysis on this. And he the truth is purchased me breakfast because I found it for him.. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for spending the time to debate this, I really feel strongly about it and love reading more on this topic. If attainable, as you change into expertise, would you thoughts updating your weblog with extra particulars? It’s highly helpful for me. Large thumb up for this weblog put up!Repliche BR01 94 Chronograph Orologi
Submit a Comment
© Copyright 2012 ABCoder |













Comments