Yes thanks David, I just had read about this, and found this one for
Prototype http://www.dandean.com/jsonp-for-prototypejs/ and the js
file is in http://www.dandean.com/jsonp-for-prototypejs/src/jsonp.js
this let you make cross domain calls, (at least is what he is saying)
Im going to try in a few seconds.
Jquery have JSONP include it into there core options, do you know if
exist any intent to have it in prototype core'???.
this is the example in jquery.
$.getJSON('ajax/test.json', function(data) {
$('.result').html('<p>' + data.foo + '</p>'
+ '<p>' + data.baz[1] + '</p>');
});
thanks long live to prototype =)
On Jun 24, 12:53 pm, David Behler <[email protected]> wrote:
> Hi Nahum,
>
> as far as I know Firefox does not allow for cross-domain AJAX requests.
>
> What you could to is to request a php file on your server and that php
> file does the call to the Flickr API.
>
> David
>
> Am 24.06.2010 19:47, schrieb ncubica:
>
>
>
> > Hi every body I have a weird issue I been working with the Flickr API,
> > in Flickr for make a connection with the server is through url format
> > in my case something like this
>
> >http://api.flickr.com/services/rest/?method=flickr.photosets.getList&...
>
> > If your run into any browser you are going to get a flickr function
> > and is ok, but Im trying to obtain with Ajax Im doing something like
>
> > new Ajax.Request('http://api.flickr.com/services/rest/?
> > method=flickr.photosets.getList&api_key=10cb3dccaa050efebdc01540c1d4d227&us
> > er_id=51390...@n07&format=json',
> > {
> > method:'get',
> > onSuccess: function(transport){
> > debugger;
> > var response = transport.responseText || "no response text";
> > alert("Success! \n\n" + response);
> > },
> > onFailure: function(){ alert('Something went wrong...') }
> > });
>
> > And is working good in IE the response have what you can see in the
> > url of flickr but in Firefox I dont know why Im getting in the
> > responseText a blank string "". does any have any clue what am I doing
> > wrong?
>
> > Thanks
> > Nahum
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.