JSModalWindow close after an action in WOHyperlink?
JSModalWindow close after an action in WOHyperlink?
- Subject: JSModalWindow close after an action in WOHyperlink?
- From: Mai Nguyen <email@hidden>
- Date: Mon, 18 Jul 2011 14:50:29 -0700
Dear List,
I have searched the archives for a seemingly simple issue: I have a JSModalWindow with a WOHyperlink, the link has an action to perform then it should close the window. I have tried various things like returning the previous page (saved from the calling page) in the action but it would create a new calling page, not closing the existing JSModalWindow.
I found this suggestion from the archives, but it does not work for me. The window still does not close, if I return a WO Component with this HTML. Besides, is this the only solution?
>
> Another way to do it: Have your link be a simple WOHyperlink or
> dynamic submit button, bound to an action method. But that action
> method returns a WOComponent (or WOResponse) which is simply HTML that
> says:
> <SCRIPT LANGUAGE=_javascript_>opener.refresh(); window.close();</SCRIPT>
Thanks for any suggestions,
-mai |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden