• 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: pageWithName in a new window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pageWithName in a new window


  • Subject: Re: pageWithName in a new window
  • From: Doug Andrews <email@hidden>
  • Date: Mon, 10 Jan 2005 16:29:35 -0500

You could do this without javascript if the boolean has already been set when the page is generated.
You could have a WOConditional linked to your boolean. One condition would have the link to pageA, the other to pageB. The pageB link could then have the 'target' attribute set to something like '_blank' which will cause it to come up in another window.


If you can't use the target attribute, i think your only other route is to use javascript, which isn't so bad.

- Doug Andrews
- Baseview Products
- Ann Arbor, MI


On Jan 10, 2005, at 3:40 PM, Sébastien Gruhier wrote:

Hi,

I have already ask this kind of question but in this case, it's a little bit different.
In a action, I can return two pages depending of a boolean, something like this:


if (boolean == true)
	return pageWithName("pageA");
else
	return pageWithName("pageB");


This is fine but I would like to open pageA in the same window and pageB in a another window. Is it possible?
Thank you
Sebastien


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden



_______________________________________________ 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
References: 
 >pageWithName in a new window (From: Sébastien Gruhier <email@hidden>)

  • Prev by Date: pageWithName in a new window
  • Next by Date: [SOLVED] Re: Are Applets still valid solutions ...
  • Previous by thread: pageWithName in a new window
  • Next by thread: lookup of unknown key: '_keys'. in w2k
  • Index(es):
    • Date
    • Thread