Hi,
I have problem in displaying "please wait.." text when the client requests data from the server.
I have created a <div> element as below.
<DIV ID="Loading" STYLE="position:absolute;z-index:5;top:30%;left:42%;visibility:hidden">
Please Wait....
</DIV>
I am using Ajax call, to get some table data from the server. This takes around 10-15 seconds. Client will call below function which calls the Ajax function.
function getData()
{
document.getElementById('Loading').style.visibility = 'visible';
ajaxGetData()
document.getElementById('Loading').style.visibility = 'hidden';
}
Before calling the Ajax, i am making the div element visible.
My problem is, i am not able see this <div> element.
I am making the ajax call as synchronous.So, control will wait till i get a response from the server.In this time, i want to show "Please wait.." text to the user. But, i have problem with above code.
Interestingly, if i put any alert statement before the ajax call or the ajax call fails, then i am able to see the "Please wait.." text.
Could any one help me on this issue?
Thanks,
Singu.