See if this reply i made yesterday helps you out at all

http://groups.google.com/group/jquery-en/browse_thread/thread/1525b2d017246957?hl=en#




On Oct 23, 9:23 am, jayQuery <xaudio...@yahoo.co.uk> wrote:
> thanks for the reply, but it gave me an invalid label with my json,
> which as I've read before, can be "solved" by eval'ing it with the
> parenthesis:
> var myObj = eval( "(" + someJsonString + ")" );
>
> but after eval'ing, nothing happens (again), no alert :(
> In firebug I can see the json is there...
>
> > Both of these methods work fine for me:
>
> > $.getJSON('http://site1:8888/myjson.json?format=json&callback=?',
> > function(data) {
> >         alert(data.result);
>
> > });
>
> > $.ajax({
> >         url: 'http://site1:8888/myjson.json?format=json',
> >         dataType: 'jsonp',
> >         success: function(data) {
> >                 alert(data.result);
> >         }
>
> > });

Reply via email to