This code is my ajax in the page
And this is what displays it
But it don't display it, it says this
Line: 35
Char: 1
Error: Uknown runtime error
Code: 0
I know nothing about Ajax or java sorry
| Code: |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript"> var xmlHttp function GetXmlHttpObject(){ var objXMLHttp=null if (window.XMLHttpRequest){ objXMLHttp=new XMLHttpRequest() }else if (window.ActiveXObject){ objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp } function GetPMs(){ xmlHttp=GetXmlHttpObject() if (xmlHttp==null){ alert ("Browser does not support HTTP Request") return } var url="numberpms.php" xmlHttp.open("GET",url,true) xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState == 4) { if (xmlHttp.status == 200) { document.getElementById("numberpms").innerHTML = xmlHttp.responseText; } } }; xmlHttp.send(null); } GetPMs(); setInterval("GetPMs()",1000); </script> |
And this is what displays it
| Code: |
| <a id="numberpms"></a> |
But it don't display it, it says this
Line: 35
Char: 1
Error: Uknown runtime error
Code: 0
I know nothing about Ajax or java sorry
