Solved

Clean, set hourglass, and display ?

Posted on 2014-12-26
2
185 Views
Last Modified: 2015-01-05
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
0
Comment
Question by:Richard Coffre
2 Comments
 
LVL 9

Expert Comment

by:Brian Tao
ID: 40518558
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
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 40518585
This isn't really a question with an answer, so much as a research project in application development.  Some of the pieces are already available in demonstration scripts in these articles.

Here is the jQuery "Hello World:"
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Jquery/A_10712-The-Hello-World-Exercise-with-jQuery-and-PHP.html

Here is a jQuery progress bar:
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Jquery/A_14519-A-jQuery-Progress-Bar.html
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now