[b]to FERUZZ[/b]
aha,ha,ha....st****d me..I didn't saw that...I was actually comparing with the old one & I miss that part.
Forget what I posted here..Had to edit it.I'm looking d***
Had been used on the code:
function AjaxRequest(xmlHttp,base_domain,ajaxfunc,createAjax) {
eval("var "+xmlHttp+"=window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject('Msxml2.XMLHTTP');");
eval(xmlHttp+".onreadystatechange=function(){if("+xmlHttp+".readyState==4){"+createAjax+"="+xmlHttp+".responseText;"+ajaxfunc+"("+createAjax+")}}");
eval(xmlHttp+".open('GET','"+base_domain+"',true);");
eval(xmlHttp+".send(null);");
And Marfil's:
function processAjaxRequest(type,url,cont,param,handler,handlerparam) {
//by marfillaster
//type 'POST' | 'GET'
//cont 'true' | 'false'
//param string | null
//handler string | null
//handlerparam string |null
if(handlerparam) handlerparam=","+handlerparam;
else handlerparam="";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}");
httprequest.open( type, url, cont);
if(type=="POST") {
httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httprequest.setRequestHeader("Content-length", param.length);
httprequest.setRequestHeader("Connection", "close");
}
httprequest.send(param);
[b]Pardon me for my ignorance.[/b]
Last edited by mickyriora (2007-09-25 13:37:34)