iguessthehandlecheck
Programmer
I am trying to open a window and run a query within it. The window is supposed to set certain calling window variables and the main window needs to execute some code after the called window is closed. But as soon as the window opened with the following:
var szURL = "calcvalues.cfm?valueA=" + value1 +'&valueB=' +value2;
var x = window.open(szURL, 'ABC', 'width=50,height=50,alwaysRaised');
the main window starts executing next statments while the called window is still executing. I need to wait until the called window finishes. I tried to put the while loop to check if window is closed but that only hogs the system and called window does not even get time to execute.
Thanks,
var szURL = "calcvalues.cfm?valueA=" + value1 +'&valueB=' +value2;
var x = window.open(szURL, 'ABC', 'width=50,height=50,alwaysRaised');
the main window starts executing next statments while the called window is still executing. I need to wait until the called window finishes. I tried to put the while loop to check if window is closed but that only hogs the system and called window does not even get time to execute.
Thanks,