Re: Navigate back from Popup-Window
Susanne Schneider <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi J.L.,
Jürgen Lorenz Simon schrieb:
> 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?
>
Maybe ;-)
You can give your main browser window a name by the following javascript:
<script type="text/javascript">
window.name="mySpecialName";
</script>
You can include that into the header of your main page. The window name
will stay the same across subsequent requests or pages until it is
changed. It is one (or the only?) place in the browser where you can
store information independ from changing pages.
In the wod of the popup window the following should do:
Hyperling3: WOHyperlink {
action = myCustomAction;
target = "mySpecialName";
}
Instead of "mySpecialName" you could use a String derived from a session
method that include the sessionid. Then the target has to use the same
method.
That is what we are doing. With this aproach you can handle
popups-main-windows from different sessions of the same application
independently and simultanously. That is at least helpful for testing :-)
> I tried that and it doesn't work. When using the following bindings:
>
> Hyperlink3: WOHyperlink {
> action = myCustomAction;
> target = "window.opener";
> }
>
I assume the "window." is unnecessary, just use "opener";
Regards,
Susanne
--
Susanne Schneider
Coordinator secuSuite Development
iAS interActive Systems GmbH
Dieffenbachstraße 33 c, D-10967 Berlin
fon +49(0)30 69 00 42 - 05
fax +49(0)30 69 00 42 - 10
mail [email protected]
web http://www.interActive-Systems.de
----------------------------------------------------
Geschäftsführer: Dr. Marko Reschke, Thomas Fritzsche
Sitz der Gesellschaft: Berlin
Amtsgericht Berlin Charlottenburg, HRB 106103B
----------------------------------------------------