<br><br><div class="gmail_quote">On Sun, May 24, 2009 at 10:18 AM, Paul DeBruicker <span dir="ltr">&lt;<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>&gt;</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&#39;m actually trying to create a convenience feature.  One of<br>
the things I&#39;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&#39;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; &quot;Yahoo Finance or _blank&quot;<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&#39;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&#39;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>
&lt;<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>&gt; wrote:<br>
&gt; 2009/5/23 Paul DeBruicker &lt;<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>&gt;:<br>
&gt;&gt; I think I don&#39;t understand what to do with Randal&#39;s suggestion.  Do I<br>
&gt;&gt; put in the callback of the form submit button like this:<br>
&gt;&gt;<br>
&gt;&gt; html submitButton<br>
&gt;&gt;      callback:[html anchor newTarget url: (self<br>
&gt;&gt; createUrlFromFormData); with: &#39;&#39;.];<br>
&gt;&gt;      with: &#39;Open New Window&#39;.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I want to create the same effect as a popup window, where the URL that<br>
&gt;&gt; pops up is created from data in a form and the popup window appears<br>
&gt;&gt; when the submitButton is clicked.<br>
&gt;<br>
&gt; That&#39;s a problem. Seaside supports opening popup windows in two ways,<br>
&gt; either with the target attribute<br>
&gt;<br>
&gt; html anchor<br>
&gt;    newTarget;<br>
&gt;    callback: [];<br>
&gt;    with: ...<br>
&gt;<br>
&gt; or with JavaScript, which gives you more control<br>
&gt;<br>
&gt; html popupAnchor<br>
&gt;    callback: [];<br>
&gt;    with: ...<br>
&gt;<br>
&gt; See WAPopupTest for an example<br>
&gt;<br>
&gt; both of them work only on anchors, basically because that how HTML and<br>
&gt; HTTP work. Doing it with a button in a form and the form data would be<br>
&gt; possible but requires some JavaScript. In general Seaside applications<br>
&gt; have very little use for popups. You can easily put the content of the<br>
&gt; popup window in a component somewhere on the page without distracting<br>
&gt; or surprising the user.<br>
&gt;<br>
&gt; Cheers<br>
&gt; Philippe<br>
&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<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>