Autocomplete jQuery 1.8-UI JSON Format
- by Kezzer
I'm toying with the new autocomplete in jQuery 1.8-UI. I've provided data in the following format
["val1", "val2", "val3"]
This is coming from a stored procedure but output as a string. For some reason this doesn't work at all, however, if I supply the same data using a javascript variable
var data = ["val1", "val2", "val3"];
Then this works fine.
<script type="text/javascript">
$(function()
$("#txtClient").autocomplete({
source: "/intranet/common/scripts/IntranetLists.aspx?ListType=C"
});
});
</script>
I've got a page which supplies whatever data I want using query strings. It's more temporary, but it worked when I previously used bassistence's autocomplete.
Any ideas?