Click to See Complete Forum and Search --> : Close a pop-up window in a frame


bibitivi
02-23-2003, 07:47 AM
I create a page of search for companies. When I click on the button "Search", a page creates two frames: a frame contains the page of research and the other, the page of the results. As research can take several seconds, then I open a window starting from the page containing code HTML to create the 2 frames. This window kindly requests to the user to wait. This window is closed after code HTML of the page of the results: "window.parent.windowName.close();". When I want to make a research again (when the research and the results on the screen), I open the wait window starting from the page of research and to close it in the page of the results. However, I do not know how to write my JavaScript code to close it "window.??????????????????.close(); ". Is there somebody which could help me?

Search? -> frameset (open window "wait")? -> search and results (closed window "wait")

Search (open window "wait")? -> results (closed window "wait")

You can see an example by using the following link: http://www3.sympatico.ca/louisaubin/search.htm

Thank you!

Timbuck2
02-23-2003, 08:38 AM
I can't quite be sure I understand what you are asking.
However , I strongly recommend that you do not open the window at all.

You can easily display the same message in the window which is already open.

If the server code is set to buffer then that is what they will see until the response returns.
if it is not then they page will begin loading as records come in.

There is no reason to open the window, yet there are many very important reasons to Not open the window.