Hi,
I need to submit a form in parent window through a child window. I have a fair idea of how this is done except - i have three buttons in my parent window that can submit the same form. When submitted I check which button was pressed and perform various functions accordingly. When I am submitting the form in parent through child is it possible to specify how the form should be processed. example.
<parent window>
<form name="test" action="SELF" method="POST">
<input type="submit" name="exchange" value="exchange">
<input type="submit" name="replace" value="replace">
<input type="button" name="original" onClick="openChildWindow()">
</form>
</parent window>
<child window>
<input type="text" name="send_to_parent">
<input type="submit" name="child_submit" onClick="sendtoparent()">
</child window>
In the "child window" I want to submit the form in the parent window as if the "original" button was pressed. Is this possible?
thanks
I need to submit a form in parent window through a child window. I have a fair idea of how this is done except - i have three buttons in my parent window that can submit the same form. When submitted I check which button was pressed and perform various functions accordingly. When I am submitting the form in parent through child is it possible to specify how the form should be processed. example.
<parent window>
<form name="test" action="SELF" method="POST">
<input type="submit" name="exchange" value="exchange">
<input type="submit" name="replace" value="replace">
<input type="button" name="original" onClick="openChildWindow()">
</form>
</parent window>
<child window>
<input type="text" name="send_to_parent">
<input type="submit" name="child_submit" onClick="sendtoparent()">
</child window>
In the "child window" I want to submit the form in the parent window as if the "original" button was pressed. Is this possible?
thanks