Autosuggest =========== Adapted from: Timothy Groves - http://www.brandspankingnew.net .. data:: cur_autosug Live Autosuggest object .. function:: hide_autosuggest() Hide the Live Autosuggest (if exists) .. class:: AutoSuggest(id, param) Create a new autosuggest object Overriding the default call --------------------------- * To override the default server call, override the method `doAjaxRequest` * To override updation in the INPUT element, override the method `custom_select` Example ------- Example where email id is to be retrieved:: // ---- add auto suggest ---- var opts = { script: '', json: true, maxresults: 10 }; var as = new AutoSuggest(d.widgets['To'], opts); as.custom_select = function(txt, sel) { // ---- add to the last comma ---- var r = ''; var tl = txt.split(','); for(var i=0;i