wait cursor turns to pointer over form, how to set to wait cursor

Last post 04-25-2007 12:07 AM by sheila_rt. 10 replies.

Sort Posts:

  • wait cursor turns to pointer over form, how to set to wait cursor

    03-21-2004, 8:06 PM
    • Participant
      1,045 point Participant
    • zephyros
    • Member since 11-07-2003, 2:31 PM
    • Posts 209
    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)
  • Re: wait cursor turns to pointer over form, how to set to wait cursor

    03-21-2004, 8:21 PM
    • Participant
      1,045 point Participant
    • zephyros
    • Member since 11-07-2003, 2:31 PM
    • Posts 209
    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?
  • Re: wait cursor turns to pointer over form, how to set to wait cursor

    03-21-2004, 11:33 PM
    • All-Star
      45,854 point All-Star
    • SomeNewKid
    • Member since 08-10-2003, 12:16 AM
    • Western Australia
    • Posts 8,027
    Here's the code I used recently:
    <html>
    
    <head>
    <script type="text/javascript">
    function PleaseWait() {
    document.body.style.cursor = "wait";
    return true;
    }
    </script>
    </head>
    <body>
    <form runat="server" onsubmit="return PleaseWait();">
    <!-- your webform -->
    </form>
    </body>
    </html>

    I hope this helps.
    Alister
  • Re: wait cursor turns to pointer over form, how to set to wait cursor

    04-20-2007, 1:30 AM
    • Member
      430 point Member
    • sheila_rt
    • Member since 10-18-2006, 11:05 PM
    • Japan/Philippines
    • Posts 211

    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

     

    Rock on!!!
  • Re: wait cursor turns to pointer over form, how to set to wait cursor

    04-20-2007, 2:40 AM
    • Participant
      912 point Participant
    • imperialz
    • Member since 07-19-2006, 1:18 PM
    • Bangalore
    • Posts 189
    sheila_rt:
     

            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?

    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 ...

    Regards,
    Sam

    Mark the post as Answered, if it helps you to fix the problem that you faced.
  • Re: wait cursor turns to pointer over form, how to set to wait cursor

    04-20-2007, 3:30 AM
    • Member
      430 point Member
    • sheila_rt
    • Member since 10-18-2006, 11:05 PM
    • Japan/Philippines
    • Posts 211

    Thanks!

     

    i'll try it..

     

    Rock on!!!
  • Re: wait cursor turns to pointer over form, how to set to wait cursor

    04-20-2007, 3:33 AM
    • Member
      430 point Member
    • sheila_rt
    • Member since 10-18-2006, 11:05 PM
    • Japan/Philippines
    • Posts 211

    hi,

    Is it possible to disable the open option in a File Download Dialog Box?

    Thanks!

    Rock on!!!
  • Re: wait cursor turns to pointer over form, how to set to wait cursor

    04-20-2007, 3:41 AM
    • Participant
      912 point Participant
    • imperialz
    • Member since 07-19-2006, 1:18 PM
    • Bangalore
    • Posts 189

    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 ... 

    Regards,
    Sam

    Mark the post as Answered, if it helps you to fix the problem that you faced.
  • Re: wait cursor turns to pointer over form, how to set to wait cursor

    04-23-2007, 2:39 AM
    • Member
      430 point Member
    • sheila_rt
    • Member since 10-18-2006, 11:05 PM
    • Japan/Philippines
    • Posts 211

    hi imperialz,

    Thanks! it worked.

    Sheila

    Rock on!!!
  • Re: wait cursor turns to pointer over form, how to set to wait cursor

    04-23-2007, 2:40 AM
    • Participant
      912 point Participant
    • imperialz
    • Member since 07-19-2006, 1:18 PM
    • Bangalore
    • Posts 189

    Hi,

             Fine .. Can u mark the post as answered !!! I guess u forgot to mark it as answered ..

    Regards,
    Sam

    Regards,
    Sam

    Mark the post as Answered, if it helps you to fix the problem that you faced.
  • Re: wait cursor turns to pointer over form, how to set to wait cursor

    04-25-2007, 12:07 AM
    • Member
      430 point Member
    • sheila_rt
    • Member since 10-18-2006, 11:05 PM
    • Japan/Philippines
    • Posts 211

    hi,

    I noticed that when I click the Stop button (X) in the internet toolbar, the hourglass is still there.

    Thanks!

     

    Sheila

    Rock on!!!
Page 1 of 1 (11 items)