469,133 Members | 1,426 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

model dialog box keeps refreshing its parent window.

hello, i've got a child window which will refresh the parent window after it closes
heres the catch, if i use window.open() it works fine, but when i use window.showModelessDialog, the child window keeps poping up..

any idea?
Nov 18 '05 #1
1 1856
ShowModalDialog will pass the control to the child window while the
parent window waits for the Child window to unload. After the child
window unloads the parent window will continue with the next line of
code.

So instead of asking the Child Window to refresh the parent window,
change the code to pass a value to the ReturnValue property to the
parent and use this to decide if you need to refresh or postback the
form.

retVal = window.showModalDialog("MyDialog.aspx?Page=" + strURL,
"frmName","width:300px; height:100px;");
if (retVal != null)
return (true);
else
return (false);

HTH

Trevor Benedict R
MCSD

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jamie Jackson | last post: by
2 posts views Thread by John | last post: by
3 posts views Thread by Earl Teigrob | last post: by
1 post views Thread by hashya | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.