Hi
I have a form that submits to a web service.
As this takes time, i would like to show the user a loading message while
its loading.
I am using XmlHttp to do the request
How can i show this waiting message.
No matter what i do, it waits till everythings loaded before doing anything.
Currently:
<SCRIPT language="javas cription">
function ButtonClick()
{
ShowLoadingMess age();
SubmitXmlHttpRe quest();
}
function ShowLoadingMess age()
{
document.getEle mentById('statu smessage').inne rHTML = 'Loading ...';
}
var xhttp;
function SubmitXmlHttpRe quest()
{
xhttp = new ActiveXObject(" Msxml2.XMLHTTP" );
xhttp.onreadyst atechange = GetXmlHttpResul t;
xhttp.open("GET ", http://mydomain.com/WebPageThatDoesProcessing,
false);
xhttp.send();
}
function GetXmlHttpResul t()
{
if ( xhttp.readyStat e == 4 )
document.getEle mentById('statu smessage').inne rHTML = 'Submitted';
}
</SCRIPT>
TIA