Re: Navigate back from Popup-Window

Jürgen Lorenz Simon <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hi Susanne,

>>> In either case, sometimes it is better to give the target a  
>>> custom name and use that as the target (build a name with some  
>>> session value).

I must admit I don't exactly understand what you mean by that. How  
would I give a window
a custom name? Something in the DOM model I'm not aware of?

>> I found an example which fits a little here: http:// 
>> en.wikibooks.org/wiki/Programming:WebObjects/Web_Applications/ 
>> Development/Examples/Open_Link_in_New_Window
>> Hyperlink3: WOHyperlink {
>>        action = myCustomAction;
>>        onclick = "return openInNewWindow(this)";
>>        target = "_new";
>> }
> I think the problem comes from the "onclick" handler wich call a  
> custom javascript function to open a separate window.
> If you just remove that and set your target that should be sufficient

I tried that and it doesn't work. When using the following bindings:

Hyperlink3: WOHyperlink {
        action = myCustomAction;
        target = "window.opener";
}

it does still open it in a new window. Depending on how FF's settings  
are, it opens
a tab in the popup window or a new window alltogether.

> This example seems to be for opening a separate window from the  
> main browser window, not from a popup.
I know, I just used the example to depart from.

Thanks for the helpful suggestions so far.

J.L.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.