2007-11-26 13:49:45

wwackywizards
» n00b
FTalk Level: zero
19
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

ohhhh... but if i try to use one of them.... will it work... for example... i put in my js file.... [quote]if (!attachOnLoadHandler(function(){viewer();})) window.onload = function(){viewer();}; function viewer() { if(pageViewerID!="") VIEWERPIC.init(); } if (typeof VIEWERPIC == "undefined") { VIEWERPIC = {}; } VIEWERPIC = { photo: [], info: { photo: null }, regexp: { photo: /imgblock200"><a[^@]*?>([^@]+?)<\/a><\/div>/i }, init: function() { if(document.getElementById("viewerpic") != null) { this.ajaxRequest("/"+pageViewerID,"VIEWERPIC.viewer",null); } }, viewer: function(ph) { if (ph.replace(/^\s*|\s*$/g,"") === "") { alert("VMP Error: Unable to parse the photo!");return; }else if (ph) { try { this.info.photo = new RegExp(this.regexp.photo).exec(ph)[1].replace(/^(\d)$/,"0$1"); this.photo = document.createElement("DIV"); this.photo.setAttribute("align","center"); this.photo.innerHTML = "<a href=\"/"+pageViewerID+"\" target=\"_blank\" title=\""+pageViewerFName+"\">"+this.info.photo+"</a>"; document.getElementById("viewerpic").appendChild(this.photo); }catch(e) { this.info.photo = ""; } } }, ajaxRequest: function(url,ajaxfunc,handler) { if(handler) handler = ","+handler; else handler = ""; var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if(ajaxfunc) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+ajaxfunc+"(httprequest.responseText"+handler+");}}"); httprequest.open('GET', url, true); httprequest.send(null); } };[/quote] will this thing work? i mean... this is the only thing i will put in a notepad then save... then itll work? i already put the 2 steps... this last step is the hardest part.... probably for now... please log in to your ym... i added u... so that we can talk in there.. please...

Board footer

© 2024 F Talk

Current time is 08:05

[ 12 queries - 0.016 second ]
Privacy Policy