2007-09-25 13:23:46

mickyriora
» FTalkAddict
FTalk Level: zero
335
0
1969-12-31

Re: [quote][b][color=red]For educational purposes only.[/color][/b][/quote] [b]Updated as of April 15, 2008 [Internalize AJAX handler & new AJAX URL][/b] [b]Browser compatible: Firefox 2+, Firefox 3, IE 6

[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. =D 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)

Board footer

© 2024 F Talk

Current time is 12:55

[ 12 queries - 0.081 second ]
Privacy Policy