jquery ui autocomplete - open event (handling no results) -


i wanted use open event return "no results found" when ui == null in firebug looks after open event fired ui list empty if there results.

my source xml file

i'm attempting:

open: function(event,ui) {   if( ui.item == null ) {   console.log("no results");   } }  

add autocomplete.js:

    if(retmatch.length == 0) {         var noresult = new array();         noresult[0] = {         label: "no results found",         title: "no results found",         description: "your search did not return results. please refine search criteria. if believe message in error please fill out support case."         }         return noresult;     } 

to: $.extend


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -