Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Works for me on Google Chrome v5.0.375.127 (I get the alert):</p> <pre><code>$.get('http://www.panoramio.com/wapi/data/get_photos?v=1&amp;key=dummykey&amp;tag=test&amp;offset=0&amp;length=20&amp;callback=?&amp;minx=-30&amp;miny=0&amp;maxx=0&amp;maxy=150', function(json) { alert(json.photos[1].photoUrl); }); </code></pre> <p>Also I would recommend you using the <a href="http://api.jquery.com/jQuery.getJSON/" rel="noreferrer"><code>$.getJSON()</code></a> method instead as the previous doesn't work on IE8 (at least on my machine):</p> <pre><code>$.getJSON('http://www.panoramio.com/wapi/data/get_photos?v=1&amp;key=dummykey&amp;tag=test&amp;offset=0&amp;length=20&amp;callback=?&amp;minx=-30&amp;miny=0&amp;maxx=0&amp;maxy=150', function(json) { alert(json.photos[1].photoUrl); }); </code></pre> <p>You may try it <a href="http://jsfiddle.net/ZfvKm/2/" rel="noreferrer">online from here</a>.</p> <hr> <p>UPDATE:</p> <p>Now that you have shown your code I can see the problem with it. You are having both an anonymous function and inline function but both will be called <code>processImages</code>. That's how jQuery's JSONP support works. Notice how I am defining the <code>callback=?</code> so that you can use an anonymous function. You may read more <a href="http://api.jquery.com/jQuery.getJSON/" rel="noreferrer">about it in the documentation</a>.</p> <p>Another remark is that you shouldn't call eval. The parameter passed to your anonymous function will already be parsed into JSON by jQuery.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload