Sorry to ask for this, I can't get it to work even when considering other issues ...
I have JSON output in "json.php", for example:
[ {"serverid":"1","servername":"Server One"}, {"serverid":"2","servername":"Server Two"} ]
I have a script to capture data and parse it in a variable
var servers; jQuery.get('json.php', function(data) { servers = JSON.parse(data); jQuery('#servers').servers.servername });
I have a div to output the results:
<div id="servers"></div>
No matter what I try, I always get some kind of
"Uncaught TypeError: Unable to read the error" server server name "undefined".
I would also like to see the results, however I cannot even print it.
Sorry again for another question like this
Alias source share