Proof of Concept For Ajax Without JavaScript 148
JonathansCorner.com writes "Even if Ajax was backronymed to 'Asynchronous JavaScript and XML,' it works with JSON substituted for XML. Here's a proof of concept that JavaScript/VBScript are not strictly necessary either. The technique, besides being used standalone, may be useful to provide a better 'graceful degradation' for Ajax applications used by clients with scripting turned off."
iFrame? (Score:1, Informative)
Like a true slashdotter I have not read the article, but the precursor to AJAX was just to use iFrames (or pre-iframe frames). Is this any different or better?
Re:iFrame? (Score:5, Informative)
Nothing to see here, etc (Score:4, Informative)
So you post a form to an iframe by pressing a submit button, and the iframe reloads with new dynamic content? And this is somehow AJAX? The whole interesting thing with AJAX is that you can interact with the web server while staying on the same page. You can type something into a search box, say, and the webserver sends you back some matching words in real time. Sure you could mimic the same thing with a POST and a results page, but that is exactly the paradigm that AJAX was supposed to replace.
Not Ajax (Score:2, Informative)
Re:How is this new? (Score:4, Informative)
Re:How is this new? (Score:4, Informative)
Me too. The framework I used was JSRS [ashleyit.com]. IIRC, it worked by creating hidden iframes on the fly for server-side communication and had dispatchers for PHP, ASP, perl and others. I don't recall if it was asynchronous or not, but pretty much anything can be made asynchronous in javascript by using the setInterval or setTimeout functions. The only thing I could tell was different was the fact that AJAX used the XMLHttpRequest object.
So, naturally I was dumbfounded when people started talking about how amazing and cool AJAX was. I thought, "Hasn't this been around for years?"
Re:CGI scripts (Score:3, Informative)
Anything that depends on user input and can't be predicted before loading the page _will_ be faster with ajax if the server, client and internet connection are fast enough.
Rendering a full page is much heavier for the server so in that aspect it's an advantage.
Loading a full page for a client is heavier because there's more to parse.
Loading a full page takes up more bandwidth so it's worse on your internet connection too.
So there are only 2 cases I can think of where it might not be noticably faster.
1. A high-latency connection (which I suppose you have judging from your message).
2. A slow cpu that has trouble with handling all those small parts of data (opposed to 1 big stream).
In all other cases it should be faster in terms of user experience.
It isn't a backronym (Score:3, Informative)