I am getting this error the Line 90 has xmlHttp.send("null");
uncaught exception: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXMLHttpRequest.send]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: file:///C:/Program%20Files/Apache%20Software%20Foundation/Apache2.2/htdocs/D6S/signup/signup.js :: doXML :: line 91" data: no] on 0 of !
This is the JS file
function doXML(){ var url="signup.php" for (var i in sign.field) { var x = dgebi('div'+sign.field[i]).getElementsByTagName("input"); var other = x[0].value; if (i!=3 && i!=5) url += "&"+other; } xmlHttp=gxho(); if (xmlHttp==null){ alert ("Browser does not support HTTP Request"); return; } url+="&sid="+Math.random(); alert(url); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null);}function stateChanged(){ if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") alert(xmlHttp.responseText);}function gxho(){ var xmlHttp=null; try{ xmlHttp=new XMLHttpRequest(); } catch (e){ try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e){ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp;}function dgebi(id){ return document.getElementById(id);}
Could someone please tell me what the problem is??This is the same JS as given on http://www.w3schools.com/php/php_ajax_suggest.asp !