No Results Found showing all the time

Jeremy Flight's Avatar

Jeremy Flight

18 Mar, 2010 10:06 PM

I have AutoComplete set up and I get a proper set of JSON data returned via AJAX but, irrespective of what's included in the JSON file, I always see "No Results Found" in my autocomplete box. Any idea what might be wrong with the way I've configured autocomplete?

In my JavaScript file:

$('input#text-AutoSuggest').autoSuggest(baseURL + 'contentitem/autocomplete' ,{minChars: 2 ,startText: '' ,emptyText: 'No content items match your search' ,retrieveLimit: 25 ,neverSubmit: true ,extraParams: '&id=' + $('input#hidden-ContentItemId').val() ,matchCase: false });

An example of the JSON file I get from my PHP script:


  1. Support Staff 1 Posted by Drew Wilson on 27 Mar, 2010 07:00 PM

    Drew Wilson's Avatar

    Your PHP didn't show up here in the discussion. Can you re-post?
    Also, when making your selections in jQuery, never put the element tag name when referencing an ID. It will slow jQuery down.
    So never do this: $('input#text-AutoSuggest')
    Do this:

    Only when using Classnames should you reference the element tag as well.
    so like: $('input.someclass')


  2. Drew Wilson closed this discussion on 17 May, 2010 10:16 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac