function processRequestChange(){ // only if xmlHttp shows "complete" if (xmlHttp.readyState == 4){ // only http 200 to process if (window.location.href.indexOf("http")==-1 xmlHttp.status == 200){ newsstring = xmlHttp.responseText; //inject centent to tab-pane shownews(requestType,newsstring); } } }