|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
submit problem
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,t oolbars=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 |
|
#2
|
||||
|
||||
|
RE: submit problem
I suggest you forget save_index.html and make test.html show the alert box and after that post the form to save.html
|
|
#3
|
|||
|
|||
|
RE: submit problem
if i dont forget save_index.html its not possible to redirect
actually i tried this one,i think its not a nice way to set time in test.html as i used redirTime = "6000"; redirURL = "save.html"; function redirTimer(){ self.setTimeout("self.location.href = redirURL;",redirTime); } the problem as 6 secs over it will redirect to this page no matter whether u clcik on SAVE or not whats ur advice for this one |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > submit problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|