Jquery success function not firing using JSONP

前端 未结 5 1643
悲哀的现实
悲哀的现实 2020-11-29 06:26

Been doing some playing call my service which is on a different domain using jQuery. The call to the service is successfully made (my debug point gets tripped), and the cor

5条回答
  •  被撕碎了的回忆
    2020-11-29 07:18

    This is not a complete answer to your question, but I think someone who passes by would like to know this:

    When you deal with JSONP from WCF REST try to use:

    [JavascriptCallbackBehavior(UrlParameterName = "$callback")]

    for your service implementation; this should give you JSONP out-of-the-box.

提交回复
热议问题