<div dir="ltr">Hi Mariano,<div><br></div><div>thank you for the compliment! :-)<br><div><br></div><div>An autocomplete as in <a href="http://ivaynberg.github.io/select2/" rel="nofollow" link="external" target="_blank" style="font-size:13px;font-family:arial,sans-serif">http://ivaynberg.github.io/select2/</a><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">  would be very useful for me too, especially at the page &quot;Days&quot;, where the user selects countries and cities. </span></div>

<div><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">This select2 seems to be very powerful. Please let me know if you find an integration into Seaside.</span></div>

<div><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">Sabine</span></div><div><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif"><br>

</span></div><div><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif"><br></span></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Oct 5, 2013 at 2:39 PM, Mariano Martinez Peck [via Smalltalk] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=4712653&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br>

<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        <div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Sat, Oct 5, 2013 at 8:27 AM, Sabine Knöfel <span dir="ltr">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4712642&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br>


<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div dir="ltr"><div>Hi Mariano,<br><br> I have a working dropdown list with jQuery autocomplete in my seaside application. <br>
<br>(Live: <a href="http://www.spesenfuchs.de" rel="nofollow" link="external" target="_blank">www.spesenfuchs.de</a> -&gt; &quot;Ohne Login benutzen&quot;, switch to english, then page &quot;Receipts&quot;)<br>


<br></div></div></blockquote><div><br></div></div><div class="im"><div>Hi Sabine,</div><div><br></div><div>First, let me thank you for the amount of time you took to answer!</div><div>Second, your website looks sooooo cool, really, very nice and interesting idea. Congrats!</div>


<div><br></div><div>The field you are talking about is the currency right? While this is a big step forward I wondered the following.</div><div>In the currency example, the dropdown list does not appear until you type at least one word, right?</div>


<div>I would love a combination of a typical drop down list in which the user can pick scrolling from a list to see the options, while also start typing and filtering. </div><div>See the basic example from here: <a href="http://ivaynberg.github.io/select2/" rel="nofollow" link="external" target="_blank">http://ivaynberg.github.io/select2/</a> </div>


<div><br></div></div><div class="im"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div dir="ltr"><div>I created a fileout with a reduced version of this. This is only demo, I removed all css stuf etc. <br>


<br>To see it:<br>1) take new image<br>2) install seaside from configurations browser<br>3) install jQuery widget box<br>

Gofer new<br>    url: &#39;<a href="http://smalltalkhub.com/mc/Seaside/JQueryWidgetBox/main" rel="nofollow" link="external" target="_blank">http://smalltalkhub.com/mc/Seaside/JQueryWidgetBox/main</a>&#39;;<br>
    package: &#39;ConfigurationOfJQueryWidgetBox&#39;;<br>
    load.<br>
(Smalltalk at: #ConfigurationOfJQueryWidgetBox) project stableVersion load<br>4) file in the code below<br>5) do it: RKADemoView initialize<br>6) do it: (ZnZincServerAdaptor port: 8085) start.<br><br>5) in Browser<br><a href="http://localhost:8085/RKADemo" rel="nofollow" link="external" target="_blank">http://localhost:8085/RKADemo</a><br>




<br>The inspect shows that the currency has been set after selecting it.<br>I hope this is what your have been looking for.<br><br></div></div></blockquote><div><br></div></div><div class="im"><div>Thanks!  Having a autocomplete working even if it is not the best I would need, is way better than my current state and very appreciated!!</div>


<div>I will test it during the weekend or on Monday (have to leave now).</div><div><br></div><div>Thank you very much!</div><div><br></div><div><br></div><div> </div></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote">


<div dir="ltr"><div>Sabine<br><br></div><div><div class="h5">FILEOUT:<br><div><br>&#39;From Pharo2.0 of 7 March 2013 [Latest update: #20618] on 5 October 2013 at 1:18:06 pm&#39;!<br>

WAComponent subclass: #RKADemoView<br>    instanceVariableNames: &#39;currency&#39;<br>    classVariableNames: &#39;&#39;<br>    poolDictionaries: &#39;&#39;<br>    category: &#39;RKA24-View&#39;!<br><br>!RKADemoView methodsFor: &#39;updateRoot&#39; stamp: &#39;sabineknoefel 10/5/2013 12:37&#39;!<br>




updateRoot: aHtmlRoot<br>    super updateRoot: aHtmlRoot.<br>    aHtmlRoot javascript url: &#39;<a href="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" rel="nofollow" link="external" target="_blank">https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js</a>&#39;.<br>




    aHtmlRoot javascript url: &#39;<a href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" rel="nofollow" link="external" target="_blank">http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js</a>&#39;.  <br>


    aHtmlRoot javascript url: &#39;<a href="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js" rel="nofollow" link="external" target="_blank">https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js</a>&#39;.  ! !<br>




<br><br>!RKADemoView methodsFor: &#39;accessing&#39; stamp: &#39;sabineknoefel 10/5/2013 12:07&#39;!<br>currency<br>    ^ currency! !<br><br>!RKADemoView methodsFor: &#39;accessing&#39; stamp: &#39;sabineknoefel 10/5/2013 13:17&#39;!<br>




currency: aString<br>    currency := aString! !<br><br><br>!RKADemoView methodsFor: &#39;ids&#39; stamp: &#39;sabineknoefel 10/5/2013 12:31&#39;!<br>currencyFormID<br>    ^ &#39;currencyFormID&#39;! !<br><br><br>!RKADemoView methodsFor: &#39;render-blocks&#39; stamp: &#39;sabineknoefel 10/5/2013 13:17&#39;!<br>




currencyNamesFor: aString<br>     ^ {&#39;Euro&#39;.<br>    &#39;Dinar&#39;.<br>    &#39;Yen&#39;.<br>    &#39;Schilling&#39;.<br>    &#39;Som&#39;.<br>    &#39;Riel&#39;.<br>    &#39;Franc&#39;.<br>    &#39;Won&#39;.<br>




    &#39;Tenge&#39;.<br>    &#39;Kip&#39;.<br>    &#39;Pfund&#39;.<br>    &#39;Rupie&#39;} select: [ :each | (&#39;*&#39;,aString,&#39;*&#39;) match: each ]  <br>    <br> ! !<br><br>!RKADemoView methodsFor: &#39;render-blocks&#39; stamp: &#39;sabineknoefel 10/5/2013 13:12&#39;!<br>




renderBlockCurrency: html<br>    ^ [ :fid :mid | <br>    | theInputCurrency theInputExchanteRate |<br>    theInputCurrency := html textInput<br>        id: mid;<br>        size: 25;<br>        value: self currency;<br>        script: (html jQuery this autocomplete sourceCallback: [ :term | self   currencyNamesFor: term ]);<br>




        callback: [ :value | <br>                    self currency: value.<br>                    self currency inspect ];<br>         onBlur:<br>                (html prototype evaluator <br>                        triggerForm: (self currencyFormID);<br>




                        callback: [ :script |  ];<br>                        return: false)  ]  ! !<br><br><br>!RKADemoView methodsFor: &#39;rerender&#39; stamp: &#39;sabineknoefel 10/5/2013 12:33&#39;!<br>reRenderCurrencyOn: html<br>




    self reRenderControl: (self renderBlockCurrency: html) formID: self currencyFormID on: html! !<br><br><br>!RKADemoView methodsFor: &#39;rendering&#39; stamp: &#39;sabineknoefel 10/5/2013 12:33&#39;!<br>renderContentOn: html<br>




    self renderCurrencyOn:   html! !<br><br>!RKADemoView methodsFor: &#39;rendering&#39; stamp: &#39;sabineknoefel 10/5/2013 12:20&#39;!<br>renderControl: aBlock formID: aFormID on: html<br>    html form<br>        id: aFormID;<br>




        with: [ aBlock value: aFormID value: aFormID , &#39;id&#39;]! !<br><br>!RKADemoView methodsFor: &#39;rendering&#39; stamp: &#39;sabineknoefel 10/5/2013 12:32&#39;!<br>renderCurrencyOn: html<br>    self<br>        renderControl: (self renderBlockCurrency: html)<br>




        formID: self currencyFormID<br>        on: html! !<br><br><br>!RKADemoView methodsFor: &#39;updateOn&#39; stamp: &#39;sabineknoefel 10/5/2013 12:33&#39;!<br>updateCurrencyOn: html<br>    html prototype element<br>




        id: self currencyFormID;<br>        update: [ :renderer | self reRenderCurrencyOn: html renderer ]! !<br><br>&quot;-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &quot;!<br><br>RKADemoView class<br>    instanceVariableNames: &#39;&#39;!<br>




<br>!RKADemoView class methodsFor: &#39;initialize&#39; stamp: &#39;sabineknoefel 10/5/2013 12:36&#39;!<br>canBeRoot<br>    ^ true! !<br><br>!RKADemoView class methodsFor: &#39;initialize&#39; stamp: &#39;sabineknoefel 10/5/2013 13:11&#39;!<br>




initialize<br>    &quot;RKADemoView initialize.&quot;<br><br>    WAAdmin register: self asApplicationAt: &#39;RKADemo&#39;.<br>    JQuery functionName: &#39;jQuery&#39;.<br>    ! !<br><br><br>RKADemoView initialize!<br><br>




</div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5"><div>On Fri, Oct 4, 2013 at 5:44 PM, Paul DeBruicker [via Smalltalk] <span dir="ltr">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4712640&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br>




</div></div></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div><div class="h5"><div><div>

        The JQDeployment* and JQGoogle* libraries are the same file, one is served from the image and the other is served from Google&#39;s CDN.  Choose either one and go with that.  
<br><br>Also the JQuery libraries should come first in the list as I assume they are served in the order displayed and the JQuery dependent stuff will fail if its not present when they are loaded. 
<br><br>Check your browser&#39;s development tools for javascript errors.  
<br><br>In Chrome I think you hit F12 to open the dev tools
<br><br><br><br></div></div><div><div>On Oct 4, 2013, at 8:07 AM, Mariano Martinez Peck &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4712549&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt; wrote:
<br></div></div><div><div><div><div><div><div class='shrinkable-quote'><br>&gt; Thanks Johan. I am trying the very same example of JQAutocompleteFunctionalTest doing a simple:
<br>&gt; 
<br>&gt; self call: JQAutocompleteFunctionalTest new.
<br>&gt; 
<br>&gt; in my app but it does not seem to work...nothing is displayed. I put a halt in sourceCallback:  but never halts.
<br>&gt; It is the first time I install JQuery in this app so I may have done something wrong. 
<br>&gt; The file libraries I added are the ones you can see in the screenshot. Is there anything else I should do?
<br>&gt; 
<br>&gt; Thanks!
<br>&gt; 
<br>&gt; 
<br>&gt; 
</div></div></div><div><div>&gt; On Fri, Oct 4, 2013 at 11:14 AM, Johan Brichau &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4712549&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt; wrote:
<br>&gt; At a certain point in time, this autocompleter got added to jQuery itself.
<br>&gt; 
<br>&gt; Therefore, the jQuery autocomplete comes with the jQueryUI package of Seaside itself.
<br>&gt; Look for JQAutocomplete if you loaded jQueryUI with Seaside
<br>&gt; 
</div></div></div><div><div>&gt; On 04 Oct 2013, at 16:00, Mariano Martinez Peck &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4712549&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt; wrote:
<br>&gt; 
<br>&gt; &gt; Hi guys,
<br>&gt; &gt;
<br>&gt; &gt; I am searching for a dropdown list with autocomplete, ideally, already integrated with seaside. I am experimenting with Twitter Bootstrap for some part of the application so I saw there are a few projects like &quot;Select2&quot;, &quot;typeahead&quot;, &quot;Bootstrap Combobox&quot;, etc...they normall end up using jquery.js. But none of them is already integrated in Seaside...
<br>&gt; &gt;
<br>&gt; &gt; I saw JQueryWidgetBox, but in <a href="http://smalltalkhub.com/#!/~Seaside/JQueryWidgetBox" rel="nofollow" link="external" target="_blank">http://smalltalkhub.com/#!/~Seaside/JQueryWidgetBox</a></div>
&gt; &gt; in the entry: Autocomplete <a href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/" rel="nofollow" link="external" target="_blank">http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/</a><br>




&gt; &gt; If you follow that it says the plugin has been deprecated...
<div><div><div class='shrinkable-quote'><br>&gt; &gt;
<br>&gt; &gt; I am using Seaside 3.0. Anyway has a working dropdown list with autocomplete?
<br>&gt; &gt;
<br>&gt; &gt; Thank you very much in advance,
<br>&gt; &gt;
<br>&gt; &gt; --
<br>&gt; &gt; Mariano
<br>&gt; &gt; <a href="http://marianopeck.wordpress.com" rel="nofollow" link="external" target="_blank">http://marianopeck.wordpress.com</a><br>&gt; &gt; _______________________________________________
<br>&gt; &gt; seaside mailing list
</div></div></div>&gt; &gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=4712549&amp;i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a>
</div><div><div>&gt; &gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></div>




&gt; 
<br>&gt; _______________________________________________
<br>&gt; seaside mailing list
<br></div></div>&gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=4712549&amp;i=4" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><div><div>&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>


&gt; 
<br>&gt; 
<br>&gt; 
<br>&gt; -- 
<br>&gt; Mariano
<br>&gt; <a href="http://marianopeck.wordpress.com" rel="nofollow" link="external" target="_blank">http://marianopeck.wordpress.com</a><br></div><div>&gt; &lt;Screen Shot 2013-10-04 at 12.04.34 PM.png&gt;_______________________________________________
<br>&gt; seaside mailing list
<br></div></div>&gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=4712549&amp;i=5" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></div>
<br>_______________________________________________
<br>seaside mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=4712549&amp;i=6" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>

        
        
        
        <br>
        <br>
        <hr color="#cccccc" noshade size="1">
        <div style="color:rgb(68,68,68);font-style:normal;font-variant:normal;font-weight:normal;font-size:12px;line-height:normal;font-family:tahoma,geneva,helvetica,arial,sans-serif"><div>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://forum.world.st/Dropdown-list-with-autocomplete-tp4712525p4712549.html" rel="nofollow" link="external" target="_blank">http://forum.world.st/Dropdown-list-with-autocomplete-tp4712525p4712549.html</a>
        </div></div></div><div><div>
        <div style="color:rgb(102,102,102);font-style:normal;font-variant:normal;font-weight:normal;font-size:11px;font-family:tahoma,geneva,helvetica,arial,sans-serif;margin-top:0.4em;line-height:1.5em">
                To start a new topic under Seaside General, email <a href="http://user/SendEmail.jtp?type=node&amp;node=4712640&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a> <br><div class="im">
                To unsubscribe from Seaside, <a rel="nofollow" link="external" target="_top">click here</a>.<br>


                <a href="http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font-style:normal;font-variant:normal;font-weight:normal;font-size:9px;line-height:normal;font-family:serif" link="external" target="_blank">NAML</a>
        </div></div></div></div></blockquote></div><br></div>


        
        
        
<br><div class="im"><hr align="left" width="300">
View this message in context: <a href="http://forum.world.st/Dropdown-list-with-autocomplete-tp4712525p4712640.html" rel="nofollow" link="external" target="_blank">Re: Dropdown list with autocomplete?</a><br>
Sent from the <a href="http://forum.world.st/Seaside-General-f86180.html" rel="nofollow" link="external" target="_blank">Seaside General mailing list archive</a> at Nabble.com.<br><br></div><div class="im">_______________________________________________<br>


seaside mailing list<br>
<a href="http://user/SendEmail.jtp?type=node&amp;node=4712642&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" rel="nofollow" link="external" target="_blank">http://marianopeck.wordpress.com</a><br>
</div></div><div class="im">
<br>_______________________________________________
<br>seaside mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=4712642&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://forum.world.st/Dropdown-list-with-autocomplete-tp4712525p4712642.html" target="_blank" rel="nofollow" link="external">http://forum.world.st/Dropdown-list-with-autocomplete-tp4712525p4712642.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under Seaside General, email <a href="/user/SendEmail.jtp?type=node&node=4712653&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
                To unsubscribe from Seaside, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>


                <a href="http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/Dropdown-list-with-autocomplete-tp4712525p4712653.html">Re: Dropdown list with autocomplete?</a><br/>
Sent from the <a href="http://forum.world.st/Seaside-General-f86180.html">Seaside General mailing list archive</a> at Nabble.com.<br/>