views:

44

answers:

1

Hi all;

Not Work

Jquery Code:

$('[id$=Name]').autocomplete('CallBack.aspx',{formatItem: function(item){return item.Name;}}).result(function(event, item) {
            location.href = item.AGE;
        });

Json:

var data = [{NAME:"John",AGE:"57"}];

Work

Jquery Code:

var data = [{NAME:"John",AGE:"57"}];

 $('[id$=Name]').autocomplete(data,{formatItem: function(item){return item.Name;}}).result(function(event, item) {
                location.href = item.AGE;
            });

alt text

Help me pls how its make ? callback.aspx return json not work

A: 
Codesleuth
@Codesleuth Not Work
Oraclee
I take it you are using the code at the bottom of this page as your starting point? http://docs.jquery.com/Plugins/Autocomplete Are you intending to use the selected item in a redirect?
Codesleuth
@Codesleuth selected item redirect test i can selected item hidden field value :-) but cant you see autocomplete list
Oraclee
my problem callback.aspx get data not work, var data = [{NAME:"John",AGE:"57"}]; Work;
Oraclee
@Codesleuth my comment edit look pls,var data = [{NAME:"John",AGE:"57"}]; picture work but callback.aspx picture i cant see
Oraclee
Then it is the result from your callback page that is wrong. You need to paste the code from `CallBack.aspx` for us.
Codesleuth