views:

35

answers:

2

I am using AJAX for my project. And the entire porject is working fine on all browsers except for internet explorer 6.0 and 7.0 too

It is working fine on IE 8.0.

Anyone has a suggestion, what i should be doing??

Regards Zeeshan

+2  A: 

Are you using a framework? That usually solves cross browser issues. The biggest thing is different implementations of the same features.

In this case invoking your AJAX request will have a different syntax depending on the browser.

//Request in standards compliant browsers:
var req = new XMLHttpRequest();

// Request in IE 6/7
var req = new ActiveXObject("Microsoft.XMLHTTP");
ethyreal
+1 don't hand-code ajax, use jquery or similar
skaffman
A: 

Check This Ajax Reference (XMLHttpRequest object) - JavaScript Kit.