I've just tried to use getRequestCycle().getServiceParameters() to retrieve
the parameter from the opener; stored like so:

<span jwcid="@PageLink" target="_blank" page="location_picker"
parameters='GB'>Change</span>

The getServiceParameters method returns null - why is that? If I could get
this working the whole solution would be a lot more elegant than using
Javascript that may not work on some browsers - or am I going about this the
wrong way entirely?


Steve

-----Original Message-----
From: Will Scheidegger [mailto:[EMAIL PROTECTED]
Sent: 13 July 2005 14:08
To: Tapestry users
Subject: Re: Pass parameter to a popup window's method


This is more of a JavaScript question. Yes, it's possible, but IIRC it 
does not work in all browsers.

In a pop-up window there's a reference to the window which opened the 
pop-up under "window.opener". You can use this reference to set a 
reference to the pop-up in the opener window. Once you've got this 
setup, you can send the pop-up window to an arbitrary URL from within 
the opener window.

Good luck.

-Will

On 13.07.2005, at 15:02, [EMAIL PROTECTED] wrote:

> Hi all,
>
> I was wondering if there was a way to send a parameter to a method in
> another page? To make matters a little more complicated, I need the
> parameter for a method that is called by a Foreach component.
>
>
> Thanks in advance,
>
> Steve Ball
>
>
> **********************************************************************
> This email and any attachment(s) may contain confidential
> and/or proprietary information and is for the intended
> recipient only.  If an addressing or transmission error has
> misdirected this email, please notify the sender by replying
> accordingly.  If you are not the intended recipient you
> should not copy, distribute or in any way make use of the
> information contained in this email and any attachment(s).
> **********************************************************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to