TheObserver
Programmer
I need to submit a form in an IFRAME to itself from the parent document/page. I believe I've gotten the JS written correctly to do this. It works just fine in IE (I know that IE is pretty error tolerant) - the IFRAME submits to itself. However, in NS, the IFRAME submits and the entire parent window gets submitted. I need for this to not occur.
Here is the JS I'm using:
onClick="parent.hiddeniframe.hiddensub.MYVAL.value='SELECTED_VAL'; parent.hiddenframe.hiddensub.submit();"
Here is how my IFRAME is defined:
<IFRAME SRC="hiddeniframe.jsp" NAME="HIDDEN" ID="HIDDEN" style="width:100px; height:100px; border: 0px"></IFRAME>
And here is the actual form in the hiddeniframe.jsp file:
<FORM NAME="hiddensub" ACTION="hiddeniframe.jsp">
<INPUT TYPE="HIDDEN" NAME="MYVAL" VALUE="">
</FORM>
Thanks for your time.
Here is the JS I'm using:
onClick="parent.hiddeniframe.hiddensub.MYVAL.value='SELECTED_VAL'; parent.hiddenframe.hiddensub.submit();"
Here is how my IFRAME is defined:
<IFRAME SRC="hiddeniframe.jsp" NAME="HIDDEN" ID="HIDDEN" style="width:100px; height:100px; border: 0px"></IFRAME>
And here is the actual form in the hiddeniframe.jsp file:
<FORM NAME="hiddensub" ACTION="hiddeniframe.jsp">
<INPUT TYPE="HIDDEN" NAME="MYVAL" VALUE="">
</FORM>
Thanks for your time.