Cross Domain Scripting Issues & JSONP

后端 未结 3 929
遇见更好的自我
遇见更好的自我 2020-12-12 05:28

Our Client requires that we supply Widgits for their site. They want to link to us to get Html & the jQuery required to manipulate the Html and do asynchronous requests.

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-12 06:15

    As far as I know, JSONP utilises SCRIPT tags to load content that is external to the domain that your calling page is being loaded from. Using a SCRIPT tag allows you to reference external URLs. Once this external 'script' has been loaded, data will be returned to a specific callback function which was passed through the location of the external script.

    jQuery: http://www.insideria.com/2009/03/what-in-the-heck-is-jsonp-and.html

    MooTools: http://www.clientcide.com/wiki/cnet-libraries/06-request/00-jsonp

提交回复
热议问题