Got it. Thanks again for your patience and help. I&#39;m starting to really get my head around the JQuery support now, great addition to an already superb web framework.<div><br><br><div class="gmail_quote">On Wed, Feb 11, 2009 at 4:07 PM, Lukas Renggli <span dir="ltr">&lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">#load only replaces HTML Dom nodes.<br>
<br>
#ajax and #script: allows you to just change the value of the form<br>
field by using #value:, which is in your case probably preferable<br>
because the callback of the form element is not recreated.<br>
<font color="#888888"><br>
Lukas<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Wed, Feb 11, 2009 at 9:58 PM, John Toohey &lt;<a href="mailto:johnptoohey@gmail.com">johnptoohey@gmail.com</a>&gt; wrote:<br>
&gt; Great screencast, thanks.<br>
&gt; Does #load set the value of the DOM element, and is it preferable to use the<br>
&gt; #script for updating a form?<br>
&gt;<br>
&gt; On Wed, Feb 11, 2009 at 3:21 PM, Lukas Renggli &lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Changed the code to this :-<br>
&gt;&gt; &gt; html span class: &#39;formdata&#39;; with: [html<br>
&gt;&gt; &gt; textInput<br>
&gt;&gt; &gt; id: #tournamentname;<br>
&gt;&gt; &gt; value: tournamentEvent tournamentName;<br>
&gt;&gt; &gt; callback: [:value | tournamentEvent tournamentName: value];<br>
&gt;&gt; &gt; onChange: ((html jQuery: #potsize) load html: [:h | h render: 999 ])].<br>
&gt;&gt; &gt; Now I&#39;m just trying to change the default value of #potsize to 999, and<br>
&gt;&gt; &gt; I<br>
&gt;&gt; &gt; can see the initial request being sent to the server, but nothing is<br>
&gt;&gt; &gt; updated<br>
&gt;&gt; &gt; on the client.<br>
&gt;&gt;<br>
&gt;&gt; I removed all the noise around it, and it works for me:<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;html span id: &#39;potsize&#39;.<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;html textInput<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;onChange: ((html jQuery: #potsize) load<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;html: [:h | h render: 999 ])<br>
&gt;&gt;<br>
&gt;&gt; &gt; I tried to load the Slime package from your site, but received a lot of<br>
&gt;&gt; &gt; errors from my Pharo image. I can run the Slime tests that are included<br>
&gt;&gt; &gt; with<br>
&gt;&gt; &gt; Seaside 2.9 successfully, but can&#39;t see how to run Slime on my own code.<br>
&gt;&gt;<br>
&gt;&gt; I show how to run any of the refactoring tools on a particular set of<br>
&gt;&gt; methods only in the screen-cast here:<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;<a href="http://www.lukas-renggli.ch/blog/ob-rb-3" target="_blank">http://www.lukas-renggli.ch/blog/ob-rb-3</a><br>
&gt;&gt;<br>
&gt;&gt; Lukas<br>
&gt;&gt;<br>
&gt;&gt; &gt; Any help is really appreciated.<br>
&gt;&gt; &gt; Thanks.<br>
&gt;&gt; &gt; On Tue, Feb 10, 2009 at 4:09 PM, Lukas Renggli &lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; - How do I use Slime with my Code? Using the latest Pharo image, and<br>
&gt;&gt; &gt;&gt; &gt; have<br>
&gt;&gt; &gt;&gt; &gt; found the Slime classes, but not sure how to use them.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; <a href="http://www.lukas-renggli.ch/blog/slime" target="_blank">http://www.lukas-renggli.ch/blog/slime</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; - Tried this :-<br>
&gt;&gt; &gt;&gt; &gt; html span class: &#39;formdata&#39;; with: [html<br>
&gt;&gt; &gt;&gt; &gt; textInput<br>
&gt;&gt; &gt;&gt; &gt; id: #tournamentname;<br>
&gt;&gt; &gt;&gt; &gt; value: tournamentEvent tournamentName;<br>
&gt;&gt; &gt;&gt; &gt; callback: [:value | tournamentEvent tournamentName: value];<br>
&gt;&gt; &gt;&gt; &gt; onChange: (html jQuery ajax serializeThis; html: [:r | r render:<br>
&gt;&gt; &gt;&gt; &gt; [self<br>
&gt;&gt; &gt;&gt; &gt; test:<br>
&gt;&gt; &gt;&gt; &gt; 1 on: &nbsp;r]] )].<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; You need to specify somewhere what element to change, right?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; - You can either do that by sending back a javascript that does the<br>
&gt;&gt; &gt;&gt; update of the particular element. In this case you would replace<br>
&gt;&gt; &gt;&gt; &quot;html: [ :r | .. ]&quot; with something like &quot;script: [ :s | s &lt;&lt; (s<br>
&gt;&gt; &gt;&gt; jQuery: &#39;.someid&#39;) html: DateAndTime now ]&quot;. This is very powerful,<br>
&gt;&gt; &gt;&gt; but also a bit complicated.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; - Or (and this is probably what you want) you can use the ajax-loader<br>
&gt;&gt; &gt;&gt; on the particular DOM node. So just replace &quot;html jQuery ajax&quot; with<br>
&gt;&gt; &gt;&gt; &quot;(html jQuery: &#39;.someid&#39;) load&quot;.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Lukas<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Lukas Renggli<br>
&gt;&gt; &gt;&gt; <a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a><br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; seaside mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt; &gt;&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;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; -JT<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; seaside mailing list<br>
&gt;&gt; &gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt; &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;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Lukas Renggli<br>
&gt;&gt; <a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; seaside mailing list<br>
&gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&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>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; -JT<br>
&gt;<br>
&gt;<br>
&gt;<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>
&gt;<br>
<br>
<br>
<br>
--<br>
Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a><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>-JT<br><br><br>
</div>