tvbas
02-07-2004, 09:38 AM
I want to transfer to other page ,because i have some db operate to do ,but showModalDialog window open a new,how should i do?:confused:
|
||||
How to transfer to other page in a showModalDialog windowtvbas 02-07-2004, 09:38 AM I want to transfer to other page ,because i have some db operate to do ,but showModalDialog window open a new,how should i do?:confused: swmr 02-07-2004, 04:03 PM Here's one way (if I understand what you're asking): Caller: ------------------------------------ <html> <head> <title>Caller Document</title> <script type="text/JScript"> function showDialog(dialogLocation){ showModelessDialog(dialogLocation, window); } </script> </head> <body> <button onclick="showDialog('dialog-1.html')">ShowDialog 1</button> </body> </html> ------------------------------------ ==================================== callee #1: (save as "dialog-1.html") ------------------------------------ <html> <head> <title>dialog-1</title> <script type="text/JScript"> function nextDialog(dialogLocation){ dialogArguments.showDialog(dialogLocation); window.close(); } </script> </head> <body> <button onclick="nextDialog('dialog-2.html')">ShowDialog 2</button> </body> </html> ------------------------------------ ==================================== callee #2: (save as "dialog-2.html") ------------------------------------ <html> <head> <title>dialog-2</title> </head> <body> This is dialog-2. </body> </html> ------------------------------------ tvbas 02-08-2004, 05:47 AM it open two same size windows,not one.:confused: swmr 02-08-2004, 06:02 AM The first dialog should close itself... is that not happening? tvbas 02-08-2004, 06:36 AM it close two windows at the same time,if you drag mouse ,you will find two windows . swmr 02-08-2004, 06:56 AM Well, it worked for me anyway. So, it doesn't seem that htmlDialogs were meant to be navigable -- something to do with security, perhaps? You might try simulating modality with a normal window; I think there's an example in the post-a-javascript forum... glenngv 02-09-2004, 03:13 AM That's the behavior of modal dialogs in IE. Links and form submissions are opened in a new window. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum