Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all,

I am new to ajax.

I found many ways on net about how to initialize xmlhttprequest object for different browsers. So, I get confused.

Can anyone give me one method which contains initialization of xmlhttprequest object for all browsers ?

Thanks in advance
Posted

Try this,

C#
var xmlHttpRequest = (window.XMLHttpRequest) ? new window.XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');
 
Share this answer
 
Please try Google. There are many postings on many sites for to initialize xmlhttprequest object for different browsers


Hope this help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900