• 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
Re: JSModalWindow close after an action in WOHyperlink?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JSModalWindow close after an action in WOHyperlink?


  • Subject: Re: JSModalWindow close after an action in WOHyperlink?
  • From: Johnny Miller <email@hidden>
  • Date: Mon, 18 Jul 2011 11:57:27 -1000

Have you tried using the onSuccess binding?

Johnny Miller
email@hidden
www.kahalawai.com

On Jul 18, 2011, at 11:50 AM, Mai Nguyen wrote:

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:
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: Mai Nguyen <email@hidden>
References: 
 >JSModalWindow close after an action in WOHyperlink? (From: Mai Nguyen <email@hidden>)

  • Prev by Date: JSModalWindow close after an action in WOHyperlink?
  • Next by Date: Re: JSModalWindow close after an action in WOHyperlink?
  • Previous by thread: JSModalWindow close after an action in WOHyperlink?
  • Next by thread: Re: JSModalWindow close after an action in WOHyperlink?
  • Index(es):
    • Date
    • Thread