I have ported a jquery plugin which enabled auto completion on text fields on vastgoodies.com
You can get it here: http://vastgoodies.com/maps/JQuery-plugin%20Autocomplete/BV%202009Oct29
Release notes:
Wrapper for Autocomplete plugin for JQuery.
JQuery Plugin created by Jörn Zaefferer
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
Current version: 1.1
Compressed filesize: 8.001 bytes
License: MIT/GPL
Tested in: Firefox 3, IE 6 & 7, Opera 9, Safari 3
Migrated to VAST80 by Bart Veenstra
Autocomplete an input field to enable users quickly finding and selecting some value, leveraging searching and filtering.
By giving an autocompleted field focus or entering something into it, the plugin starts searching for matching entries and displays a list of values to choose from. By entering more characters, the user can filter down the list to better matches.
This can be used to enter previous selected values, eg. for tags, to complete an address, eg. enter a city name and get the zip code, or maybe enter email addresses from an addressbook.
[Usage example]
|id| ( html textInput ) ; id: (id := html nextId) ; script: ( html jQuery new script: [ :s | s << ( s jQuery id: id ) autocomplete data: anOrderedCollectionOfStrings] )
[Usage example Ajaxified]
|id| ( html textInput ) ; id: (id := html nextId) ; script: ( html jQuery new script: [ :s | s << ( s jQuery id: id ) autocomplete data: anOrderedCollectionOfStrings ; useAjax: true with: s ] )
#1 by Joachim on December 14, 2009 - 15:14
Bart,
it doesn’t work on VAST 8.0.1, because JQUIPluginAutocomplete does not understand #on:
Do I need to load some general JQUIPlugin stuff before this plugin or is this due to code changes between the V8.0 version you used and V8.0.1 of VAST?
Joachim
#2 by BeArt on December 14, 2009 - 15:31
Jaochim,
We haven’t rolled out 8.0.1 yet, but we soon will. As prerequisit is depends on JQueryUIApp. Does that work in seaside already?
Regards.
Bart
#3 by Joachim on December 14, 2009 - 15:38
Bart,
JQueryUIApp V8.0.1 [134] is loaded.
So it seems something changed in this application between 8.0 and 8.0.1… I don’t have an 8.0 Library at hand at this very moment, so I can’t compare. But I guess that’s it
And yes, in VAST 8.0.1 all the JQuery UI tests do run.
Thanks for your quick response
Joachim
#4 by Joachim on December 14, 2009 - 15:47
Bart,
I found it.
I had to change JQueryInstance>>#autocomplete
to:
that was easy
Joachim
#5 by BeArt on December 14, 2009 - 15:52
Cool. Did you need to change anything in the library it self?
And do you use the ajax version on the “plain” one.
#6 by Joachim on December 14, 2009 - 16:10
Bart,
just the plain one for now.
I am at a place where I cannot post to VASTGoodies right now (firewall won’t let me)….
Joachim