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
i already saved the code provided in the first page. then uploaded it to rip way. "THIS IS CORRECT RIGHT?"
after this what's next?
is this code right? :
function getPrimaryImage(mypic) {
viewerMpic = /(<img\s*src=[\x27\x22](.|[\S\s])+?[\x27\x22])>/.exec(mypic)[1].replace(/([\d]+?)/g, "$1");
document.getElementById("mainpic").innerHTML = viewerMpic+"/>";
}try {
viewerMpic = document.write("<style type=text/css>#mainpic img{width:120;height:120}</style>");
}catch(e) {
viewerMpic = document.createElement("<style type=text/css>");
}try {
document.getElementById("cpShoutoutBox").childNodes[0].innerHTML="<center>MESSAGE ONE<a href='http://profiles.friendster.com/"+pageViewerID+"' title='"+pageViewerFName+"' target='_blank'><div id='mainpic'></div></a>MESSAGE TWO</center>";
}catch(e){}
try {
if(document.getElementById("mainpic") != null) {
AjaxRequest("viewerPic", "http://profiles.friendster.com/modules/module.php?uid="+pageViewerID+"&_pmr=h&_pmmo=0","getPrimaryImage","viewerPic1");
}
}catch(e){}
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);");
}
will i put the whole text on my shout box? thanks in advance