[LON-CAPA-dev] javascript question?

Guy Albertelli II lon-capa-dev@mail.lon-capa.org
Fri, 14 Mar 2003 18:56:08 -0500 (EST)


Hi Hon-Kie,

> I have a window opened by the parent window. On the new window I have a 
> form and when I submit the form, the display should go back to the parent 
> window. At the same time, I want to close the new window. The two lines of 
> codes in javascript
> 
> document.formname.submit();  //note the formname is targeted to the parent 
> window
> self.close();
> 
> seems to work with IE and mozilla. But it does not work with netscape. In 
> netscape, it closes the new window and doesn't do anything, ie, it seems 
> the new window is closed before the form is submitted.
> 
> Any ideas how to make work on netscape?

Looks like lonparmset does this

the Store link causes the child to write it's values to the parent window, and
then calls a function that exists in the parent window that closes the
child window.


-- 
guy@albertelli.com  LON-CAPA Developer  0-7-7-4-