Rasmus’ 30 second AJAX Tutorial

10 08 2005

This is a great and simple example/tutorial on AJAX by Rasmus Lerdorf (the creator of PHP).

It’s just AWESOME!

Rasmus’ 30 second AJAX Tutorial

(Original Post @ php-general mailing list)


Actions

Informations

7 responses to “Rasmus’ 30 second AJAX Tutorial”

28 07 2006
Joost Canters (02:18:35) :

Nice tutorialm although it might make people stop thinking I am a magician :-) .

BTW There is a minor typo in the example code:

In function handleresponse:

document.getElementById(update[0]).innerHTML = pdate[1];

pdate should be update of course.

28 07 2006
Juan Wong (08:30:51) :

Yes, Rasmus’ tutorial is really great.

Thanks for bringing the typo to my attention. It’s been fixed.

Cheers!

15 09 2006
marcus (03:56:02) :

I like it, especially as it promotes small is beautiful. Have you considering putting in on digg.com?

There again my “smallest” AJAX example got called crap!! :(

3 02 2007
Ron AF Greve (15:36:45) :

Hi,

First off. Great tutorial. It think I search the web for an hour just for a simple explanation.

Second. It is a bit late here but I think there is a minor bug in the tutorial

if(response.indexOf(‘|’ != -1)
shouldn’t that be
if(response.indexOf(‘|’ )!= -1

Anyway thanks, keep up the good work.

Cheers, Ron AF Greve

3 02 2007
Juan Wong (16:30:53) :

Ron, thanks for brining the typo to my attention. I’ll fix it before long.

Best!

EDIT: Typo has been fixed :P

9 07 2007
Henning Mann (11:02:33) :

The Script doesn’t work! Can anyone paste the whole two files, please? Thanks!

9 07 2007
Juan Wong (11:44:12) :

Henning Mann,

There’s nothing to paste. The ‘whole two files’ code is there on the page.

Since it’s work for others, you may be doing something wrong for it not to work.




LiveSTRONG