Solved

Clean, set hourglass, and display ?

Posted on 2014-12-26
2
200 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 109

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 Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

830 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