OK, I need some clarification. For consistency sake, let's stick with the naming convention for now.
Main Window
contains a hidden iframe (pop2),
>Your "trigger" will load a page in that hidden iframe which runs the >query and then populates the data in the main visible frame
Now, does the Main Window have to constructed as some sort of frame? the definition of iframe does not seem to suggest that.
The way to construct the iframe piece is like?
<div id="loader" style="visibility:hidden">
<iframe src="" width="0" height="0">
</div>
How to trigger the iframe to load (should be different from display, right?)
>you can have a hidden div in the main frame that says "Please wait..." >that will become visible while that iframe code is doing its work and >invisible when the iframe code is done.
Elaborate please. "main frame" refers to Main Window?
Many thanks.
Don
> Original Message:
> > From: Chunshen (Don) Li
>
> > I've spent at least one hour on figuring out how to work out this
> "oo" thing. Here's the scoop, I have one Main window, which contain
> form and elements, upon certain action, triggers a popup window, which
> does two things of 1) query a database to pull certain data out; 2)
> write the data to (populate) the Main window, then, close itself.
> >
> > However, since, query/data retrieval and population may take a while,
> so, I'd like to add msg like, "Please wait ..." upon loading, and yet,
> it causes double buffer, the single popup window won't do, which
> leaves me with no choice but to add another little named popup window
> to say "Please wait ...". These two popup windows are loaded in the
> sequence of pop msg and pop data loader. Problem, pop data loader,
> closes itself upon job completion, fine, but the pop msg window won't
> close.
>
> If all the first popup window does is perform a query and populate the
> main window, have you considered using an iframe instead?
>
> Basically, here's what I'm thinking:
> Your main window will have a hidden iframe. Your "trigger" will load a
> page in that hidden iframe which runs the query and then populates the
> data in the main visible frame. And, if you want, you can have a
> hidden div in the main frame that says "Please wait..." that will
> become visible while that iframe code is doing its work and invisible
> when the iframe code is done.
>
> That would seem a bit more user-friendly, because your users won't
> have to see the unnecessary pop-ups (not to mention that if they have
> pop-ups disabled, this code will still work).
>
> Scott
> ---------------------------
> Scott Brady
> http://www.scottbrady.net/
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

