A
Andy
Hi,
Ok, I have a page with an updatepanel, which can open a popup. The
popup can change an object's values which is stored in the session,
this object is displayed on the main window. I'd like to have the
updatepanel update when the popup is closed.
I can't do the update call after window.open, because that returns
immediately (before the user could possibly edit the settings in the
popup). I tired having a javascript page level variable to store the
popup and set its onunloaded to a function defined in the main
window. That never seems to get called.
Any ideas? The popup is used on a few different pages, so I can't do
anything that would tie it to a particular parent page.
Here's what I have in the parent page:
function openPopup( popupOpener ) {
if ( popupWindow == null ) {
popupWindow = popupOpener();
popupWindow.onunload = setDirty;
}
else {
alert( 'Please close the existing popup editor and try again');
}
}
popupOpener is a function which simply does { return
window.open( ... ); }
setDirty should initiate the updatepanel refresh, but its not being
called.
Thanks
Andy
Ok, I have a page with an updatepanel, which can open a popup. The
popup can change an object's values which is stored in the session,
this object is displayed on the main window. I'd like to have the
updatepanel update when the popup is closed.
I can't do the update call after window.open, because that returns
immediately (before the user could possibly edit the settings in the
popup). I tired having a javascript page level variable to store the
popup and set its onunloaded to a function defined in the main
window. That never seems to get called.
Any ideas? The popup is used on a few different pages, so I can't do
anything that would tie it to a particular parent page.
Here's what I have in the parent page:
function openPopup( popupOpener ) {
if ( popupWindow == null ) {
popupWindow = popupOpener();
popupWindow.onunload = setDirty;
}
else {
alert( 'Please close the existing popup editor and try again');
}
}
popupOpener is a function which simply does { return
window.open( ... ); }
setDirty should initiate the updatepanel refresh, but its not being
called.
Thanks
Andy