mozew's avatar
Level 6

Ajax

Hi guys, Is Ajax Old?

0 likes
11 replies
Talinon's avatar

According to Wikipedia, it first appeared in 2005.

shez1983's avatar

if you mean we should stop using it then no.. ajax is still very much alive

rawilk's avatar

Ajax has been around for a while but is still very much used today. I personally use ajax for most of my requests in my applications.

Cronix's avatar

I believe it was actually around 1999. MS made it and was first used in IE5. It just wasn't called "ajax"

In 1996, the iframe tag was introduced by Internet Explorer; like the object element, it can load or fetch content asynchronously. In 1998, the Microsoft Outlook Web App team developed the concept behind the XMLHttpRequest scripting object.[5] It appeared as XMLHTTP in the second version of the MSXML library,[5][6] which shipped with Internet Explorer 5.0 in March 1999.[7]

https://en.wikipedia.org/wiki/Ajax_(programming)

jlrdw's avatar

Is Ajax Old?

Are you looking for something different? I don't understand the question.

kobear's avatar

@cronix You are absolutely right. As a matter of fact, in 1999 I wrote a site that used XMLHttpRequest for most of the page loading. A couple of years later I saw an article about how Google was using this new shiny thing called "AJAX" and I was pissed off and started calling it "KJAX" because I was using it way before they were. lol

1 like
ejdelmonico's avatar

If you are referring to a replacement, I would recommend using the fetch api because support has greatly improved and it future proofs your api requests. Also, there are very good polyfills available for older browsers.

shez1983's avatar

@kobear isnt ajax just a wrapper for XMLHttpRequest - i have written that and compare to the ajax code is very long..

ianfain's avatar

Ajax is definitely not new and has been around for a while. That being said, that's not to imply that it's not useful or relevant.

jlrdw's avatar

Ajax has been around since the beginning of time like atomic energy (the Sun), but not discovered by humans til 1996.

There is nothing new, only discovered.

kobear's avatar

@SHEZ1983 - In most implementations, yes, Ajax is a wrapper for XMLHttpRequest. But XMLHttpRequest is in turn "just a wrapper" for socket connections over HTTP/S connections to a webserver without the overhead of a full browser page reload.

There are alternatives out there, like Fetch API ( https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API ). But YMMV when stepping away from XMLHttpRequest.

Please or to participate in this conversation.