You are here: Re: An Ajax Dictionary... My first AJAX project... « HTML « IT news, forums, messages
Re: An Ajax Dictionary... My first AJAX project...

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация