When I have an asp.net page doing a postback, the browser switches to a wait cursor, but move the the cursor over the asp.net page area and it turns to a pointer. Sorry for the basic qusetion, but is there a way to allow the cursor to not be reset to a pointer
arrow over the page? I expect it to change over a button for instance, or anywhere where I declared the cursor should be something specific. The expected result was that the cursor turns to a wait cursor while waiting for a postback to do its thing. Thanks
for any insight. :o)
someone mentioned using javascript to show a "please wait" frame after posback and then hiding it again after load here: http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=401845 But I was still hoping for a way to make sure the cursor is properly shown
as a wait cursor when the page is taking its time between postbacks. Anyone have an idea on this?
Instead of providin the style to onclick, u can define ur entire page under a div tag or under a td tag and provide a valid name for the tags. In the aspx page u can define the style like ...
<Div name='name1' id='name1'>
<form>
... // ur page definitions goes here ...
....
</form>
</Div>
(or)
<Td name='name1' id='name1'>
<form>
... // ur page definitions goes here ...
....
</form>
</Td>
and define the style as ..
<Style>
Div:hover
{ this.style.cursor=wait;
}
Td:hover
{ this.style.cursor=wait;
}
</Style>
Hope this would resolve ur problem ...
Regards,
Sam
Mark the post as Answered, if it helps you to fix the problem that you faced.
And one more thing, i guess this is a new thread ... so it will be always better to make a new post when u r making a new thread .. so that others in the forum can also able to work it out ...
Hope this may resolve ur problem ...
Regards,
Sam
Mark the post as Answered, if it helps you to fix the problem that you faced.
zephyros
Participant
1045 Points
209 Posts
wait cursor turns to pointer over form, how to set to wait cursor
Mar 22, 2004 12:06 AM|LINK
zephyros
Participant
1045 Points
209 Posts
Re: wait cursor turns to pointer over form, how to set to wait cursor
Mar 22, 2004 12:21 AM|LINK
SomeNewKid
All-Star
45894 Points
8027 Posts
Re: wait cursor turns to pointer over form, how to set to wait cursor
Mar 22, 2004 03:33 AM|LINK
<script type="text/javascript"> function PleaseWait() { document.body.style.cursor = "wait"; return true; } </script> <form runat="server" onsubmit="return PleaseWait();"> </form>I hope this helps.sheila_rt
Member
430 Points
211 Posts
Re: wait cursor turns to pointer over form, how to set to wait cursor
Apr 20, 2007 05:30 AM|LINK
hi,
I put this code inside the on click event of a button...
Button_kaisha.Attributes.Add("onclick", "document.body.style.cursor = 'wait';")
But nothing happens.
I am using asp.net and vb as code behind.
Any idea?
Thanks!
Sheila
imperialz
Participant
912 Points
189 Posts
Re: wait cursor turns to pointer over form, how to set to wait cursor
Apr 20, 2007 06:40 AM|LINK
Hi,
Instead of providin the style to onclick, u can define ur entire page under a div tag or under a td tag and provide a valid name for the tags. In the aspx page u can define the style like ...
<Div name='name1' id='name1'>
<form>
... // ur page definitions goes here ...
....
</form>
</Div>
(or)
<Td name='name1' id='name1'>
<form>
... // ur page definitions goes here ...
....
</form>
</Td>
and define the style as ..
<Style>
Div:hover
{
this.style.cursor=wait;
}
Td:hover
{
this.style.cursor=wait;
}
</Style>
Hope this would resolve ur problem ...
Sam
Mark the post as Answered, if it helps you to fix the problem that you faced.
sheila_rt
Member
430 Points
211 Posts
Re: wait cursor turns to pointer over form, how to set to wait cursor
Apr 20, 2007 07:30 AM|LINK
Thanks!
i'll try it..
sheila_rt
Member
430 Points
211 Posts
Re: wait cursor turns to pointer over form, how to set to wait cursor
Apr 20, 2007 07:33 AM|LINK
hi,
Is it possible to disable the open option in a File Download Dialog Box?
Thanks!
imperialz
Participant
912 Points
189 Posts
Re: wait cursor turns to pointer over form, how to set to wait cursor
Apr 20, 2007 07:41 AM|LINK
Hi,
Try this ..
<META name="DownloadOptions" content="noopen">
And one more thing, i guess this is a new thread ... so it will be always better to make a new post when u r making a new thread .. so that others in the forum can also able to work it out ...
Hope this may resolve ur problem ...
Sam
Mark the post as Answered, if it helps you to fix the problem that you faced.
sheila_rt
Member
430 Points
211 Posts
Re: wait cursor turns to pointer over form, how to set to wait cursor
Apr 23, 2007 06:39 AM|LINK
hi imperialz,
Thanks! it worked.
Sheila
imperialz
Participant
912 Points
189 Posts
Re: wait cursor turns to pointer over form, how to set to wait cursor
Apr 23, 2007 06:40 AM|LINK
Hi,
Fine .. Can u mark the post as answered !!! I guess u forgot to mark it as answered ..
Regards,
Sam
Sam
Mark the post as Answered, if it helps you to fix the problem that you faced.