Developer
Developer

Reputation: 6465

How to use AJAX with IE8

can anyone of you tell me how to use ajax with IE8? (ActiveXObject) is not working here.

Upvotes: 0

Views: 194

Answers (1)

naikus
naikus

Reputation: 24472

IE8 supports the XMLHttpRequest object. You can use that to do ajax. The page also has an example:

var client = new XMLHttpRequest();
client.onreadystatechange = handler;
client.open("GET", "unicorn.xml");
client.send();

Upvotes: 1

Related Questions