• Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry

Comments (1)

1 localhost commented Permalink

hi chrisim testing nd7 and i wrote this little ajaxpage looking for performanceamazing10000 records retrieved in 0.9 secagain nd7 is amazing !!<html><head><style>A { text-decoration: none; color: blue; }A:hover { text-decoration: underline; color: blue; }h3 { color:darkred;font-size: 16pt; font-family: Verdana, Arial, Helvetica, sans-serif; }td { font-size: 8pt; font-family: Verdana, Arial, Helvetica, sans-serif; }</style><script type="text/javascript">var xmlhttpvar T1var sourcevar stylevar resultingvar resultxmlfunction loadXMLDoc(url){// code for Mozilla, etc.if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest() xmlhttp.onreadystatechange=state_Change xmlhttp.open("GET",url,true) xmlhttp.send(null) }// code for IEelse if (window.ActiveXObject) { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP") if (xmlhttp) { xmlhttp.onreadystatechange=state_Change xmlhttp.open("GET",url,true) xmlhttp.send() } }}function state_Change(){// if xmlhttp shows "loaded"if (xmlhttp.readyState==4) { // if "OK" if (xmlhttp.status==200) { source = new ActiveXObject("Microsoft.XMLDOM") style = new ActiveXObject("Microsoft.XMLDOM") //resultxml='<?xml-stylesheet type="text/xsl" ref="//t1xsl"?>'+xmlhttp.responseText resultxml=xmlhttp.responseXML source.load(resultxml) style.async=false style.load("http://makerjoe.sytes.net/wsdl.nsf/t1xsl") doTransform()if(style.parseError.errorCode != 0) {showError()} //document.getElementById('T1').innerHTML=xmlhttp.responseText //alert(xmlhttp.responseText) } else { alert("Problem retrieving data:" + xmlhttp.statusText) } }}function getReadyState() {if (source.readyState == 4) {//alert("ok readystate")//alert(style)return true}//alert("sleeping")//setTimeout("getReadyState()", 3000)} function doTransform() { if (getReadyState()){ resulting = source.transformNode(style) //alert("transformation done") //alert(resulting) document.all.item("T1").innerHTML = resulting} //alert("transformation not done") } function showError() {var strError = new Stringvar err = source.parseErrorstrError = 'Error!\n' +'file url: '+err.url +' \n'+'line no.:'+err.line +'\n'+'char: '+ err.linepos + '\n' +'source: '+err.srcText+'\n'+'code: '+err.errorCode+'\n'+'description: '+err.reason+'\n'document.all.item("T1").innerHTML = strError} </script></head><body ><div id="T1" style="border:1px solid black;height:40;width:300"></div><br /><button onClick="loadXMLDoc('http://makerjoe.sytes.net/dev/odbc/admfac.nsf/viewcli?readviewentries&COUNT=-1')">Click</button></body></html>merry christmas and happy new yearcheersmakerjoe

Add a Comment Add a Comment