Hello,
I have test the following code:
- $.getJSON("api.php",
function(data){
alert(data.state);
}
);
the API contents the following:
new Object({ 'state' : 'starting' })
in firebug i see, that the file api.php is loaded and the content is the right.
But i dont get an alert with the state starting.
i have test a lot...header content type text/javascript application/json etc.
What is the error?
Thank you