View Single Post
Old 02-26-2008, 01:36 PM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ER

Code:
uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame ::
What does this mean? heres my code:
Code:
<script type="text/javascript">

 try {
 xmlHttp = new ActiveXObject('MSXML2.XMLHTTP');
 } catch(e)
 {
  
}
try {
 xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
} catch(e) {
  alert("Your Browser doesnt support AJAX");
}

try {
xmlHttp = new XMLHttpRequest();
} catch(e) {
 alert("AJAX n0t supported");
}



function Asx()
{
 xmlHttp.send("GET", "a.php", true);
 xmlHttp.open();
 var msg = document.getElementById('msg');

 xmlHttp.openReadyStateChange = responseAsx(); 
}

function responseAsx()
{
 msg.innerHTML = xmlHttp.responseText;

 if (xmlHttp.readyState == 4 )
 {
  msg.innerHTML = "Worked!";
 } else if (xmlHttp.readyState != 4 ) 
{
 document.write('Loading..');
 }
}
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote