/    Sign up×
Community /Pin to ProfileBookmark

"Please Wait" page

Hi guys, I need some help

?

I have a page that searches for price of products here where i work. My page is based on frames (top and botton). since mySQL take a long time to query my request i would like to have a javascript when i submit the query have the fuction display another page at the botton page while Im Searching, and when it is done searching i would close by itself and display my request :confused
some one can help me

thank you.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@UltimaterMay 09.2005 — You could do something server-side like write-out a waiting page before executing all your laggy statements and then update the page when the statements finish.

Or you could even Use frames and submit a background frame and update the visible page.

i.e. When the user triggers a function in the visible frame, it will submit a FORM in the hidden frame.

Then as an onsubmit event of the hidden frame's FORM, it will change the visible frame's URL to some loading page and then submit its FORM (in the hidden frame).

When the hidden FORM finishes submitting to the server and when the program is done it will write-out a new page to the hidden frame.

This new hidden-frame-page will have unique information form the server.

And in this page, it will have an automaticly-executing statement to update the visible frame with its information.
×

Success!

Help @aimank spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...