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) {
    alert(e);
    }
    }
    SpreadTooThin, Nov 24, 2011
    #1
    1. Advertising

  2. SpreadTooThin

    Scott Sauyet Guest

    SpreadTooThin wrote:
    > Is there something I need to do to the JSONRequest to be 'included'?


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


    > Is this not some thing that is built into the 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
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Oodini
    Replies:
    1
    Views:
    1,762
    Keith Thompson
    Sep 27, 2005
  2. Angel Tsankov
    Replies:
    1
    Views:
    863
    Victor Bazarov
    Apr 5, 2006
  3. Replies:
    1
    Views:
    492
    Sion Arrowsmith
    Jul 10, 2008
  4. Keith Thompson

    Re: __STDC_IEC_559__ (defined or !defined ?)

    Keith Thompson, Aug 17, 2010, in forum: C Programming
    Replies:
    0
    Views:
    440
    Keith Thompson
    Aug 17, 2010
  5. Alok
    Replies:
    3
    Views:
    246
Loading...

Share This Page