Forum Moderators: open

Message Too Old, No Replies

Submit after window.open

         

giuliano

10:47 am on May 19, 2004 (gmt 0)

10+ Year Member



I have problem with this part of code when running on IE on Mac; when the TD tag is clicked the new window is opened but the form is NOT submitted.
Everything works fine on IE on Windows.
The form is submitted also on Mac only if I delete the whole window.open command (from myhandle...)

Any ideas?

-----------------------------------------------
<table><tr>
<td onClick="myhandle=window.open('../Wait.htm','winWait','resizable=no,left=' + ((window.screen.width / 2) - (550 / 2)) + ',top=' + ((window.screen.height / 2) - (200 / 2)) + ',width=550,height=200'); form1.TxtZona.value=form1.Zona(form1.Zona.selectedIndex).innerText;form1.submit();">Lista</td>
</tr>
</table>
-----------------------------------------------

BlobFisk

11:44 am on May 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, giuliano!

Have you tried putting the submit() call before the window.open call?

giuliano

11:49 am on May 19, 2004 (gmt 0)

10+ Year Member



The form is submitted in the on the same window that contains the form. If I put the submit() before, the window.open is note executed, isn't it?