I think it&#39;s a client side problem, that Autocomplete plugin is not the jQuery UI Autocomplete.<div>You should grab the latest from <a href="http://jqueryui.com">http://jqueryui.com</a> and you can read the documentation here: <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://jqueryui.com/demos/autocomplete/">http://jqueryui.com/demos/autocomplete/</a><br>
<br></div><div>ps: the JSON data structure is fine.</div><div><br><div class="gmail_quote">2011/4/29 Armin Wenz <span dir="ltr">&lt;<a href="mailto:wenz@ub.uni-frankfurt.de">wenz@ub.uni-frankfurt.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
I&#39;ve read the last years the thread about &quot;Using Jquery UI Autocomplete widget with Catalyst::View::JSON&quot;. And still got a problem:<br>
<br>
My template is:<br>
&lt;script type=&quot;text/javascript&quot; src=&quot;/static/js/jquery.validate.min.js&quot;&gt;&lt;/script&gt;<br>
&lt;script type=&quot;text/javascript&quot; src=&quot;/static/js/jquery.bgiframe.min.js&quot;&gt;&lt;/script&gt;<br>
&lt;script type=&quot;text/javascript&quot; src=&quot;/static/js/jquery.ajaxQueue.js&quot;&gt;&lt;/script&gt;<br>
&lt;script type=&quot;text/javascript&quot; src=&quot;/static/js/jquery.autocomplete.min.js&quot;&gt;&lt;/script&gt;<br>
&lt;script type=&quot;text/javascript&quot; src=&quot;/static/js/thickbox-compressed.js&quot;&gt;&lt;/script&gt;<br>
&lt;link rel=&quot;stylesheet&quot; href=&quot;[% c.uri_for(&#39;/static/css/jquery/jquery.autocomplete.css&#39;) %]&quot; &gt;&lt;/link&gt;<br>
<br>
&lt;script type=&quot;text/javascript&quot;&gt;<br>
&lt;!--<br>
  $(document).ready(function(){<br>
  $(&quot;#model&quot;).autocomplete(&quot;[% c.uri_for(&#39;/model/modellist&#39;) %]&quot;, {<br>
        selectFirst: false,<br>
        width: 260,<br>
  });<br>
  });<br>
//--&gt;<br>
&lt;/script&gt;<br>
<br>
&lt;form id=&quot;commentForm&quot; class=&quot;cmxform&quot; method=&quot;post&quot; action=&quot;[% c.uri_for(&#39;save&#39;) %]&quot;&gt;<br>
&lt;table&gt;<br>
&lt;tr&gt;<br>
&lt;td class=&quot;label&quot;&gt;Modell&lt;/td&gt;<br>
&lt;td class=&quot;data&quot;&gt;&lt;input id=&quot;model&quot; name=&quot;model&quot; size=&quot;40&quot;  /&gt;&lt;/td&gt;<br>
&lt;/tr&gt;<br>
&lt;/table&gt;<br>
&lt;/form&gt;<br>
<br>
<br>
In my Controller<br>
sub modellist :Local {<br>
    my ( $self, $c ) = @_;<br>
    my @aoh = ( { value =&gt; &quot;1&quot;, label =&gt; &quot;betty&quot;, },<br>
                { value =&gt; &quot;2&quot;, label =&gt; &quot;jane&quot;, },<br>
                { value =&gt; &quot;3&quot;, label =&gt; &quot;marge&quot;, },<br>
              );<br>
    $c-&gt;stash-&gt;{json} = \@aoh;<br>
    $c-&gt;forward(&#39;View::JSON&#39;);<br>
}<br>
<br>
When I enter a character into the input-field, the above URL is called and the follwing data is returned:<br>
<br>
[{&quot;value&quot;:&quot;1&quot;,&quot;label&quot;:&quot;betty&quot;},{&quot;value&quot;:&quot;2&quot;,&quot;label&quot;:&quot;jane&quot;},{&quot;value&quot;:&quot;3&quot;,&quot;label&quot;:&quot;marge&quot;}]<br>
<br>
But I don&#39;t get the expected dropdown, where I can select any of the returned data.<br>
<br>
As far as the returned data seems to be okay, I assume that the mistake lies within the template (maybe I forgot something?)<br>
<br>
Can anybody give me a hint?<br>
<br>
Thanks in advance.<br>
<br>
-- <br>
<br>
Armin Wenz<br>
<br>
Universitätsbibliothek Johann Christian Senkenberg<br>
Telefon: 069-798-39504<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</blockquote></div><br></div>