Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Clean, set hourglass, and display ?

Posted on 2014-12-26
2
Medium Priority
?
246 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 111

Accepted Solution

by:
Ray Paseur earned 2000 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 Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

773 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