cursor to hourglass

A

Andy G

This should be very simple but I can't figure it out or find ANYTHING posted
about how to change your cursor to an hourglass. I have a ASP.NET web form
using VB.NET code behind. When I click on a button I want the cursor to
change to an hourglass and then change back to the normal cursor afterwards.
Any help would be greatly appreciated.

Thanks.
 
H

Hans Kesting

Andy said:
This should be very simple but I can't figure it out or find ANYTHING
posted about how to change your cursor to an hourglass. I have a
ASP.NET web form using VB.NET code behind. When I click on a button
I want the cursor to change to an hourglass and then change back to
the normal cursor afterwards. Any help would be greatly appreciated.

Thanks.

"cursor" is a client-side issue. You can set that via css/style settings.
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/cursor.asp

But: a button-click usually means a post to the server. You might have
problems with either keeping it an hourglass or setting it back.

Hans Kesting
 
E

Eliyahu Goldin

In the client-side onclick event set css rule cursor:wait. Set it to auto
whwn you are done.

Eliyahu
 
G

Guest

As others have mentioned you can achieve desired effect with the use of css.
Though, it looks like you're thinking Windows application when you asked
this question. Why would you want to change cursor to hourglass when button
is clicked and form is submitted? Are you trying to tell your users to wait?
Lets think Web; User clicks a button form is submitted, user has to wait for
browser to reload the page. Is not it kind of obvious that user has to wait?
Besides spinning globe thingy in IE kind of indicates that.
Stop thinking Windows and start thinking Web.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top