2007-09-11 23:30:48

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

So this is where the code is...I haven't checked this & was intrigued & found the code I was searching for!!!! :lol: [b]Hi Feruzz[/b], got a question here...I want to compile this with my tracker.js. I'm wondering about the AJAX, since [b]Tracker.js have this ;[/b] 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]And you have this for VIEWER'S MAIN PHOTO;[/b] 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);"); } Am I still going to add it ??? or there's a way to add [b]xmlHttp,base_domain,[/b] on the existing AJAX in my Tracker.js???

Last edited by mickyriora (2007-09-11 23:53:06)

Board footer

© 2024 F Talk

Current time is 15:42

[ 13 queries - 0.068 second ]
Privacy Policy