Hourglass Cursor

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe

    #1

    Hourglass Cursor

    How can I control the cursor type in a webform - for instance I have a form that executes a function to retrieve rows from an oracle database and populate a grid with the results. I would like to have the cursor change to an hourglass at the beginning of the function and then return to normal at the completion of the function

    Thanks
  • Marina

    #2
    Re: Hourglass Cursor

    2 things:

    1)Cursors are a strictly client side issue (since it is the user at the
    browser that sees that), and so a cursor can only be changed via client side
    code (which could be generated on the server)

    2)None of the client side code starts executing, until all of the server
    side code is done. Meaning, you can write code to generate javascript that
    will change the cursor - but that code will not be executed until all the
    server side code is done - including your database retrieval. At which point
    too late, as the database work is complete anyway.

    So in conclusion, there is no way to do what you want with the standard web
    form type of setup..

    "Joe" <Joseph.Montele one.B@Bayer.com > wrote in message
    news:2E232654-C6BC-416E-A3CA-635F500913CB@mi crosoft.com...[color=blue]
    > How can I control the cursor type in a webform - for instance I have a[/color]
    form that executes a function to retrieve rows from an oracle database and
    populate a grid with the results. I would like to have the cursor change to
    an hourglass at the beginning of the function and then return to normal at
    the completion of the function.[color=blue]
    >
    > Thanks[/color]


    Comment

    • Cor

      #3
      Re: Hourglass Cursor

      Hi Joe,

      It depends on the type of control and the datagrid will be some work I
      think.

      However when it is a button you can add the needed javascript as Marina
      stated in attributes.

      The sample I always use is.

      TextBox1.Attrib utes("onblur") = "javascript:ale rt('Hello! Focus lost from
      text box!!');"

      I hope this helps a little bit?

      Cor



      Comment

      • Cor

        #4
        Re: Hourglass Cursor

        Hi Joe,

        It depends on the type of control and the datagrid will be some work I
        think.

        However when it is a button you can add the needed javascript as Marina
        stated in attributes.

        The sample I always use is.

        TextBox1.Attrib utes("onblur") = "javascript:ale rt('Hello! Focus lost from
        text box!!');"

        I hope this helps a little bit?

        Cor



        Comment

        Working...