Solved

Clean, set hourglass, and display ?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

911 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

19 Experts available now in Live!

Get 1:1 Help Now