473,468 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1792
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: 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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.