Hourglass Cursor

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 said:
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.
 
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.Attributes("onblur") = "javascript:alert('Hello! Focus lost from
text box!!');"

I hope this helps a little bit?

Cor
 
Back
Top