I am using the following code:
$(function(){
$(".aucomplete").live("keyup", function(){
var all_analysts = [<TMPL_VAR ALL_TARGETS>];
$(this).autocomplete({
source: all_analysts, //local lookup values
delay: 0
});
});
});
and "ALL_TARGETS" contains a string like: 'X','Y','Z'.
When limiting the string to 1000 items, everything works fine. When limiting the string to 5000 items, aucomplete doesn't work and on chrome I get the following error: "Uncaught SyntaxError: Unexpected string" (under the "var all_analysts = [];" row).
(firefox and Iexplorer don't show the error but aucomplete still doesn't work).
Anyone know what may be the broblem?
Thanks in advance.