473,385 Members | 1,942 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,385 software developers and data experts.

Display a Wait/ Busy cursor

Hi Guys

I have a form using PHP/ CSS/ HTML for updating customer details and then eMailing them the revisions. The form is posted with an 'Input: Type Image' which updates the database prepares a bespoke HTML email and sends it. My problem is this, the above process takes a couple of seconds before the user is sent to a confirmation page which gives the feeling that nothing has happened and the probability is the user may try to click the button again.

What I need is to display a Wait cursor when the button is clicked and then return to default just prior to the redirect.

I have looked at dozens of sites and none of the stuff that people swear on their grannies grave and is the best thing since sliced bread actually works, it is mainly links or active form areas.

So as a recap what I need is :-

'Click'-> 'Wait cursor' -> Do the hidden stuff -> 'Default cursor' -> 'Redirect'

Thanks in anticipation
Jun 7 '12 #1
3 3753
Rabbit
12,516 Expert Mod 8TB
Use javascript to change the cursor style of the body to wait.
Jun 7 '12 #2
Thanks for that, however, could you expand the answer so as to show me some code that actualy works and where to place it in relation to the button click and the php controller.

Kind regards
Jun 7 '12 #3
Rabbit
12,516 Expert Mod 8TB
Sorry, I don't give out code unless the poster has shown an attempt at a solution.
Jun 7 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Simon Wigzell | last post by:
How can I set a busy cursor for my whole page rather than just for a link? My page calls another page with form arguments that does some processing then changes the values on the calling page. It...
4
by: deepblue | last post by:
Hi, How to display a "Please wait" message in a webform when the webform is doing processing? The processing is initiated by user clicking a button. Thanks, Deepblue
10
by: Bill H | last post by:
I used a bit of JS on a page that is fairly long and didn't like the way that <A HREF='#' ONCLICK=\"... refreshed the page to the top. Removing the HREF (<A ONCLICK=\"...) solved my...
3
by: Aaron Queenan | last post by:
I have a form which performs some asynchronous code. I want to display a wait cursor when it starts, and hide the wait cursor when it has completed. This part works fairly well, using: ...
0
by: BD Jones | last post by:
I added some code to a web form to display an hourglass cursor when posing back, but IE sometime crashes. My Web form contains a button. I set the onclick function in the code-behind as...
6
by: SP | last post by:
Hi, I want to add wait cursor code whenever page is post back. Page may be post back on my user control's or on change of dropdown or on click of any button on page. so is there any common...
2
by: Ed Bick | last post by:
Here's an easy one, I'm sure. In VB6 I would do MousePointer = vbHourGlass. How do I do this in .Net?
4
by: Marty Cruise | last post by:
Does anyone know of an wait-type cursor that can show text beside the hourglass? I'd like to display status messages beside the hourglass while not allowing the user to click anything...
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
12
by: info | last post by:
Hi All, I am trying to set the hourglass cursor inside a class that has nothing to do with MainForm class and I don't want to pass a reference to MainForm. How can I set the current cursor to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.