I am trying to change the arrow cursor to an hourglass.
- The user clicks a button
- The onClick event (in C#) hits the server and takes about 8-10 seconds to query and populate the gridview. I would like the hourglass to show during this time.
All code is written in VS.NET 2005 with ASP.NET and C# using IE7. I am an extreme amateur with Java, and I don't really know where to begin. So far I have this:
<script type="text/javascript">
<!--//
function turnOn() {
document.body.style.cursor = "wait";
}
function turnOff() {
document.body.style.cursor = "default";
}
-->
</script>
I don't know how to fire this code when the button is clicked and then have it change the cursor back when the gridview is populated.
I have looked everywhere and can't figure this out. Any help is greatly appreciated....thanks!!!
- The user clicks a button
- The onClick event (in C#) hits the server and takes about 8-10 seconds to query and populate the gridview. I would like the hourglass to show during this time.
All code is written in VS.NET 2005 with ASP.NET and C# using IE7. I am an extreme amateur with Java, and I don't really know where to begin. So far I have this:
<script type="text/javascript">
<!--//
function turnOn() {
document.body.style.cursor = "wait";
}
function turnOff() {
document.body.style.cursor = "default";
}
-->
</script>
I don't know how to fire this code when the button is clicked and then have it change the cursor back when the gridview is populated.
I have looked everywhere and can't figure this out. Any help is greatly appreciated....thanks!!!