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) {
                                customers = data;
                                return {
                                        data: row,
                                        value: row.name,
                                        result: row.name
                                }
                        });
                },
                minChars: 2,
                width: 263,
                formatItem: function(item){
                        return item.name;
                }
        })
});
--------------------------------

and here is the little json thingy:

{
        customers:[
                {
                        "name": "A",
                  "project":[
                                {"name": "p1"},
                                {"name": "p2"},
                                {"name": "p3"}
                        ]
                },
                {
                        "name": "B",
                  "project":[
                                {"name": "p1"},
                                {"name": "p2"},
                                {"name": "p3"},
                                {"name": "p4"},
                                {"name": "p5"}
                        ]
                },
                {
                        "name": "C",
                  "project":[
                                {"name": "p1"},
                                {"name": "p2"}
                        ]
                }
        ]
}


should be easy peasy, shouldn't it?

On 3 Sep, 00:44, MorningZ <[EMAIL PROTECTED]> wrote:
> "What can cause this?"
>
> that would be your code...  but where and when and how is unknown with
> what little you provide

Reply via email to