JSON callback called in IE but not FireFox
Posted: Mon Sep 28, 2009 2:29 am
I am working on service that is using a JSON endpoint and I am providing it with a JavaScript callback function. The callback function is called in IE (8) but not in FireFox (3.5.3).
The source point to receive the callback is as follows in the body of the page:
The JSON URL with callback doStuff() is assigned to this source point as follows:
And using online HTTP viewer: http://www.httpviewer.net/, the JSON URL with callback doStuff() returns the following JavaScript code:
Ideas why the callback doStuff() is not getting called in FireFox?
Thanks
Jeff in Seattle
The source point to receive the callback is as follows in the body of the page:
Code: Select all
<script id="SearchCallback" type="text/javascript" src="">
</script>Code: Select all
document.getElementById("SearchCallback").src = json_url_w_callback;Code: Select all
if(typeof doStuff == 'function') doStuff( /* JSON Results */ );Thanks
Jeff in Seattle