Click to See Complete Forum and Search --> : submit problem


zuzupus
07-04-2003, 08:38 AM
hi,

i got problem in submiting the page in same form like i have three forms
test.html
<script>
function FSpeichEnt() {
MeinFSpeicherEnt =
window.open("speichern_01_index.htm", "SENDENr", "menubar=no,left=450,top=450,width=200,height=100,toolbars=no,scrollbars=no");
FSpeichEnt.focus();
//document.form.action="test.html"
}
</script>
<form name=test>
<TD height="52" nowrap width="169">
<DIV align="center" class="butt_links-gr07_ws_orange"><A href="javascript:FSpeichEnt()" target="_top" class="butt_links-gr07_ws"><B>SAVE</B></A></DIV>
</TD>
<form>

when i click on image SAVE a window is opening with below form
speichern_01_index.html in this form
<script>
function MM_popupMsg(msg) {
alert(msg);
}
</script>
<form>
<INPUT type="button" name="Button_okay" value="OK" class="butt_links-gr07_ws_gruen" onClick="MM_popupMsg(R U sure to save');window.close()">
</form>
when i click on this button this will pop up one window and when i clcik on OK the window is closed that ok but i want when i click on OK another form name=save2.html will open in same browser where test form is located

imean to say when click on Ok the page [B]save2.html[B] will submitted on [B]test.html[B]

thanks

Khalid Ali
07-04-2003, 09:13 AM
if I understand your question correctly then here is what you need to do.
replace the line below
onClick="MM_popupMsg(R U sure to save');window.close()">

with this line of code

onClick="MM_popupMsg('R U sure to save');window.location.href='save2.html'">

zuzupus
07-04-2003, 09:45 AM
thanks but this save.html must submit to test.html not to second form speichern_01_index.html as this html will close first then submit sav.html tot test.html

hope thsi si clear for u