D
Dave
I have a page that, when invoked, it runs a while (~ 15 seconds), then
displays a DataGrid control. What I want to accomplish is to have the mouse
pointer go to 'wait', then after the control displays, return to 'default'.
What happens is the SetWaitPointer() routine changes the cursor to 'wait',
but before the data grid is displayed on the page, 'SetDefaultPointer()'
runs and changes the cursor back to 'default'. This happens about 3 seconds
in, so the user spends 12 seconds looking at a blank window and a default
mouse pointer. I'm imagining that's when he will get that uneasy "Don't
leave me hanging, Dawg" feeling.
I have included a simplified version of the code I use for this. Can anyone
point me to a solution to this? How can I make sure that
SetDefaultPointer() won't fire until the control displays?
Thanks,
Dave
'The platform is Visual Studio 2003, in-line VB.NET
'The functions SetWaitPointer() & SetDefaultPointer() are basically
Javascript:
dim sCommand as string = "document.body.style.cursor = 'wait'; "
response.write("<script language=JavaScript>" & sCommand & "<" &
"/script>")
Sub Page_Load(Sender As Object, E As EventArgs)
SetWaitPointer()
DisplayDatabaseGrid()
SetDefaultPointer()
End Sub
displays a DataGrid control. What I want to accomplish is to have the mouse
pointer go to 'wait', then after the control displays, return to 'default'.
What happens is the SetWaitPointer() routine changes the cursor to 'wait',
but before the data grid is displayed on the page, 'SetDefaultPointer()'
runs and changes the cursor back to 'default'. This happens about 3 seconds
in, so the user spends 12 seconds looking at a blank window and a default
mouse pointer. I'm imagining that's when he will get that uneasy "Don't
leave me hanging, Dawg" feeling.
I have included a simplified version of the code I use for this. Can anyone
point me to a solution to this? How can I make sure that
SetDefaultPointer() won't fire until the control displays?
Thanks,
Dave
'The platform is Visual Studio 2003, in-line VB.NET
'The functions SetWaitPointer() & SetDefaultPointer() are basically
Javascript:
dim sCommand as string = "document.body.style.cursor = 'wait'; "
response.write("<script language=JavaScript>" & sCommand & "<" &
"/script>")
Sub Page_Load(Sender As Object, E As EventArgs)
SetWaitPointer()
DisplayDatabaseGrid()
SetDefaultPointer()
End Sub