![]() |
Карта сайта Интеллектуальная поисковая система![]() Поисковая система v3.kz поможет ускорить индексацию вашего сайта выводит в Топ |
|
jQuery Cross Domain Ajax, to perform a cross domain request, you need to use method Ajax() with dataType jsonp... crossDomain (default: false for same-domain requests, true for cross-domain requests). Pingback: Twitter Trackbacks for jQuery: $.post, ‘jsonp’ and cross-domain requests at Mark Needham [markhneedham.com] on Topsy.com(). I need just a simple "how-to" pull jsonp cross domain. Im using jQuery 1.5.1. I tried the following in a program on another site Your web-service must support method injection in order to do JSONP. Your code seems fine and it should work if your web services and your web application hosted in the same domain. When you do a $.ajax with dataType: jsonp meaning that jQuery is actually adding a new parameter to the query... JSONP or “JSON with padding” provides a method to request data from a server having a different domain. Typical web browser prohibit cross domain request due to same origin policy. Cross-domain AJAX request is possible in two ways 1). Using JSONP 2). Using CORS (Cross-origin resource sharing). Use cross domain ajax calls to get data from other domains. Discover how you can combine an obscure cross-domain call technique (JSONP) and a flexible JavaScript library (jQuery) to build powerful mashups surprisingly quickly. Thanks so much. After getting nowhere with JSONP your explanation made it happen. Pingback: Access cross-domain data with AJAX using JSONP, JQuery Mitchell Fangs Coding. Информация взята v3.kz |
загрузка...
|