Hello
I have an intranet site that pulls data from our database with the help of remote scripting. Here is the code...
When I push the button, the button stay pressed until the data is pulled. Also, when I press the button, the loading.gif appears and dissapears when the data is ready.
The problem is that loading.gif is an animated gif. When the image apears, it freeses (doesn't animate).
Is there an function or something like 'DoEvents' in Visual Basic that could help me out here?
Thanks!
Greetz
VBMim
I have an intranet site that pulls data from our database with the help of remote scripting. Here is the code...
Code:
<script language="javascript">
function LoadingKnipper(show)
{
if (show == true)
PictLoading.style.display = "block";
else
PictLoading.style.display = "none";
}
function GetData()
{
rsFunc=RSGetASPObject("../Project/RSFunctions.ASP");
IHTML = rsFunc.FunctionPullData(text1.value).return_value;
DivWithData.innerHTML = IHTML;
}
</script>
<input id="text1" name="text1"><br>
<input id="button1" name="Button1" type="button" value="Omzetten" onclick="GetData();" onmouseup="LoadingKnipper(false);" onmousedown=LoadingKnipper(true);><br>
<IMG id=PictLoading style="DISPLAY: none" height=30 src="images/loading.gif" width=80 name=PictLoading><br>
<div name="DivWithData" id="DivWithData"></div>
When I push the button, the button stay pressed until the data is pulled. Also, when I press the button, the loading.gif appears and dissapears when the data is ready.
The problem is that loading.gif is an animated gif. When the image apears, it freeses (doesn't animate).
Is there an function or something like 'DoEvents' in Visual Basic that could help me out here?
Thanks!
Greetz
VBMim