tonybernardo
MIS
I have a link on my page - The link below calls a Ticker Symbol lookup javascript routine - The js routine displays 'Please Wait' in a input field & after the routine completes the lookup it then clears the 'please wait'. Thr screen does not get updated however with the please wait - If I put an alert(''); after setting the value I see it - It is as if the screen does not update until the routine completes or an alert occurs - does anyone know how to fix this.
Link
<a href="javascript:void(tickerSymbolLookup('XX'));" onmouseover="return changeStatus('Ticker Symbol Lookup');" onmouseout="return changeStatus('');">Lookup</a>
Please Wait Input
<input type="text" name="lblpleasewait" class="label" readonly size="15" value="" onfocus="blur();">
function tickerSymbolLookup(psURL) {
var loAssetForm=document.frmMG;
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"
;
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"
;
var lsSearchURL;
var lsTicker;
var llEquityStyle;
var llFixedIncomeStyle;
frmMG.lblpleasewait.value = 'Please Wait';
//The please wait will only display if I do an alert here
xmlhttp.Open("POST",psURL + lsTicker,false);
xmlhttp.send();
xmlDoc.async="false";
xmlDoc.loadXML(xmlhttp.responseXML.xml);
document.frmMG.lblpleasewait.value = "";
Link
<a href="javascript:void(tickerSymbolLookup('XX'));" onmouseover="return changeStatus('Ticker Symbol Lookup');" onmouseout="return changeStatus('');">Lookup</a>
Please Wait Input
<input type="text" name="lblpleasewait" class="label" readonly size="15" value="" onfocus="blur();">
function tickerSymbolLookup(psURL) {
var loAssetForm=document.frmMG;
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"

var lsSearchURL;
var lsTicker;
var llEquityStyle;
var llFixedIncomeStyle;
frmMG.lblpleasewait.value = 'Please Wait';
//The please wait will only display if I do an alert here
xmlhttp.Open("POST",psURL + lsTicker,false);
xmlhttp.send();
xmlDoc.async="false";
xmlDoc.loadXML(xmlhttp.responseXML.xml);
document.frmMG.lblpleasewait.value = "";