jquery .autocomplete doesnt filter

eldevaDeabytn

New Member
im newbie at all in jquery and json, and spent hours but it still not solved the problemJSON from server is valid, checked thru jsonlit.com but it still show all data (not filtered).JSON from serverURI.asp \[code\]["A. ASRUNADI", "A. MURSYID", "A. RIFANI", "A.Z MAKMUR IS", "ABBAS", "ABDI IRWANTO"]\[/code\]my jquery\[code\]$("#keyword").autocomplete({ source: function(request, response){ $.getJSON("serverURI.asp", function(data){ var source = data response(source); }); }});\[/code\]but.... when i put JSON as var in jquery its works... meanwhile i already use utf-8 in my html meta tag\[code\]$(function() { var availableTags = ["A. ASRUNADI", "A. MURSYID", "A. RIFANI", "A.Z MAKMUR IS", "ABBAS", "ABDI IRWANTO"]; $("#keyword").autocomplete({ source: availableTags });});\[/code\]my ASP (classic) to generate JSON as follow\[code\] dim strResultEMPstrResultEMP = "["for strEmpCount = 0 to strTotalCountEmp strEmpObj = split(strEmpSplit(strEmpCount), "$$$") if strEmpCount < strTotalCountEmp then strResultEMP = strResultEMP & """" & ucase(strEmpObj(1)) & """" & ", " else strResultEMP = strResultEMP & """" & ucase(strEmpObj(1)) & """" & "" end ifnextstrResultEMP = strResultEMP & "]" response.write strResultEMP\[/code\]FYI, i use JSON2.asp and JSON UTIL, but it still same.to debug and catch the server response i use firebug.please help...
 
Back
Top