JSONRequest is not defined?

Discussion in 'Javascript' started by SpreadTooThin, Nov 24, 2011.

  1. Is there something I need to do to the JSONRequest to be 'included'?
    Is this not some thing that is built into the browser?

    function getJSONfromUrl(sourceurl)
    try {
    JSONRequest.get(sourceurl, function(sn, response, exception){
    alert(exception || response);
    catch(e) {
    SpreadTooThin, Nov 24, 2011
    1. Advertisements

  2. SpreadTooThin

    Scott Sauyet Guest

    Check with where you copied your code. I believe there are several
    implementations, but I don't know the status on underlying browser

    No, it's not. It's a proposal created by the person who named and
    first promoted JSON, Douglas Crockford. You can find more at json.org

    -- Scott
    Scott Sauyet, Nov 24, 2011
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.