I asked an earlier question which was definitely helpful and let me know about JSONP. However, I see that I have to specify JSONP as the datatype. Now, as far as I know, that is the return type of the data coming back, which would be XML. Can XML be returned using JSONP or am I limited to it coming back as JSONP format? Thanks!
...
Hello,
I see quite a lot of History plugin for jquery but Im not quite sure which one of them supports JsonP (json with padding)? Do you guys know of a plugin where it can handle the Back button and JsonP requests?
Thanks!
...
I'd like to offer a way to my users to promote my website, blog etc. on their website.
I can make a banner, logo whatever that they can embed to their site, but I'd like to offer dynamic content, like "the 5 newest entry's title from my blog".
The problem is the same origin policy. I know there is a solution (and I use it): they embed a...
Possible Duplicate:
jsonp memory leak
So I've recently setup a chrome extension to refresh a page and call a jsonp web service I've written but there is a memory leak. I've searched all of the internet to find solutions and nothing seems to work. I've used the plain jQuery .ajax() call specifying "jsonp", I've used jquery-json...
So I've recently setup a chrome extension to refresh a page and call a jsonp web service I've written but there is a memory leak. I've searched all of the internet to find solutions and nothing seems to work. I've used the plain jQuery .ajax() call specifying "jsonp", I've used jquery-jsonp found at http://code.google.com/p/jquery-jsonp/...
I have a WCF 4 REST WebService within a folder in my ASP.Net MVC 2 project. JSONP is also enabled on the service using the 'crossDomainScriptAccessEnabled' binding option.
The site and service work great. But, I just noticed that if you are signed in to the website (meaning you have a cookie) and then you 'test' an API method by hitting ...
Hi,
I've developed an API with WCF Data Services which exposes my website user's data.
The data hosted there belongs to each user and is not public, so the API is secured with API keys which are unique to each client and http header or GET parameter based authentication.
Now I am wondering if I should enable JSONP on my API. It seems ...
I'm using the following for a long-polling request (this is a plugin similar to getJSON)...
$.jsonp({
"url": url,
"data": {
"settings", settings
},
"success": function(userProfile) {
// handle user profile here
},
"error": function(d,msg) {
alert("Could not find user "+userId);
}
});
The request won't ...
I am working on implementing a JavaScript web bug that will be inserted into our client's web pages. One of the features our clients would like, is a way to pass pieces of the HTML on their web pages to our server through the web bug. We are using JSONP and the server that is hosting the JavaScript web bug is different than the server ho...
I am trying to grab some data via JSONP. Using Firebug, I am able to see the data properly being returned, but I am having a hard time thinking how I have to parse it. The data return is really a nested array correct? someFunction is the name of the callback function. This is how the data looks:
someFunction([
{
"title":"Sa...
I am making a JSONp call to youtube using oembed and on response firebug gives "invalid label" error
Here is my code
site = "www.youtube.com";
url = "http://www.youtube.com/watch?v=slORb622ZI8";
$.getJSON("http://"+site+"/oembed?callback=?",{"format":"json","url":url},function(data){
alert("hello:\n"+data);
alert(data.provider...
I'm stuck - and it's pretty frustrating for something I thought was going to be simple :(
Jquery:
$.ajax({
url: "http://ur.ly/new.json?href=http://www.yahoo.com"),
type: "GET",
dataType: "jsonp",
success: function(data){
console.log(data);
}});
I've tried doing this, and FF gives me an "invalid label" error, Chrome gives anoth...
but according to this: http://www.php.net/manual/en/function.json-encode.php#94157 it won't.
I'm using flot so I need to have an array with numeric indexes returned but what I'm getting is this:
jsonp1282668482872 ( {"label":"Hits 2010-08-20","data":{"1281830400":34910,"1281916800":45385,"1282003200":56928,"1282089600":53884,"1282176...
Hi all,
I am developing a third-party service embedded in websites as a JS snippet, that amongst other things need to fetch some jsonp data from my PHP server, and display the text contained in the json object on the hosting embedding website.
I am using jQuery, so I issue the following .getJSON request:
$.getJSON("http://localhost/ph...
Like a lot of developers, I want to make JavaScript served up by Server "A" talk to a web service on Server "B" but am stymied by the current incarnation of same origin policy. The most secure means of overcoming this (that I can find) is a server script that sits on Server "A" and acts as a proxy between it and "B". But if I want to dep...
I'm developing a page that pulls images from Flickr and Panoramio via jQuery's AJAX support.
The Flickr side is working fine, but when I try to $.get(url, callback) from Panoramio, I see an error in Chrome's console:
XMLHttpRequest cannot load http://www.panoramio.com/wapi/data/get_photos?v=1&key=dummykey&tag=test&offset...
As its Javadocs suggest, the JsonpRequestBuilder can only send GET requests. I need to send POST requests using the same method (for cross domain requests using JSON).
Does anybody know any working solution? I could not find any starting point on the web.
thanks in advance
...
The way it is, I learn the methods by jQuery.getJSON ,
I tried to made a small album with dribbble's api.
I would like to click on pictures to enlarge, (slides).
I according jquerytools and fancybox the demo format output.
But the strange thing is that
The things we do not have a slide effect.
However, the output of the html copy ...
I would like to invite your considered opinion to help me decide between the following two origin policies for my Ajax app:
Load all my assets from HTTPS: //www.mydomain.com
Plus: Ajax is easy. No problems with Same Origin Policy.
Plus: PUT method offers large payloads.
Plus: Network error messages can be fed back to the user.
Minus:...
In our web application we have run into the situation where we need to do a cross-domain AJAX calls from one domain we fully control to another domain we fully control. I've been surfing around for the best solution and the two that come to mind are a local file proxy (local file using php::fopen) or jquery/JSONP.
When I look up online ...