Before PHP executes the query task, it returns the user to "querying."
Source: Internet
Author: User
Before PHP executes the query task, it returns "querying ..." to the user.
How can you give the user back "querying, wait and see results" after the user submits the query?
The query task is then run on the server because the query time is long and cannot be returned until he has the result.
------to solve the idea----------------------
Ajax, click on query, display is querying ... Then request the background query, wait for the background to return the results, and then display the queried data
------to solve the idea----------------------
Ajax queries,
After the user point query, in the foreground with JS display wait.
Then the background processing and then update the foreground data display.
------to solve the idea----------------------
Ajax is fine.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service