What is AJAX?
Topics

Hi!
I'm Karsten and I want to help people learn German.
Buy me a coffee if you feel I did well.


webtechnology, ajax, Asynchronous JavaScript and XML
There's a button below (sneak peek) to peek at the code.

Using technologies like AJAX (Javascript + Javascript) - guarana for your site

Ajax is a marketing gag because in essence it is Javascript neatly wrapped up as "Asynchronous JavaScript and XML" and it doesn't pertain to the Trojan hero Ajax. At least that's what I thought when I first heard that name.

First we need a JavaScript context (that is, we create an object, required to get data). Press the "peek" button below, to see the script.

Then we shall open the file from the server asynchronously. This means that the file is loaded in the background and the user won't have to be kept waiting if it is a very huge file. Now this is very interesting. You as a user have already loaded this page into your browser, and then there goes Ajax loading another file via javascript.

You can call the file "examples/easy.txt" to check.




submit to reddit





Sneak peek of the server side code