jquery - how to make an autosuggest like freebase -
i need make sutosuggest similar freebase ...i need know how can treansfer datas db
<script type="text/javascript"> $(function() { $("#myinput").suggest({type:'/film/director'}); }); </script>
i have db need details db how can that???
if have http service (json/p) dataset , have translation layer suggest parameters, should able adjust "service_url" , "service_path" parameters point service:
$("#myinput").suggest({ service_url: "http://yourdomain.com", service_path: "/your/json/service" });
try out suggest demo (here) , web inspector/firebug @ http requests/responses suggest makes freebase.com. web service must return same json format suggest expecting. otherwise, may need overwrite default suggest response handler (which do-able).
Comments
Post a Comment