How to Script for Backwards Compatibility with AJAX


show more Scripting for backwards compatibility provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the JavaScript and AJAX show less
please wait ...

Scripting for backwards compatibility

Although usage of early versions of Internet Explorer have dropped dramatically in the last few years, it's still important to know how to run AJAX requests that are compatible with those systems. And actually, the whole concept behind XHR requests was created by Microsoft and implemented first in a browser in IE5. To accomplish this, Microsoft used a technology called ActiveX. Because ActiveX was not available to other browsers like Safari, Firefox, and Chrome, they created a different implementation of the API using the XMLHttpRequest object.

Since ActiveX was seen as a proprietary implementation, the XMLHttpRequest object became the standard. So like with a lot of other web technologies, we've ended up with a fragmented implementation when trying to support older browsers. Luckily, all we have to do to support these browsers is to check if the browser API has an XHR object. So first, I'm going to change this line right here to just create the variable. Now I'm going to us...

Scripting for backwards compatibility
Video duration: 1m 43s 1h 12m Intermediate

Viewers:

Scripting for backwards compatibility provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the JavaScript and AJAX

Subjects:
Developer Web
Software:
Ajax JavaScript
Author:
please wait ...