[jQuery] problem with jquery-ajax

[jQuery] problem with jquery-ajax


Hi,
I am using the zend framework and using the JQuery - $.getJSON for
this. I am sending a request but I am not getting a response.I tried
an example that somebody has given in this forum - that works..only my
url does not work..I am pasting the code here.
For the action -
public function freepaidverAction(){
     $data = 'name : hello world';
echo $_GET['jsoncallback'] . '(' . $data . ');';
}
In the js file -
                 $.getJSON("http://sys8/ShareThePage/freepaidver?
modName=ShareThePage&userName="+userId_STP,
                     {},
                     function(data) {
                         alert('in this');
                     $(data).each(function(i, item) {
                     alert($(this)[0].photos[i].photo_id);
                     })
                     }
                    );
If I use this url then it works - "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=?"