I want to create an autocompleter that uses HTML database storage. What I'm intending to it modify Autocompleter.Local. My problem is that I'm not sure how to fit these 2 pieces of code together:
>From Autocompleter: getUpdatedChoices: function() { this.updateChoices(this.options.selector(this), searchDB (this.getToken())); } DB function: function searchDB(searchThis) { db.transaction(function(tx) { tx.executeSql(" SELECT info FROM list WHERE (FirstName LIKE ? OR LastName LIKE ?) ORDER BY LastName LIMIT 20", [searchThis+'%', searchThis+'%'], function(tx, result){ // success, but how do I get result to my other function? } , function(tx, error) { alert('Failed to retrieve notes from database - ' + error.message); return; }); }); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---