Parent Window; Child Window Issue
-
Hi There, I have an ASP.NET page. I open a child window using the JavaScript function. When the parent closes, the child closes. When the parent refreshes, it loses the variable name of the open child window. So, I can't do anything with it afterwards. I know that you can use a hidden frame to keep track of the variables. Is there any way to maintain functionality without using hidden frames? Thanks in advance for your help. Emanuel
-
Hi There, I have an ASP.NET page. I open a child window using the JavaScript function. When the parent closes, the child closes. When the parent refreshes, it loses the variable name of the open child window. So, I can't do anything with it afterwards. I know that you can use a hidden frame to keep track of the variables. Is there any way to maintain functionality without using hidden frames? Thanks in advance for your help. Emanuel
Hi, Are you not using the "Name" attribute of the window.open method? e.g.
var wnd = window.open("http://www.google.com.au", "MYWINDOW", ... );
Even with a page refresh, when you perform this, IE will look for a window with the specified name and return the reference back to you. Of course, this means that you need to perform a navigate to do this, but it depends what you are displaying in your child window? Hope this helps, Andy