Try this code:
$.getJSON("http://www.panoramio.com/map/get_panoramas.php?
order=popularity&set=public&from=0&to=20&minx=-180&miny=-90&maxx=180&maxy=90&size=medium&callback=?",
{},
function(data) {
$(data).each(function(i, item) {
alert($(this)[0].photos[i].photo_id);
its basically the panoramio url
given here
http://www.panoramio.com/api/
sample query :
http://www.panoramio.com/map/get_panoramas.php?order=popularity&set=public&from=0&to=20&minx=-180&miny=-90&maxx=180&maxy=90&size=medium
--
View this message in context:
http://www.nabble.com/jQuery.getJ
Can u paste the remote server url over here. I will try from my local
m/c. I tried the sample given on http://docs.jquery.com
/Ajax/jQuery.getJSON#urldatacallback and it works perfectly fine.
On Dec 29, 6:34 pm, buaziz wrote:
> the remoteServer is returning JSON data.
>
> --
> View this message
the remoteServer is returning JSON data.
--
View this message in context:
http://www.nabble.com/jQuery.getJSON-Current-Url-Prefixed-tp21201707s27240p21203328.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Is your http://remoteServer page a json file or is it returning a json
data?
buaziz wrote:
> hi am using jQuery.getJSON to request a cross-domain page using the following
> code
>
> jQuery.getJSON(crossDomainUrl, function(result) {
> processResult(result);
> });
>
>
> but i never r
5 matches
Mail list logo