[Seaside] Re: Open URL in new window
s at xss.de
Fri May 22 23:08:53 UTC 2009
On Fri, 22 May 2009 15:45:26 -0700
merlyn at stonehenge.com (Randal L. Schwartz) wrote:
> >>>>> "Paul" == Paul DeBruicker <pdebruic at gmail.com> writes:
> Paul> I hit send prematurely. The URL I generate has nothing to do
> Paul> with my seaside application. E.G. The user chooses between
> Paul> Google and Yahoo in a select tag element then hits submit. I
> Paul> then open a new window that displays www.google.com or
> Paul> www.yahoo.com and switches their focus to that.
> I think you're supposed to use CSS for that, but the non-CSS way is:
> html anchor newTarget url: '...'; with: 'anchor text'.
The OP was asking opening a new window after hitting a submit
*button* in a form, as far as I understood.
> The "newTarget" puts <a href target="_new" ...>...</a>, which all
> modern browsers respect as "open in new window".
... named "_new". If another anchor targets "_new", that
same window will be *reused*.
To really create a new window every time, use target="_blank"
More information about the seaside