13:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.130 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 13:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.1313:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.13

.

.

Monday, November 14, 2011

base.js - JavaScript - q45q45

<!--

function sendMessage(){

 message = document.getElementById("prefex").innerHTML;

 message += document.sendMessForm.sendMessField.value;

 url='sendMessage.php?message='+message;

 document.sendMessForm.sendMessField.value='';

 document.getElementById("prefex").innerHTML='';

 callPage(url, 'serverMessages');

}

//#########################################################################################



var k=0; req=Array();



function callPage(pageUrl, divElementId, loadingMessage, pageErrorMessage) {

 if(!loadingMessage || loadingMessage=='') loadingMessage = "ContentSet is loading, Please Wait...";

 if(!pageErrorMessage || pageErrorMessage=='') pageErrorMessage="Error in Loading page />";

 document.getElementById(divElementId).innerHTML = loadingMessage+'Calling twitter...';

 try {

 req[k] = new XMLHttpRequest(); /* e.g., Firefox */

 } catch(e) {

 try {

  req[k] = new ActiveXObject('Msxm12.XMLHTTP'); /* some versions IE */

   } catch(e) {

      try {

         req[k] = new ActiveXObject('Microsoft.XMLHTTP'); /* some IE */

        } catch(E) {

           req[k] = false;

      }

    }

  }

 req[k].onreadystatechange = function() {responsefromServer(divElementId, pageErrorMessage);};

 req[k].open('GET',pageUrl,true);

 req[k].send(null);

}



function responsefromServer(divElementId, pageErrorMessage) {

 var output = req[k].responseText;

  if(req[k].readyState == 4) {

     if(req[k].status == 200) {

   output = req[k].responseText;

   document.getElementById(divElementId).innerHTML = output;

   } else {

   document.getElementById(divElementId).innerHTML = pageErrorMessage+'\n'+output;

    }

   }

  }



-->