Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everyone, i have created small application, in my application i have text box, i ll fill the data to the text box by using web service which is in my hosted my PC,
i am using java script code for the auto complete process, below is my code,
JavaScript
$.ajax({
                type: "POST",
                url: "http://localhost/kff/n_kff.asmx/getitem",
                dataType: "json",
                data: "{}",
                contentType: "application/json; charset=utf-8",
                success: function(data) {
                    var datafromServer = data.d.split(":");
                    $("[id$='txtautofromDB']").autocomplete({
                        source: datafromServer
                    });
                },
                error: function(XMLHttpRequest, textStatus, errorThrown) {
                    alert(textStatus);
                }
            });




this is my code for autocomplete in text box with web service, but the above code is not working , please tell me what changes should i want to do in the above code,, your help will be great-full to me
Posted
Updated 19-Jan-12 20:21pm
v2
Comments
chandrashekhar racharla 20-Jan-12 2:28am    
can you debug the code and tell me the error message
sameertm 20-Jan-12 2:31am    
its returns null value...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900