Twitter Typeahead.js with Yahoo Finance in AJAX -
i trying couple new version of typeahead.js , using json needs pulled ajax , not json file have in examples. can't work, don't want cache json result or anything, want pull live yahoo. my html input <input type="text" id="symbol" name="symbol" autofocus autocomplete="off" placeholder="symbol" onkeyup="onsymbolchange(this.value)" /> my ajax/php file has retrieve data (this part work, tested firebug) header('content-type:text/html; charset=utf-8;'); $action = (isset($_get['action'])) ? $_get['action'] : null; $symbol = (isset($_get['symbol'])) ? $_get['symbol'] : null; switch($action) { case 'autocjson': getyahoosymbolautocomplete($symbol); break; } function getyahoosymbolautocompletejson($symbolchar) { $data = @file_get_contents("http://d.yimg.com/aq/autoc?callback=yahoo.util.scriptnodedatasource.callbacks&query=$symbol...