473,795 Members | 3,358 Online
Bytes | Software Development & Data Engineering Community
+ 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 1822
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******** *************** ***********@mic rosoft.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******** *************** ***********@mic rosoft.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.Attrib utes("onblur") = "javascript:ale rt('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.Attrib utes("onblur") = "javascript:ale rt('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
7000
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 button I want the cursor to change to an hourglass and then change back to the normal cursor afterwards. Any help would be greatly appreciated. Thanks.
6
6371
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 working fine, except for that I cannot figure out how display the waitcursor / hourglass while the preview is preparing to show the document *and then go back to the default cursor when the document is displayed*. Turning on the waitcursor is easy,...
7
4287
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 lblUpdateMDList_Click()
3
6784
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
11573
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 turn off changing cursor to "wait" (hourglass) is javascript is reloading.
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10213
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7538
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6779
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.