0

Is it possible to dynamically add an mql_filter to constrain results from a Freebase Suggest control?

$(function() {
    $("#button").onclick(function() {
        // add an mql_filter to #film, a Freebase Suggest control
    });

    $("#film").suggest({type:'/film/film'});
});
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Matt Norris
  • 8,596
  • 14
  • 59
  • 90

1 Answers1

0

You can reinvoke suggest with a different mql_filter:

$(function() {
    $("#button").onclick(function() {
        // add an mql_filter to #film, a Freebase Suggest control
        $("film").suggest({type:'/film/film', 
                           mql_filter: ...});

    });

    $("#film").suggest({type:'/film/film'});
});
daepark
  • 256
  • 1
  • 2
  • 5
  • Thanks for the answer! I haven't been able to test it yet because mql_filter is not working for me, even their basic example at http://www.freebase.com/docs/suggest. I posted a question to them and will let you know ASAP. – Matt Norris Sep 19 '09 at 14:39