Hi, there
I have a page 30 and have opened another page 40 in an iframe using this code:

Now On page 40, I submit and save my data and close the iframe window calling parent.apex.jQuery("#editcompany").dialog("close");
Now I want to do some actions on page 30 upon closing the iframe.
If I use the X icon to close the iframe without saving my data, fine but my actions get fired on page 30 because
both are using the same close setting in the dialogOptions.
To differentiate between the closing using SAVE button from the closing using X icon,I've defined an item P30_CLOSE_INDICATOR to set to 1 when saving but this does not work
because though I have the item set to 1 in the session it's still null at the time of checking in the Js code see yellow highlighted.
The other idea was to catch the click on the X icon and simply close the iframe but I don't succeed in overwriting the normal close action
any Idea ??
Thanks