This is a discussion on "How can I open the new window after submit() finish" within the JavaScript Forum section. This forum, and the thread "How can I open the new window after submit() finish are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
How can I open the new window after submit() finish
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
How can I open the new window after submit() finish
There is a 'save' button, and hope after user clicking it, the page save all the form's property value, then rediect to another page or open a popup window.
But, sometimes, b'cas the action have a little bit slow, so before action finished, the new window was opened and form's property are lost. How can I resovle it. How can I open the new window after submit() finish? My script is: function saveData(){ document.forms[0].mode.value = 'Save'; document.forms[0].submit(); } function saveBtnOnclick() { if (confirm("Please save the data first.")){ saveData(); return true; }else{ return false; } var newwin = null; var newwinURL = "<%=appContext%>/do/...."; newwin = window.open(newwinURL, "addNewContact", "width=800,height=500,scrollbars=yes,toolbar=no,bo rder=0,status=0"); newwin.focus(); } |
|
|
![]() |
| Tags |
| javascript |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Submit options and open results in a new window | xshane | JavaScript Forum | 2 | May 21st, 2008 10:23 |
| Open another new window from javascript window | thehermitage | JavaScript Forum | 10 | Jan 27th, 2008 19:42 |
| Change open in new window to open in same window | nsr500rossi | JavaScript Forum | 2 | Jan 18th, 2008 14:13 |
| [SOLVED] open new window from main window | AdRock | Other Programming Languages | 1 | Nov 1st, 2007 02:45 |
| Open a new window | pokerskatershark | JavaScript Forum | 4 | Mar 17th, 2006 19:25 |