[jQuery] [autocomplete] FIX: Cache using term + extraParams

2009-12-02 Thread Gabbit
Hi all, i have made a change to autocomplete code, because cache handling should include extraParams in cache term. I thought this could be interesting for some of you, so here is the code snippet that should replace existing function request in autocomplete.js : function request(term, success,

[jQuery] [autocomplete] Parse JSON ajax request

2009-12-02 Thread Gabbit
Hi all, here is the code i use to parse an ajax request call as JSON string as it is done for local data. I think this should be the default behavior, but autocomplete uses a | separated String... parse: function(data){ var objArray = eval(( + data + ));