drewwilson / AutoSuggest

jQuery AutoComplete Plugin
http://code.drewwilson.com/entry/autosuggest-jquery-plugin
86 stars 46 forks source link

JSON markup issues #2

Closed django-rdf-tools closed 13 years ago

django-rdf-tools commented 13 years ago

Also, JSONLint points thats the keys "value", "name" should be inside quotes, but if I use them, the scripts has an error on this line : var str = data[num].value;

my json source in this case look like this when queried (names changed) { "items" :[ {"value":"692","name":"Ragdfma ACDFID"}, {"value":"686","name":"Altreine AKKJVRAM"}, {"value":"428","name":"Tfadftc ARALKMA"}, {"value":"2100","name":"Ikrazdme BOUPOFRA"}] }

django-rdf-tools commented 13 years ago

I must add now that I also use jquery UI's autocomplete, and they use the "correct" flavour, the keys are quoted in the json data.

django-rdf-tools commented 13 years ago

Forget it