<br><br><div class="gmail_quote">On Sun, May 24, 2009 at 10:18 AM, Paul DeBruicker <span dir="ltr"><<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks Phillipe. It is not my intention to distract or surprise them.<br>
I think I'm actually trying to create a convenience feature. One of<br>
the things I'm trying to accomplish is a form where you put in a<br>
ticker for a stock or mutual fund, and once you click submit it opens<br>
the research reports on websites such as <a href="http://finance.google.com" target="_blank">finance.google.com</a> or<br>
<a href="http://finance.yahoo.com" target="_blank">finance.yahoo.com</a> or whichever and however many sites the user chooses<br>
in a multiselect on my form. I know I could wrap those companies<br>
content up in an iframe or lightbox or whatever but right now I'd<br>
prefer to just open a new browser window for each report requested and<br>
be done with it.</blockquote><div><br>I just ran across this code which works for me<br><br>html form<br> attributeAt: #target put: someStringValue; "Yahoo Finance or _blank"<br> action: aUrlValue;<br> post;<br>
with: [<br> ...other form rendering ]<br><br>You may have to get imaginative to get aUrlValue to have the user entered data as a parameter<br><br>John. <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
I've now looked into the guts of the popupAnchor and see that it<br>
catches the onClick event and calls the JS window.open() etc. I don't<br>
know enough javascript yet to know whether and how I can feed the<br>
dynamically generated URLs to that function. Thanks for the<br>
information about how Seaside does it.<br>
<font color="#888888"><br>
<br>
Paul<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
On Sun, May 24, 2009 at 9:57 AM, Philippe Marschall<br>
<<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>> wrote:<br>
> 2009/5/23 Paul DeBruicker <<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>>:<br>
>> I think I don't understand what to do with Randal's suggestion. Do I<br>
>> put in the callback of the form submit button like this:<br>
>><br>
>> html submitButton<br>
>> callback:[html anchor newTarget url: (self<br>
>> createUrlFromFormData); with: ''.];<br>
>> with: 'Open New Window'.<br>
>><br>
>><br>
>> I want to create the same effect as a popup window, where the URL that<br>
>> pops up is created from data in a form and the popup window appears<br>
>> when the submitButton is clicked.<br>
><br>
> That's a problem. Seaside supports opening popup windows in two ways,<br>
> either with the target attribute<br>
><br>
> html anchor<br>
> newTarget;<br>
> callback: [];<br>
> with: ...<br>
><br>
> or with JavaScript, which gives you more control<br>
><br>
> html popupAnchor<br>
> callback: [];<br>
> with: ...<br>
><br>
> See WAPopupTest for an example<br>
><br>
> both of them work only on anchors, basically because that how HTML and<br>
> HTTP work. Doing it with a button in a form and the form data would be<br>
> possible but requires some JavaScript. In general Seaside applications<br>
> have very little use for popups. You can easily put the content of the<br>
> popup window in a component somewhere on the page without distracting<br>
> or surprising the user.<br>
><br>
> Cheers<br>
> Philippe<br>
> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://jmck.seasidehosting.st">http://jmck.seasidehosting.st</a><br>