form submit problem

liunx

Guest
hi,<br />
<br />
i created 3 forms namely <br />
parent form is test.html second one is save_index.html and third one is save.html<br />
<br />
when user clicks on SAVE in test. html ,then save_index.html is opening in this page it shows alert when click on ok,i want something like when user click on alert ok save.html will submit on test.html not in save_index.html <br />
<br />
when i use window.location.href=http://www.webdeveloper.com/forum/archive/index.php/"save.html" in onclick<br />
<INPUT type="button" value="OK" onClick="MM_popupMsg('Are you sure to save.');window.location.href='http://www.webdeveloper.com/forum/archive/index.php/save.html' "><br />
then save.html is submitting on save_index.html ,i want this page to be submit on test.html(parent form)<br />
<br />
3 forms<br />
***********************************************<br />
//test.html(main window)<br />
<br />
<html><br />
<script><br />
function FSave() {<br />
mywindow =<br />
window.open("save_index.html", "SENDENr", "menubar=no,left=450,top=450,width=200,height=100,toolbars=no,scrollbars=no");<br />
}<br />
</script><br />
<br />
<A href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:FSave();" target="_top"><B>SAVE</B></A><br />
</html><br />
**************************************************<br />
//save_index.html<br />
<html><br />
<script><br />
function MM_popupMsg(msg) { //v1.0<br />
alert(msg);<br />
redirectFunction();<br />
self.close();<br />
}<br />
function redirectFunction(){<br />
<br />
}<br />
</script><br />
<INPUT type="button" value="OK" onClick="MM_popupMsg('Are you sure to save.');"><br />
<br />
</html><br />
*************************************************<br />
//save.html<br />
<br />
<html><br />
<INPUT type="submit" name="Button" value="ok"><br />
</html><br />
***********************************************<br />
<br />
thanks<!--content--><script> <br />
function MM_popupMsg(msg) { //v1.0 <br />
alert(msg);<br />
redirectFunction(); <br />
self.close();<br />
} <br />
function redirectFunction() { <br />
testpage.location="whatever.htm"<br />
} <br />
</script> <br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
//test.html(main window) <br />
<script> <br />
function FSave() {<br />
testpage = window.self<br />
mywindow = <br />
window.open("save_index.html", "SENDENr", " menubar=no,left=450,top=450,width=200,height=100,t<br />
oolbars=no,scrollbars=no"); <br />
} <br />
</script> <br />
<br />
<br />
<br />
<br />
chao,<br />
zach<!--content-->If all your pages are plain .html then how is it going to save anything?<br />
<br />
Besides which, all your script tags should have<br />
<br />
<script type="text/javascript"><!--<br />
<br />
<br />
<br />
<br />
--></style><br />
<br />
in them.<!--content-->sorry guys its too late i already finished anyway its really appreciable and keep this post in your mind<br />
<br />
regards<!--content-->
 
Back
Top