Posted by Dylan Parry on 02/18/06 13:38
Pondering the eternal question of "Hobnobs or Rich Tea?", Disco Octopus
finally proclaimed:
> Ye. It looks to me like just plain old javascript doing some stuff to an
> innerHTML.
How else would you update the page with the new results? Google et al
use nothing different in their own AJAX apps.
> I thought that AJAX was something different to that.
The specific part of the code that tells you it's AJAX is:
//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
if (window.XMLHttpRequest) {
return new XMLHttpRequest();
} else if(window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP");
} else {
alert("Your Browser Sucks!\nIt's about time to upgrade don't you
think?");
}
}
The rest of the code will handle the sending and receiving of requests,
and the updating of the page with plain old Javascript.
--
Dylan Parry
http://webpageworkshop.co.uk -- FREE Web tutorials and references
Navigation:
[Reply to this message]
|