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


zuzupus
07-10-2003, 06:33 AM
hi,

i created 3 forms namely
parent form is test.html second one is save_index.html and third one is save.html

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

when i use window.location.href="save.html" in onclick
<INPUT type="button" value="OK" onClick="MM_popupMsg('Are you sure to save.');window.location.href='save.html' ">
then save.html is submitting on save_index.html ,i want this page to be submit on test.html(parent form)

3 forms
***********************************************
//test.html(main window)

<html>
<script>
function FSave() {
mywindow =
window.open("save_index.html", "SENDENr", "menubar=no,left=450,top=450,width=200,height=100,toolbars=no,scrollbars=no");
}
</script>

<A href="javascript:FSave();" target="_top"><B>SAVE</B></A>
</html>
**************************************************
//save_index.html
<html>
<script>
function MM_popupMsg(msg) { //v1.0
alert(msg);
redirectFunction();
self.close();
}
function redirectFunction(){

}
</script>
<INPUT type="button" value="OK" onClick="MM_popupMsg('Are you sure to save.');">

</html>
*************************************************
//save.html

<html>
<INPUT type="submit" name="Button" value="ok">
</html>
***********************************************

thanks

zachzach
09-15-2003, 03:26 PM
<script>
function MM_popupMsg(msg) { //v1.0
alert(msg);
redirectFunction();
self.close();
}
function redirectFunction() {
testpage.location="whatever.htm"
}
</script>








//test.html(main window)
<script>
function FSave() {
testpage = window.self
mywindow =
window.open("save_index.html", "SENDENr", " menubar=no,left=450,top=450,width=200,height=100,t
oolbars=no,scrollbars=no");
}
</script>




chao,
zach

DaveSW
09-16-2003, 02:49 AM
If all your pages are plain .html then how is it going to save anything?

Besides which, all your script tags should have

<script type="text/javascript"><!--




--></style>

in them.

zuzupus
09-16-2003, 04:35 AM
sorry guys its too late i already finished anyway its really appreciable and keep this post in your mind

regards