Click to See Complete Forum and Search --> : question on frames


suganya
09-11-2003, 11:43 AM
I have two frames & the code goes like this...

<frameset rows="*,0" framespacing="0" frameborder="0">
<frame name="addColsContent" id="addColsContent" src="as_addColsContent.jsp" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
<frame name="addColsFooter" id="addColsFooter" src="as_addColsFooter.jsp" marginwidth="10" marginheight="10" scrolling="no" frameborder="0">
</frameset>

yes,...i'm having my second frame hidden!...

i want to submit the hiddenframe's (addColsFooter) form when i click on the ok button of the frist frame (addColsContent)

i tried this... wouldn't work!...

in my 1st frames form:
<input style="width:60px" type="submit" name="submitButton" value="OK" onClick="onClickOKButton();">&nbsp;&nbsp;&nbsp;&nbsp;

parent.frames["addColsFooter"].document.getElementById("addColumnsSave").submit;

any help pls..
thankyou very much!...
:confused: :confused:

requestcode
09-11-2003, 12:05 PM
Try:
parent.frames["addColsFooter"].document.getElementById("addColumnsSave").submit();

You are missing the Parens after the submit.

suganya
09-11-2003, 12:08 PM
sorry!...that was an error when copy pasting the code....

i do have the paranthesis....
parent.addColsFooter.document.getElementById("addColumnsSave").submit();

thanks

requestcode
09-11-2003, 12:12 PM
If that is the only form in the frame then try this:
parent.addColsFooter.document.forms[0].submit();

"forms[0]" refers to the first form in the forms array.

suganya
09-11-2003, 12:19 PM
the frame1 has the form addcolsRetrieve and the frame2 has addColsSave. now, both these forms are mapped to two different actions....What i am trying to achieve is, when the ok button in form addColsRetrieve is clicked, i need to ca;; the action mapped to the form in frame2 which would save the form in frame1 and when the user just opens up the page, it should call the action of the frame1 form which is retrieving teh form with the user entered values...

thanks