> 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]

