Avatar of Richard Coffre
Richard Coffre
Flag for France asked on

Clean, set hourglass, and display ?

Hi all,

When I run some PHP scripts, it can take time.
While the process nothing changes in the browser.

I need to know if it is possible when I start the script:
- to clean/empty the browser window
- to set a waiting message
- to change the mouse pointer by setting the hourglass icon
- when the job is done (e.g. parsing data), reset the mouse icon to the default
- to display what I want.

Regards,
Richard
jQueryPHPJavaScriptAJAXCSS

Avatar of undefined
Last Comment
Ray Paseur

8/22/2022 - Mon
Brian Tao

I haven't tested this, but you should be able to achieve what you want by:
1) display an empty/blank page
2) use AJAX to call your current PHP script from the page
3) when everything is done (the AJAX call returned successfully), display whatever is returned by your PHP script to the page
ASKER CERTIFIED SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes