This is a discussion on Info on Ajax Object within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi, Small tips on the Ajax Object, Microsoft™ and Internet Explorer use an object called XMLHttp instead of the XMLHttpRequest ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, Small tips on the Ajax Object, Microsoft™ and Internet Explorer use an object called XMLHttp instead of the XMLHttpRequest object used by Mozilla, Opera, Safari, and most non-Microsoft browsers. For the sake of simplicity, I refer to both of these object types simply as XMLHttpRequest. This matches the common practice you'll find all over the Web and is also in line with Microsoft's intentions of using XMLHttpRequest as the name of their request object in Internet Explorer 7.0.
__________________ With, J. Jeyaseelan Everything Possible |
|
#2
| |||
| |||
| Ajax Object Initialization in javascript if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { // IE try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } we can initialize Object for Ajax component in the above way
__________________ With, J. Jeyaseelan Everything Possible |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to use ajax in asp.net and how to install ajax in my system | vel.m8 | ASP and ASP.NET Programming | 5 | 04-08-2008 07:55 PM |
| ajax | ursklakshmanan | PHP Programming | 3 | 03-17-2008 01:21 AM |
| Object reference not set to an instance of an object for crystal reports in .net | KiruthikaSambandam | Database Support | 1 | 08-03-2007 02:26 AM |
| Info: Ajax with Perl | raj | Perl | 0 | 07-19-2007 07:51 AM |
| Convert Object to Arraylist and Arraylist to Object | raja | C# Programming | 0 | 05-08-2007 02:26 AM |
Our Partners |