wait cursor in ie

Discussion in 'Javascript' started by mlybarger@gmail.com, Jul 29, 2005.

  1. Guest

    i'm trying to display a wait cursor in IE when doing a long running
    operation, say posting xml data when the user clicks a button on the
    page. i've tried to set the body.style="wait", but that only sets the
    cursor for the main controls. for example:

    <BODY ID="b1">

    <INPUT TYPE="BUTTON" ONCLICK="body.style.cursor='wait'" VALUE="Click
    Me">
    <DIV ID="d1">This is where the count of iterations should display</DIV>
    </body>

    when the browser is maximized on a standard display, only the upper
    left corner will have the wait cursor. further, adding a style="cursor:
    hand;" to the input button lets it ignore the body's style.

    our current solution to put up an hour glass during a long running op
    has been to put up a clear div over the entre page, and set it's cursor
    to a wait. There must be a better way to handle this, as it seems to
    be a very expensive operation to put up a clear div to show an
    hourglass on the whole page.

    thoughts, ideas?
     
    , Jul 29, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?bWlrZWU=?=

    Cursor wait, hide or show

    =?Utf-8?B?bWlrZWU=?=, Dec 12, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    752
    Alex Papadimoulis
    Dec 12, 2003
  2. =?Utf-8?B?QkQgSm9uZXM=?=

    Hourglass ('wait') cursor causes IE to crash

    =?Utf-8?B?QkQgSm9uZXM=?=, Oct 26, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    605
    =?Utf-8?B?QkQgSm9uZXM=?=
    Oct 26, 2004
  3. =?Utf-8?B?VG9tYXMgS2VwaWM=?=

    Changing DEFAULT cursor to WAIT cursor in ASP

    =?Utf-8?B?VG9tYXMgS2VwaWM=?=, Apr 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,378
    Bruce Barker
    Apr 5, 2005
  4. invy
    Replies:
    4
    Views:
    422
    CBFalconer
    Dec 28, 2006
  5. dmaziuk
    Replies:
    3
    Views:
    631
    Chris Gonnerman
    Jan 25, 2011
Loading...

Share This Page