www.webdeveloper.com
Results 1 to 2 of 2

Thread: JSON callback works in IE but not FireFox

  1. #1
    Join Date
    Sep 2009
    Posts
    9

    JSON callback works in IE but not FireFox

    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:
    Code:
    <script id="SearchCallback" type="text/javascript" src="">
    </script>
    The JSON URL with callback doStuff
    Code:
    document.getElementById("SearchCallback").src = json_url_w_callback;
    And using online HTTP viewer: http://www.httpviewer.net/, the JSON URL with callback doStuff returns the following JavaScript code:
    Code:
    if(typeof doStuff == 'function') doStuff( /* JSON Results */ );
    Ideas why the callback doStuff is not getting called in FireFox?

    Thanks

    Jeff in Seattle

  2. #2
    Join Date
    Sep 2009
    Posts
    9
    {clarifying incomplete sentence} The JSON URL with callback doStuff() is assigned to this source point as follows:
    Code:
    document.getElementById("SearchCallback").src = json_url_w_callback;

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles