开发者

jquery autocomplete doesn't get response in firefox

When I put autocomplete.ashx file under staging server and test from my local, the autocomplete function works only at IE. No response in firefox (Checked in firebug). But it works both IE and FireFox in my local iis . Any advise?

My jquery

$("#txtautocomplete").autocomplete("http://mystagingserver.com/myautocomplete/autocomplete.ashx?q=Contains,111,10",
                 {                
                delay:400,
                minChars:3,               
                matchSubset:1,
                matchContains:1,
                cacheLength:10,
                selectFirst: false,
                selectOnly: false,
                scroll:true,
                autoFill:false
                });

ASHX code

Check paramater return string in line (e.g "apple" "oran开发者_高级运维ge" "mango")

From page

include


Sounds like SOP(same origin policy). You are not allowed to make cross domain ajax calls unless you use JsonP. Does it work if you run the JQuery on the stagingserver?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜