Hi.
Over the years I built a number of sites around AJAX, simply because the sites suited web application feel. (like a website that works as a sale tool)
Problem is of course that it is not search engine friendly. Not a huge issue but I would like to present a snapshot to the crawler.
All those sites work like this.
(simplified)
<head>
function display(command,data1,data2,data3){
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null){
alert ("Your browser does not support AJAX, You cannot use this application!");
return;
}
var url="response.php";
url=url+"?command="+command;
url=url+"&data1="+data1;
url=url+"&data2="+data2;
url=url+"&data3="+data3;
//alert(url);
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
<script>
</script>
<head>
<body onload="display('','','','')">
My question is, how do I modify my code to redirect crawlers to gethtmlsnapshot.php (which uses php DOM to make the snapshot)?
Cheers in advance