Start a form submission in for a parent window from a child window

Dear all,

Suppose I use Internet Explorer.

I implemented a popup modal window. So I have a parent window and a child window, after I finish the work on child window, I save some results on the session. So I arrange that when I close the child window, I will refresh the parent window to update the data.

However, in the parent window, if I already filled some fields of a form before I open the child window, I will lose all of them after refresh.

Now I want to replace the line:

>>window.dialogArguments.location.reload(true);

by something to submit the action form for the parent window (I know the location by window.dialogArguments.location). If this works, I will be able to keep the previous filled data and start a new action instead a refresh.

My question is that how to write this form submission from the child window (by javascript?).

Best regards,

Pengyou

[936 byte] By [pengyoua] at [2007-11-27 2:32:07]
# 1

i would instead have the child window call javascript functions inside the parent window, passing in whatever you want to update on the parent. this way you don't have to do so many refreshes.

all you have to use in the child window is:

opener.[name of function in parent window](param1, param2, param3....);

den2681a at 2007-7-12 2:47:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...