Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unknown run time / ajax / only IE

Status
Not open for further replies.

snowboardr

Programmer
Joined
Feb 22, 2002
Messages
1,401
Location
PH



I am getting a unknown runtime when i run this code: i don't get any errors in any other browser... it works flawlessly, but IE doesn't seem to like it... I have used this ajax code throughout the side without any errors or anything... I have tried everything! :( I just cant see the problem... and IE's error messages dont help... the line number is incorrect.

Jason


Code:
var LoadQUESTIONSHTMLHttp = null;
function LoadQUESTIONSHtml(userid2,pagenumber2,recordsperpage,therecordcount) {
	alert('here')
    LoadQUESTIONSHTMLHttp = createRequestObject();
    var url5="/ajax/questions_I_have_asked.asp?id=" + userid2 + "&page=" + pagenumber2 + "&recordsperpage=" + recordsperpage + "&recordcount=" + therecordcount;
    LoadQUESTIONSHTMLHttp.open('GET', url5, true);
    LoadQUESTIONSHTMLHttp.onreadystatechange = getLoadQUESTIONSHTMLHttpResponse;
    LoadQUESTIONSHTMLHttp.send('');
}

function getLoadQUESTIONSHTMLHttpResponse() {
    if (LoadQUESTIONSHTMLHttp != null)
        if (LoadQUESTIONSHTMLHttp.readyState == 4)
            if (LoadQUESTIONSHTMLHttp.status == 200)
				document.getElementById('thequestion').style.display="";
                document.getElementById('thequestion').innerHTML = LoadQUESTIONSHTMLHttp.responseText;	
				//document.getElementById('questiontext').style.display="none";
}
 
The error message is:

"Unknown runtime error"
Code 0

The line number isnt correct but Its the above code that seems to be erroring... because the error occurs when I pretty the link that runs that JS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top