[Seaside] AutoCompleter

Edward Stow ed.stow at gmail.com
Fri Apr 18 05:59:49 UTC 2008


Could somebody point out how to obtain the selectedIndex from a
SUAutocompleter. I have seen the example using the passenger -- but
this does not appeal in my case. Currently I have :

	html heading level: 3; with: 'Search for events'.
	html paragraph: [
		html textInput
			id: 'text';
			value: text;
			callback: [ :value | text := value ].

		html div
			class: 'autocomplete';
			script: (html autocompleter
				selectedIndex;   "<--- not sure how to obtain the value from the callback"
				element: 'text';
				onSelected: (html request
					triggerFormElement: 'text');
				onSelected: ( "I'm guessing that I need a callback function" )
				on: #renderListOn: of: self) ]


Edward Stow

More information about the seaside mailing list