Thanks for the reply
I've tried that but still doesn't slove my problem.
<script language="javascript" type="text/javascript">
function getDesc(input)
{
//whole object is passed in so no need to $get() anything
//var obj = $get(input);
//show animated gif here???
if ((waitDiv=document.getElementById("wait"))!=null) {
if (waitDiv.style){
document.getElementById('wait').style.visibility = 'visible'
document.getElementById('loading').style.display = 'block';
alert('aaa');
}
}
retval = LocalService.GetTypeDesc(input.value, OnComplete, OnTimeout, OnError); return true;
//Hide animated gif here???
if ((waitDiv=document.getElementById("wait"))!=null) {
if (waitDiv.style){
document.getElementById('wait').style.visibility = 'hidden'
document.getElementById('loading').style.display = 'none';
}
}
return true;
}
<div id="wait" style="z-index: 101; position: absolute; visibility: hidden; left: 288px;top: 8px;">
<img alt="Loading..." runat="server" id="loading" src="images/ajax-loader.gif" style="background-color: transparent;display: none" />
</div>
if i run with the above sript with the alert, the alert('aaa') shows and i can see the GIF. And then hide it when done.
How do i "postback"or tell the JS to "refresh" the page for the image to show while the function being process?
i tried document.location.reload(); and that didn't work well.
ThankX