jquery autocomplete iframe as source help -
jquery autocomplete iframe as source help -
hi im trying dump iframe info var in jquery , using souce, src iframe txt file \n delimiter heres code, cant seem autocomplete work, text file 50 kb , 3000-4000 lines of splitting done
var info = $('#friends').contents().text().split('\n');//iframe contents $('#searchbox').autocomplete({ source: info }); $("#searchbox").bind("autocompleteselect", function (event, ui) { var profilesearchrequest = ui.item.value; localstorage.setitem('profilesearchrequest', profilesearchrequest);//just html5 localstorage here... document.location = 'user.html';//just 1 time li item on autocomplete clicked... }); <input type="text" class="ui-button-text searchbox" id="searchbox" /> <iframe src="data/nameslite.txt" id="friends" style="display: none"></iframe> is info big store in variable, cause names list in txt file 3k-4k names 50-80kb
jquery-ui iframe autocomplete
Comments
Post a Comment