[jQuery] Re: how to get json or xml to be datasource of autocomplete

2008-08-25 Thread foxtrot
Hi again. Forgot to show the error I get from my initial code: $("").html(e.highlight(a, term)).addClass is not a function I will look more closely to your code GLP, altough I didn't understand it quite at the first glance :-)

[jQuery] Autocomplete and multidimension data

2008-08-26 Thread foxtrot
I have a datastructure looking like this: var customers = [ { name: "A", projects: [{name:"val1",name:"val2",name:"val3"}] }, { name: "B", projects: [{name:"val1",name:"val2",name:"val3,name:"val4,name:"val5"}] }, . { name: "", projects: [{name:"val1",name:"val2"}]

[jQuery] [autocomplete] every item shown regardless of letter typed

2008-09-02 Thread foxtrot
Hi! I'm using Jörn Zaefferers autocomplete, and happy day, using json as datasource is working! Sadly, I have not reached nirvana yet When I press a "s" for instance, the goal is of course to only show the items starting with "s". But no, every item is shown! What can cause this? Thanx!

[jQuery] Re: every item shown regardless of letter typed

2008-09-03 Thread foxtrot
sorry about the missing code! it's quite simple: --- $(document).ready(function(){ $("#client").autocomplete("data.json", { parse: function(data) { return $.map(eval(data), function(row) { cust

[jQuery] Autocomplete - every item shown regardless of letter typed

2008-09-03 Thread foxtrot
Oops, sorry aboute the missing code $(document).ready(function(){ $("#client").autocomplete("data.json", { parse: function(data) { return $.map(eval(data), function(row) { customers = data;

[jQuery] how to get json or xml to be datasource of autocomplete

2008-08-22 Thread foxtrot
Hi! I'm making an app which benefit a lot from using autocomplete. However, I need to use an external file as source, and json or xml would suit the backend people best (ruby on rails). I have made an effort of trying to use xml, but ain't succeding. Maybe some of you guys can help me out? My xm