target _blank *and* refresh original page

Ondřej Čada <[email protected]> Thu, 1 Sep 2011 03:54:59 +0200
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hello there,

seems a rather usual task, but I can't find a decent solution nor google =
out one.

I've got a WOHyperlink which returns something (through WORedirect, =
though I don't think that's important) in a new window -- i.e., I've set =
target=3D_blank in the WOHyperlink bindings.

The trick is that I would need to refresh the original page too: my code =
looks more or less this way

String theResult; // bound to a WOString in the page
WOActionResults showFooInExtraPage() { // bound to a target=3D_blank =
WOHyperlink
  WORedirect wor=3Dnew WORedirect(context());
  wor.setUrl( ... computed somehow, irrelevant, works all right ...);
  theResult=3D"Thanks for getting "+wor.url();
  return wor;
}

How to make the original page to reflect the new theResult value =
automatically without waiting till the user does something to refresh it =
manually?

About the best I can think of is to refresh the page all the time, but =
that would be *quite* ugly and inconvenient -- the user might not use =
the WOHyperlink at all, and it would seem highly weird to have the page =
refresh all the time without apparent reason :/

Thanks a lot,
---
Ondra =C4=8Cada
OCSoftware:     [email protected]               http://www.ocs.cz
private         [email protected]             http://www.ocs.cz/oc