<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div>Thanks Johan, that works nicely. It's a matter of replacing the script callback: with script add:&nbsp;</div><div><br></div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;"><span class="Apple-tab-span" style="white-space:pre">                        </span>html jQuery this&nbsp;</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">&nbsp; &nbsp; autocomplete</div><div style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space:pre">                                </span>autoFocus: true;&nbsp;</div><div style="background-color: transparent;"><span style="font-size: 10pt;">&nbsp; &nbsp;
 &nbsp; &nbsp;&nbsp;</span><span class="Apple-tab-span" style="white-space:pre">                                </span>search: [:string | self getNextBlockWithSearch: string]</div><div style="background-color: transparent;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="Apple-tab-span" style="white-space:pre">                                </span>labels: [:each | each displaySelectionRow]</div><div style="background-color: transparent;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="Apple-tab-span" style="white-space:pre">                                </span>callback: [:value :script |&nbsp;</div><div style="background-color: transparent;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="Apple-tab-span" style="background-color: transparent; font-size: 10pt; white-space: pre;">                                        </span><span style="background-color: transparent; font-size: 10pt;">script
 add: (self ...code that does the callback&nbsp;</span><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;">updateValue:</span><span style="background-color: transparent; font-size: 10pt;">&nbsp;behaviour and runs 'load html: [:renderer | '...)] &nbsp;</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color: transparent; font-size: 10pt;"><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">vs.</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
 Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent;"><span class="Apple-tab-span" style="white-space: pre;">                        </span>html jQuery this&nbsp;</div><div style="background-color: transparent;">&nbsp; &nbsp; autocomplete</div><div style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space: pre;">                                </span>autoFocus: true;&nbsp;</div><div style="background-color: transparent;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="Apple-tab-span" style="white-space: pre;">                                </span>search: [:string | self getNextBlockWithSearch: string]</div><div style="background-color: transparent;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="Apple-tab-span" style="white-space: pre;">                                </span>labels: [:each | each displaySelectionRow]</div><div style="background-color: transparent;"><span
 style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="Apple-tab-span" style="white-space: pre;">                                </span>callback: [:value :script |&nbsp;</div><div style="background-color: transparent;"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span class="Apple-tab-span" style="background-color: transparent; font-size: 10pt; white-space: pre;">                                        </span><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;">script callback: [self updateValue: value]</span><span style="background-color: transparent; font-size: 10pt;">] &nbsp; &lt;-- does the full page refresh</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color:
 transparent; font-size: 10pt;"><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color: transparent; font-size: 10pt;">Bob Nemec&nbsp;</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color: transparent; font-size: 10pt;">(Murtaza and I were working on the same problem)</span></div><div class="yahoo_quoted" style="display: block;"> <br> <br> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div
 dir="ltr"> <font size="2" face="Arial"> On Sunday, March 23, 2014 11:03:55 AM, Johan Brichau &lt;johan@inceptive.be&gt; wrote:<br> </font> </div>  <div class="y_msg_container"><div id="yiv5312336978"><div>If I recall correctly, the JQueryUI Autocomplete does not trigger a page-refreshing callback.<div>The full refresh is probably coming from the form submission if you embedded the text input inside a form.</div><div><br clear="none"></div><div>Suppress the form submission and add the script to be executed on selection to the :script argument of the callback block. It is identical to the script argument of a jQuery ajax #script: block</div><div><br clear="none"></div><div>Johan</div><div><br clear="none"></div><div><br clear="none"><div><div class="yiv5312336978yqt0482069165" id="yiv5312336978yqtfd37171"><div>On 18 Mar 2014, at 17:04, Murtaza Zaidi &lt;<a rel="nofollow" shape="rect" ymailto="mailto:mzaidi86@gmail.com" target="_blank"
 href="mailto:mzaidi86@gmail.com">mzaidi86@gmail.com</a>&gt; wrote:</div><br clear="none" class="yiv5312336978Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">It should just re-render the text input field with the new value as opposed to refreshing the whole screen and re-rendering everything in the page.</div><div class="yiv5312336978gmail_extra"><br clear="none"><br clear="none"><div class="yiv5312336978gmail_quote">
On Tue, Mar 18, 2014 at 11:33 AM, Paul DeBruicker <span dir="ltr">&lt;<a rel="nofollow" shape="rect" ymailto="mailto:pdebruic@gmail.com" target="_blank" href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>&gt;</span> wrote:<br clear="none"><blockquote class="yiv5312336978gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
What do you want to have happen? &nbsp; A person chooses an entry from the<br clear="none">
autocomplete suggestion and then ________ ?<br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
Murtaza Zaidi wrote<br clear="none">
<div><div class="yiv5312336978h5">&gt; Hi,<br clear="none">
&gt;<br clear="none">
&gt; I have an autocomplete implemented on a text input. It is defined in the<br clear="none">
&gt; following manner:<br clear="none">
&gt;<br clear="none">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; widget := html textInput.<br clear="none">
&gt; widget script: (<br clear="none">
&gt; html jQuery this autocomplete<br clear="none">
&gt; autoFocus: true;<br clear="none">
&gt; search: [:string | self getRows: string]<br clear="none">
&gt; labels: [:each | each formatSelectionRow]<br clear="none">
&gt; callback: [:value :script |<br clear="none">
&gt; script callback: [self updateValue: value].<br clear="none">
&gt; self renderOn: html]))<br clear="none">
&gt;<br clear="none">
&gt; It is functional with a full refresh of the screen after a value is<br clear="none">
&gt; selected from the rows that get returned from the search block. I'm trying<br clear="none">
&gt; to remove this full refresh to improve user experience. Any ideas on how<br clear="none">
&gt; to<br clear="none">
&gt; do this?<br clear="none">
&gt;<br clear="none">
&gt;<br clear="none">
&gt; Thanks,<br clear="none">
&gt; Murtaza<br clear="none">
&gt;<br clear="none">
</div></div>&gt; _______________________________________________<br clear="none">
&gt; seaside mailing list<br clear="none">
<br clear="none">
&gt; seaside@.squeakfoundation<br clear="none">
<br clear="none">
&gt; <a rel="nofollow" shape="rect" target="_blank" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
--<br clear="none">
View this message in context: <a rel="nofollow" shape="rect" target="_blank" href="http://forum.world.st/Removing-full-refresh-tp4749616p4749621.html">http://forum.world.st/Removing-full-refresh-tp4749616p4749621.html</a><br clear="none">
Sent from the Seaside General mailing list archive at <a rel="nofollow" shape="rect" target="_blank" href="http://nabble.com/">Nabble.com</a>.<br clear="none">
_______________________________________________<br clear="none">
seaside mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:seaside@lists.squeakfoundation.org" target="_blank" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br clear="none">
</blockquote></div><br clear="none"></div>
_______________________________________________<br clear="none">seaside mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:seaside@lists.squeakfoundation.org" target="_blank" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br clear="none">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br clear="none"></blockquote></div></div><div class="yiv5312336978yqt0482069165" id="yiv5312336978yqtfd24224"><br clear="none"></div></div></div></div><br><div class="yqt0482069165" id="yqtfd62992">_______________________________________________<br clear="none">seaside mailing list<br clear="none"><a shape="rect" ymailto="mailto:seaside@lists.squeakfoundation.org" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br clear="none"><a shape="rect" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside"
 target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br clear="none"></div><br><br></div>  </div> </div>  </div> </div></body></html>