Many Thanks @ All.
Now it works and i have understood it! :)

And the JSON validator is now in the favs. ;)

On 2 Okt., 01:02, Colossus <david.stoffe...@googlemail.com> wrote:
> h...@all.
>
> I have a little problem with JQuery and JSON, because it's my first
> JSON testing Project.
>
> In the documentation i found this:http://docs.jquery.com/Ajax/jQuery.getJSON
> But i do not understand how it works with an JSON array. :( It's an
> other JSON structure then mine.
> I simply want to play around with it. And trying to load some images
> in a img src tag. ;)
>
> My jQuery Function is:
>         $.getJSON("index.php?action=JSON_directory",
>         function(data){
>           // and this is my prob, see my php result.
>           });
>         });
>
> php JSON (encoded) Result:
> ["\/uploads\/Argentina.gif","\/uploads\/Australia.gif","\/uploads\/
> Brazil.gif","\/uploads\/Cameroon.gif"]
>
> Hope anyone can help a lame dog over a stile. ;)
>
> Many THX. :)

Reply via email to