在自动完成jquery(combo)中调用webservices时出错 [英] Error in calling webservices in autocomplete jquery (combo)

查看:73
本文介绍了在自动完成jquery(combo)中调用webservices时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好





我正在尝试在jquery自动完成中实现webservices( http://jqueryui.com/autocomplete/#combobox [ ^ ]



参考这个..





现在我使用ajax fucntion调用我的web服务

Hi All


I am trying to implement webservices in jquery autocomplete(http://jqueryui.com/autocomplete/#combobox[^]

refer to this ..


Now I am calling my webservices using ajax fucntion

$.ajax({
                   type: "POST",
                   url: "WebService1.asmx?op=GetOwner",
                   data: "{prefixText}",
                   async: false,
                   contentType: "application/json; Characterset=utf-8",
                   dataType: "json





以json格式但我得到了





In json format but I am getting

Error ": 500 internal server not found , when we search on text box ...





请帮助



Please help

推荐答案

.ajax({
类型: POST
url: WebService1.asmx?op = GetOwner
data: {prefixText}
async: false
contentType: applica重刑/ JSON; Characterset = utf-8
dataType: json
.ajax({ type: "POST", url: "WebService1.asmx?op=GetOwner", data: "{prefixText}", async: false, contentType: "application/json; Characterset=utf-8", dataType: "json





以json格式但我得到了





In json format but I am getting

Error ": 500 internal server not found , when we search on text box ...





请帮助



Please help


在fiddler / firebug中尝试查看实际结果,然后尝试将类型更改为GET,将数据更改为{prefixText}而不是{prefixText}
Try it in fiddler/firebug to see actual result and then try Changing type to GET and data to {prefixText} instead of "{prefixText}"


这篇关于在自动完成jquery(combo)中调用webservices时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆