Hi there,
I'm in the process of building a gallery but i am consistently having issues with using makeRequest trying to parse a json document. I have stripped out all unnecessary code from my app but even with this core i'm getting constant 500 server errors. I hav eset up obj checks to confirm the errors:
obj.text = undefined
obj.errorCode = internalError
obj.errorMessage = The operation has timed out
I have included my bare-bones app content below. I have two urls in there the request to the json feed on my server "http://www.thewoom.co.uk/bbc/mscdn/radio1/5532.json" works perfectly fine but the call to the BBC url "http://www.bbc.co.uk/radio1/photos/chrismoyles/5532.json" gives me the errors listed above every time. Any help on this would be greatly appreciated:
////////////////////// Begin app src /////////////////////////////////////////////////
<div id="content_div"></div>
<script type="text/javascript">
// Request Function
function makeJSONRequest() {
var params = {};
params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON;
var url = "http://www.bbc.co.uk/radio1/photos/chrismoyles/5532.json";
//var url = "http://www.thewoom.co.uk/bbc/mscdn/radio1/5532.json";
gadgets.io.makeRequest(url, response, params);
};
// Response
function response(obj) {
var html = obj.text + "<br /><br />";
html += obj.errorCode + "<br />";
html += obj.errorMessage;
document.getElementById('content_div').innerHTML = html;
};
// Call request function
makeJSONRequest();
</script>
////////////////////// End app src /////////////////////////////////////////////////