dynamicajax.com— This tutorial will teach you how to create a hello world web page using AJAX technologies. Odds are if you found this tutorial, then you have created a "Hello World!" program before.
Aug 6, 2006View in Crawl 4
For whoever dugg this, thanks. I wrote this tutorial about 4 months ago as a simple introduction to AJAX technologies. I know there are other tutorials out there, and many of them are probably much better than mine. If you took something away from this tutorial, I'm glad, if not, I'm sorry you wasted your time but I hope you can see the value in it for others.There are a couple of comments that seem grossly misinformed.First off, AJAX is not a compiled language or even a language at all. AJAX is a set of existing technologies working together to create interactive web pages. AJAX stands for Asynchronous JavaScript and XML, but to me it basically means using the XmlHttpRequest object so you don't have to reload the entire web page in order to get new content from the server. Any AJAX developer will tell you that's the main concept.Second off, someone was claiming that this was sloppy coding because I used the innerHTML property. I don’t mind if people think my coding is sloppy, one of the traits of a good programmer is that we are always trying to improve our coding techniques. However, the only argument that I could find for NOT using innerHTML is the fact that it doesn’t work in IE 5 for the Mac. If you are wasting your time trying to write code so that it will run for the .000001% people still using IE 5 for the Mac, you might as well try to build the Three Gorges Dam using popsicle sticks.Finally, there was some remarks about how this isn't useful, and that using a plain text file on the back end is pretty lame. “Hitting a static HTML file with an XMLHTTPRequest is pretty lame imo.”The reason this was a simple static HTML file on the backend was because it's completely language independent. You don't even need to have a web server to run the example. Hello World was not intended to be a useful web application. It was intended to be a very simple introduction to AJAX. That being said, I appreciate everyone who took the time to look at and comment on my tutorial - both positive and negative.
One argument for the fact that innerHTML is bad is the fact that it's deprecated by the W3C. I mean, they just write coding standards for the web, so y'know I don't know if that's a good argument or not.
Closed AccountAug 7, 2006
can someone show me some decent uses for AJAX?
ojk007Aug 7, 2006
i enjoyed this line of code
yahoofromAug 7, 2006
why not? InnerHTML and ChildNodes blah blah, they all have their own pros and cons.
sidneykrAug 7, 2006
This is not another AJAX tutorial, but could be an AJAX sample. <a class="user" href="http://www.noovo.us/demo">http://www.noovo.us/demo</a>
tallguy78Aug 7, 2006
very nice! I'm not nearly good as you but here's another sample I did.<a class="user" href="http://www.weekendstory.com">http://www.weekendstory.com</a>
ryansmith345Aug 7, 2006
For whoever dugg this, thanks. I wrote this tutorial about 4 months ago as a simple introduction to AJAX technologies. I know there are other tutorials out there, and many of them are probably much better than mine. If you took something away from this tutorial, I'm glad, if not, I'm sorry you wasted your time but I hope you can see the value in it for others.There are a couple of comments that seem grossly misinformed.First off, AJAX is not a compiled language or even a language at all. AJAX is a set of existing technologies working together to create interactive web pages. AJAX stands for Asynchronous JavaScript and XML, but to me it basically means using the XmlHttpRequest object so you don't have to reload the entire web page in order to get new content from the server. Any AJAX developer will tell you that's the main concept.Second off, someone was claiming that this was sloppy coding because I used the innerHTML property. I don’t mind if people think my coding is sloppy, one of the traits of a good programmer is that we are always trying to improve our coding techniques. However, the only argument that I could find for NOT using innerHTML is the fact that it doesn’t work in IE 5 for the Mac. If you are wasting your time trying to write code so that it will run for the .000001% people still using IE 5 for the Mac, you might as well try to build the Three Gorges Dam using popsicle sticks.Finally, there was some remarks about how this isn't useful, and that using a plain text file on the back end is pretty lame. “Hitting a static HTML file with an XMLHTTPRequest is pretty lame imo.”The reason this was a simple static HTML file on the backend was because it's completely language independent. You don't even need to have a web server to run the example. Hello World was not intended to be a useful web application. It was intended to be a very simple introduction to AJAX. That being said, I appreciate everyone who took the time to look at and comment on my tutorial - both positive and negative.
llbblAug 8, 2006
OMFG AJAX +digg :P
ijustfloatSep 6, 2007
One argument for the fact that innerHTML is bad is the fact that it's deprecated by the W3C. I mean, they just write coding standards for the web, so y'know I don't know if that's a good argument or not.
yogastoreJun 27, 2008
<a class="user" href="http://astore.amazon.com/holmes.tower.fan-20">http://astore.amazon.com/holmes.tower.fan-20</a><a class="user" href="http://astore.amazon.com/honeywell.tower.fan-20">http://astore.amazon.com/honeywell.tower.fan-20</a><a class="user" href="http://astore.amazon.com/10.cup.rice.cooker-20">http://astore.amazon.com/10.cup.rice.cooker-20</a><a class="user" href="http://astore.amazon.com/zojirushi.10.cup.rice.cooker-20">http://astore.amazon.com/zojirushi.10.cup.rice.coo ...</a><a class="user" href="http://astore.amazon.com/bug.zapper-20">http://astore.amazon.com/bug.zapper-20</a><a class="user" href="http://astore.amazon.com/rat.zapper-20">http://astore.amazon.com/rat.zapper-20</a><a class="user" href="http://astore.amazon.com/250gb.external.hard.drive-20">http://astore.amazon.com/250gb.external.hard.drive ...</a><a class="user" href="http://astore.amazon.com/500.gb.external.hard.drive-20">http://astore.amazon.com/500.gb.external.hard.driv ...</a><a class="user" href="http://astore.amazon.com/surfboard.cable.modem-20">http://astore.amazon.com/surfboard.cable.modem-20</a><a class="user" href="http://astore.amazon.com/wireless.cable.modem-20">http://astore.amazon.com/wireless.cable.modem-20</a>