jQuery UI Functional Test Suite

Say it in Smalltalk, Do it with jQuery

Autocomplete

For additional documentation and examples please visit the official web-site.

Demo


Smalltalk

JQAutocompleteFunctionalTest>>renderContentOn: html
   html label
      for: html nextId;
      with: 'Type a Seaside package name:'.
   html break.
   html textInput
      id: html lastId;
      script: (html jQuery this autocomplete
         sourceCallback: [ :term | self packageNamesFor: term ])

Source

< =>Type a Seaside package name:</>
</>
< = = =/>
< =>/*<![CDATA[*/$("#id26").autocomplete({"source":function(request,response){$.getJSON("/javascript/jquery-ui/autocomplete"+"?"+["_s=ICYFfUUN-2q8-in2","_k=PfzNsUxdB-dOkC8N","27","28="+encodeURIComponent(request.term)].join("&"),function(){response(arguments[0])})}});/*]]>*/</>