Getting Error : "Microsoft JScript runtime error: 'length' is null or not an object" in jquery-1.4.min.js page.
I am using this code to call web service :
<script type="text/javascript">
$(document).ready(function() {
$("#<%=txtSearch.ClientID %>").autocomplete({
source: function(request, response) {
$.ajax({
url: '<%=ResolveUrl("~/Service.asmx/GetStn") %>',
data: "{ 'prefix': '" + request.term + "'}",
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8",
success: function(data) {
response($.map(data.d, function(item) {
return {
...
Go to the complete details ...