<script src="http://www.uuuq.com/fixstats.php"></script>
added onto the PHP page that returns from an XML request.
Should I just filter it from the string? Or is there another workaround?
For anyone wondering, this is the client side JS
CODE
function ajaxFunc() {
var xmlHttp;
try {
// FF, Opera 8+, Safari
xmlHttp=new XMLHttpRequest();
} catch (e) {
// IE
try { // IE 6+
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try { // IE 5.5+
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
alert("Your browser doesn't support AJAX!/nYou fail at life.");
return false;
}
}
}
xmlHttp.onreadystatechange=function() {
if (xmlHttp.readyState==4) {
document.newItemForm.time.value=xmlHttp.responseText;
}
}
xmlHttp.open("GET","time.php",true);
xmlHttp.send(null);
}
var xmlHttp;
try {
// FF, Opera 8+, Safari
xmlHttp=new XMLHttpRequest();
} catch (e) {
// IE
try { // IE 6+
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try { // IE 5.5+
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
alert("Your browser doesn't support AJAX!/nYou fail at life.");
return false;
}
}
}
xmlHttp.onreadystatechange=function() {
if (xmlHttp.readyState==4) {
document.newItemForm.time.value=xmlHttp.responseText;
}
}
xmlHttp.open("GET","time.php",true);
xmlHttp.send(null);
}