473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Hourglass Cursor

Joe
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
Nov 22 '05 #1
4 1791
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" <Jo*****************@Bayer.com> wrote in message
news:2E**********************************@microsof t.com...
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

Nov 22 '05 #2
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" <Jo*****************@Bayer.com> wrote in message
news:2E**********************************@microsof t.com...
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

Nov 22 '05 #3
Cor
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

Nov 22 '05 #4
Cor
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

Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andy G | last post by:
This should be very simple but I can't figure it out or find ANYTHING posted about how to change your cursor to an hourglass. I have a ASP.NET web form using VB.NET code behind. When I click on a...
6
by: Lars | last post by:
Hi, I have created a simple custom PrintPreviewDialog consisting of a simple standard PrintPreviewControl (.NET 1.1) on a WindowsForm with a few buttons (for printing, zooming, etc.). It is...
7
by: Henry Stockbridge | last post by:
Hi, I am running the following code and the visibility of the Hourglass appears late, instead of immediately. Any ideas of how I can remedy this? ============= Private Sub...
3
by: bob | last post by:
Is there anyway to show the hourglass (busy) cursor on the entire monitor screen, not just when the cursor is within the current program's window? Thanks
6
by: Tomek | last post by:
In my page I reload JavaScript. When it is reloading the cursor change to "wait" (hourglass). After javascript loaded it does not change back to the "hand" if cursor stay on hyperlinks. How can I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.