hey!I have some script that works greate in IE but not works in Firefox.
function isExist(url,queries){ var xmlhttp; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; }}} xmlhttp.Open('POST',url,false); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlhttp.Send(queries); var result=(xmlhttp.responseText); return result; }
What's wrong?Thanks!