[Seaside] Re: Open URL in new window
pdebruic at gmail.com
Sat May 23 19:07:00 UTC 2009
I think I don't understand what to do with Randal's suggestion. Do I
put in the callback of the form submit button like this:
callback:[html anchor newTarget url: (self
createUrlFromFormData); with: ''.];
with: 'Open New Window'.
I want to create the same effect as a popup window, where the URL that
pops up is created from data in a form and the popup window appears
when the submitButton is clicked.
On Fri, May 22, 2009 at 7:08 PM, Stefan Schmiedl <s at xss.de> wrote:
> 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"
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside