Forum Moderators: open
I have written an application in AJAX-PHP-MySQL. the application is working with I.E but not working with FireFox.
here is how I create the http object,
Code:
function getHTTPObject() {
var xmlhttp;
if(window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
}
else if (window.ActiveXObject){
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
if (!xmlhttp){
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
}
}
return xmlhttp;
}
var http = getHTTPObject(); // We create the HTTP Object
then i use this http object as
Code:
function requestNext(act) {
if (act == 'first') {
id=1
}
var sId = id;
http.open("GET", url + escape(sId) + "&action=" + act, true);
http.onreadystatechange = handleHttpResponse;
http.send(null);
//document.getElementById('divRec').innerHTML = "";
}
and other functions to communicate with PHP script.
can anybody help please why it is not working with FF and how to make it to work with FF too?
thanks in advance for your replies.
[edited by: daveVk at 5:45 am (utc) on Sep. 8, 2006]