Language: javascript (GeSHi-highlighted) tmp=tmpArr[idx].split(','); val = tmp[0].replace('"',''); val = val.replace('"',''); txt = tmp[1].replace('"',''); txt = txt.replace('"',''); }
Language: javascript (GeSHi-highlighted) //replace all double quotes with empty strings: tmpArr[idx] = tmpArr[idx].replace(/\"/g, '') tmp = tmpArr[idx].split(";"); //assign each 'column' to the variables created above: //out += "<tag property='"+tmp[0]+"'>"+tmp[1]+"</tag>" }
Language: javascript (GeSHi-highlighted)eval('xmlhttp.onreadystatechange='+pFunc+';');
Language: javascript (GeSHi-highlighted)<script type="text/javascript"><!--//create the Cross-browser XMLHttpRequest objectfunction getFile(pURL,pFunc,pId) { var xmlhttp; if (window.XMLHttpRequest) { // code for Mozilla, Safari, etc xmlhttp=new XMLHttpRequest(); if (xmlhttp.overrideMimeType) { xmlhttp.overrideMimeType('text/html'); } } else if (window.ActiveXObject) { //IE xmlhttp=new ActiveXObject('Microsoft.XMLHTTP'); } if (xmlhttp) { xmlhttp.onreadystatechange = function() { pFunc(xmlhttp,pId); }; xmlhttp.open('GET', pURL, true); xmlhttp.send(null); } else { alert('You need to upgrade your browser to use this page.\r\nAs of March 2006 more than 98% of the web browsers in use support the remote scripting object. Either your browser does not support remote scripting or the support has been disabled.'); xmlhttp=false; }} // function to handle asynchronous callfunction postFileReady(oXML,pId) { if (oXML.readyState==4) { if (oXML.status==200) { document.getElementById(pId).innerHTML=oXML.responseText; oXML = null; } }} //--></script>