Event for poping up the suggestion-list?

4 views
Skip to first unread message

ithoughts_de

unread,
Apr 28, 2009, 3:10:54 AM4/28/09
to Freebase Suggest
Hi there! I want to pup up the suggest-list after ahving filled the
input-element with a string from javascript. Can you tell me how to
activate the pop-up-list of the suggested freebase-topics after that
(via JS-event or something?)?

Thanks :-)

Jason Douglas

unread,
Apr 28, 2009, 12:55:43 PM4/28/09
to freebase...@googlegroups.com

It should happen automatically if everything is set up correctly. For
example (view source):

http://controls.freebaseapps.com/example

-jason

Will Moffat

unread,
Apr 28, 2009, 1:15:22 PM4/28/09
to freebase...@googlegroups.com
Hi,

It looks like you might be able to use jQuery's trigger('keydown') to
make the popup list appear. Unfortunately you might have to provide a
fake Event object with the keycode of the down arrow.
Freebase-Suggest shouldn't make this so hard. Let us know if it
doesn't work out.

regards,
--Will

ithoughts_de

unread,
Apr 29, 2009, 12:12:10 PM4/29/09
to Freebase Suggest

> It looks like you might be able to use jQuery's trigger('keydown') to  
> make the popup list appear. Unfortunately you might have to provide a  
> fake Event object with the keycode of the down arrow.
> Freebase-Suggest shouldn't make this so hard. Let us know if it  
> doesn't work out.

Hi there!

In fact I tried to solve the problem with a fake keydown event (didn't
use jQuery for that) and first didn't realize why this didn't work.
After trial-and-erroring a bit I think the problem existed because the
input field needed two user events with timer of 30ms between them.
Now two of these events have the desired effect :-)

Thanks for the replys! Regards

Tim

Will Moffat

unread,
Apr 29, 2009, 12:21:44 PM4/29/09
to freebase...@googlegroups.com
Hi Tim,

Glad to hear you got it working.

We're working on Freebase Suggest v2 which will be a lighter-weight
plugin that should be easier to customize (and to understand).
We'll post on this list and on the main Freebase Developers list once
we have something ready for public consumption.

regards,
--Will

ithoughts_de

unread,
Apr 30, 2009, 7:28:09 AM4/30/09
to Freebase Suggest
> We're working on Freebase Suggest v2 which will be a lighter-weight  
> plugin that should be easier to customize (and to understand).
> We'll post on this list and on the main Freebase Developers list once  
> we have something ready for public consumption.

I'd love to see that :-)
Reply all
Reply to author
Forward
0 new messages