Hey guys,
Hope one of you lot can solve this one for me as its giving me a headache and javascript rarely does that..
I keep receiving this error message in good old firefox
Now I am using an
AJAX function to read the content from a dynamic file and even tho it works I still get that error message....
The
php file simply has that Source Code as a text output so no code in that file and the
ajax function is as follows
- Code: Select all
function xmlhttpGet(strURL, strGetParams, strResultFunc){
var xmlHttpReq = false;
if (window.XMLHttpRequest) {
xmlHttpReq = new XMLHttpRequest();
xmlHttpReq.overrideMimeType('text/xml');
}
// IE
else if (window.ActiveXObject) {
xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
strGetURL = strURL + "?" + strGetParams;
xmlHttpReq.open('GET', strGetURL, true);
xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlHttpReq.onreadystatechange = function() {
if (xmlHttpReq.readyState == 4) {
TEMP = "strResultFunc" + "('" + xmlHttpReq.responseText + "');";
eval(TEMP);
}
}
xmlHttpReq.send(null);
}
Oh and btw dont try to view the files as it will ask you to login and it is WWAAAAYYYY to much agro to setup a temp user with permissions to just this client.