@ixwood
Take a look at the autocomplete documentation - specifically the 'source' option: http://api.jqueryui.com/autocomplete/
Take a look at autocomplete examples - specifically the one that uses remote data and JSONP source; 1) http://jqueryui.com/autocomplete/#remote | 2) http://jqueryui.com/autocomplete/#remote-jsonp(Although you will not get JSON data from SP with SPServices, if you get a good understanding of how it works in the demo, you will be able to implement this no problem)
The design is as follows:
Hope this helps..
Paul.
( Shameful plug: This widget I created may help: SPLookupField : http://purtuga.github.io/SPWidgets/ - it was created to address this exact need: filter through large lists... If you want to see specifically how I coded it using the design described above, look in the source HERE )
.
Take a look at the autocomplete documentation - specifically the 'source' option: http://api.jqueryui.com/autocomplete/
Take a look at autocomplete examples - specifically the one that uses remote data and JSONP source; 1) http://jqueryui.com/autocomplete/#remote | 2) http://jqueryui.com/autocomplete/#remote-jsonp(Although you will not get JSON data from SP with SPServices, if you get a good understanding of how it works in the demo, you will be able to implement this no problem)
The design is as follows:
-
use autocomplete on the input field
-
Set the source option to a function that retrieves values based on the few characters that the user entered.
a. Alter the response from GetListItems the create the data structure (Array of Objects) that autcomplete expects.
Hope this helps..
Paul.
( Shameful plug: This widget I created may help: SPLookupField : http://purtuga.github.io/SPWidgets/ - it was created to address this exact need: filter through large lists... If you want to see specifically how I coded it using the design described above, look in the source HERE )
.