Hi
I'm using an asset lister to make a json object from the assetids of the standard pages under a nominated root node. The result page of the asset lister returns the correct values:
{{"assetid":"134732"}, {"assetid":"134733"}, {"assetid":"146018"}, {"assetid":"146039"}, {"assetid":"146040"}, {"assetid":"146049"}, {"assetid":"146050"}, {"assetid":"146017"}}
but when I try to get these values returned from a jQuery getJSON call, it fails. My code is as follows:
var getURL = "./?a=138204"; // Retrieve standard page assetids from asset lister (json format) $.getJSON(getURL, function( data ){ $.each(data, function(key, val){ $('#listing').append(val + "");
console.log(val); }); }) .error(function( ) { console.log("error"); });
I've checked permissions, and the page is accessible to public read. I've run out of ideas. Anyone?