/    Sign up×
Community /Pin to ProfileBookmark

Popup window pre load

Ok..I’m not sure where to start with this one (or if it can be done at all)

I have a popup child window used for selection which returns to the parent window. easy enough. However, it may take like a .5 to 1 second for the page inside the popup window to come across the first time.

Is there anyway to display a message/graphic in this window on open until the page has come across?

Open to ideas (that work).

Thanks

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@slaughtersOct 26.2006 — By pop-up window I take it to mean that you are bringing up a new browser window.

If so, then the .5 to 1 second delay to you may be a 10-30 second delay to someone who has a bunch of other stuff open and/or limited memory or resources available for another browser window to be opened.

If the delay is *not* do to waiting for the window, but instead is do to some server side script that needs to run in order to populate the window (ie a database query) then you can open the pop-up to an HTML file that contains a "Please Wait" graphic and which then immediatly forwards itself to the page containing the server side script
<body onload='location="serverside.php";'>Please Wait...</body>
Copy linkTweet thisAlerts:
@RobDavidauthorOct 26.2006 — By pop-up window I take it to mean that you are bringing up a new browser window.

If so, then the .5 to 1 second delay to you may be a 10-30 second delay to someone who has a bunch of other stuff open and/or limited memory or resources available for another browser window to be opened.

If the delay is *not* do to waiting for the window, but instead is do to some server side script that needs to run in order to populate the window (ie a database query) then you can open the pop-up to an HTML file that contains a "Please Wait" graphic and which then immediatly forwards itself to the page containing the server side script
<body onload='location="serverside.php";'>Please Wait...</body>[/QUOTE]



Yes, that's what I was trying to say...I guess I didn't word it so good.

That makes sense...I'll give it a try.

I don't understand how the serverside.php page would be 'ready' on the onload of the "please wait" page? Wouldn't it just load the "please wait" page, then load the "serverside" page?
Copy linkTweet thisAlerts:
@slaughtersOct 26.2006 — Yes, that's what I was trying to say....[/QUOTE]Since I mentioned two things, each mutually exclusive, I really don't know what you are agreeing too.
×

Success!

Help @RobDavid 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.20,
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,
)...