• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
JSModalWindow close after an action in WOHyperlink?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?

http://lists.apple.com/archives/webobjects-dev/2004/Mar/msg00798.html
>
> 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

  • Follow-Ups:
    • Re: JSModalWindow close after an action in WOHyperlink?
      • From: Johnny Miller <email@hidden>
  • Prev by Date: Re: Occasional hang loading a particular large page
  • Next by Date: Re: JSModalWindow close after an action in WOHyperlink?
  • Previous by thread: Re: [MEETING] WO-NoVA TOMORROW NIGHT 7/19/2011
  • Next by thread: Re: JSModalWindow close after an action in WOHyperlink?
  • Index(es):
    • Date
    • Thread