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
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