Ajax sample, it's finally working!

raoul's Avatar

raoul

26 Mar, 2010 03:13 PM

Hi, it was hard for me to make a dynamic list using getJSON,
For those who are searching a way to do it:

$("#search").autoSuggest(

        'json_response.php', {
        searchObjProps: 'name',
        selectedItemProp: 'name',
        retrieveComplete: function(data){ 
            data = data.items;
            return data;
        }
    });

and my json response look like this:
{items

it doesn't seem to be the natural way to do it, So if someone have a good complete working sample I'm interrested
regards,

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

Keyboard shortcuts

Generic

? 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