|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Refresh parent window from modal child window
Hello all,
The title says it all. The modal child window doesn't recognize the parent as its parent. I've tried various ways to pass in a handle to the parent window using dialogArguments but have been unsuccessful. Any ideas? Keep in mind I know how to refresh a parent window from a normal child window (window.opener.location.reload()). Doing it from a MODAL child window is a different problem. Little Neddy Knickers |
|
#2
|
|||
|
|||
|
You can pass the arguments to the modal window as follows
window.showModalDialog('test.htm',window); if you need to access this in the child window then you can declare a variable var xWin=window.dialogArguments; basically your normal javascript parent will be the variable xWin. You can use xWin.location.replace(xWin.location); to refresh the parent window. but remember to close the child window before doing that. If you use modeless dialog, the child window will automaticlly be closed. Hope this helps. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Refresh parent window from modal child window |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|