[Developers] Suggestion for Freebase Suggest
Dae Park
daepark at metaweb.com
Thu Feb 7 23:34:03 UTC 2008
Yes, the new freebaseSelect plugin serves this purpose. It's
basically a combox box (comparable to the html <select> element) that
can be used to list the first n instances of a type. For example to
list all 50 US States you would do something like:
$("#myinput").freebaseSelect({type:"/location/us_state", limit: 50})
.bind('fb-select', function(e, data) { console.log
('select: ', data.id); })
Currently it doesn't show the drop down when you focus, but it does
show the drop down list on down arrow.
-dae
ps. hope you don't mind me posting your question to
developers at freebase.com since others might benefit as well...
On Feb 7, 2008, at 3:27 PM, William Pietri wrote:
> Hi, guys! I'm happily using Freebase Suggest 0.3, and had a
> suggestion (or maybe just a usage question).
>
> Right now, it looks like you have to type at least one character to
> get Freebase Suggest to pop up. But for some fields I'd like to
> have it pop up as soon as the field gets focus.
>
> Obviously this would only make sense where I know the type and
> further know that the number of items is small. But it would make a
> nice option for those cases. Is there a way I can do that now?
>
> Thanks,
>
> William
>
>
>
>
> --
> William Pietri - william at scissor.com - +1-415-643-1024
> Agile consulting, coaching, and development: http://www.scissor.com/
> A team room, in pictures: http://www.scissor.com/resources/teamroom/
>
More information about the Developers
mailing list