Autocomplete Jquery remote data not auto filter like local array
===

I am starting with simple autocomplete from Jquery in two cases: local array and remote source data from other page. I am sure the data for both be the same but Autocomplete work differently. Refer my code below:

***1. With local array***

**Javascript code**

    
    $(document).ready(function() {
            $("#txtArr").autocomplete({
            source: programmingLang,
            change:function(event, ui){
                if (ui.item==null)
                    $('#txtArr').val(-1);
            }
            })
    })


**programmingLang array:** 

    var programmingLang = [{ "value": "ActionScript", "id": 31 }, { "value": "AppleScript", "id": 2 }, { "value": "JavaScript", "id": 3 }, { "value": "Haskell", "id": 33 }, { "value": "Architects", "id": 27 }, { "value": "Scheme", "id": 1 }, { "value": "PHP", "id": 29 }, { "value": "Marketing", "id": 25 }, { "value": "Perl", "id": 15 }, { "value": "Training", "id": 32}];


From browser, I typed p, ..., items which contain 'p' dispayed in list - perfect:) 

***2. Remote by source data***

**Javascript code**

    <script type="text/javascript">
        $(document).ready(function() {
            $("#txtArr").autocomplete({
            source: "script.asp",
            change:function(event, ui){
                if (ui.item==null)
                    $('#txtArr').val(-1);
            }
            })
    })
    
</script>

**script.asp**

    <%    
    Response.ContentType = "application/json; charset=utf-8"    
    Response.Write("[{ ""value"": ""ActionScript"", ""id"": 31 }, { ""value"": ""AppleScript"", ""id"": 2 }, { ""value"": ""JavaScript"", ""id"": 3 }, { ""value"": ""Haskell"", ""id"": 33 }, { ""value"": ""Architects"", ""id"": 27 }, { ""value"": ""Scheme"", ""id"": 1 }, { ""value"": ""PHP"", ""id"": 29 }, { ""value"": ""Marketing"", ""id"": 25 }, { ""value"": ""Perl"", ""id"": 15 }, { ""value"": ""Training"", ""id"": 32}]")
%> 

From browser: type p ... all items in array be listed :(


How can I fix for both of them work the same as local array?

Many thanks.


