function ajaxload(){
var ajax=newAjax();//some other function without importance...
ajax.open("GET", "myPHPclass.php?x=whatever",true);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
var res = ajax.responseText
alert(res);
}
}
ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
ajax.send("");//here if i use post...
}
So, in this case i working with simple php code, but this doesn't work with a php class, which is the way to do it?
thanks in advance...

New Topic/Question
Reply



MultiQuote



|