JSONRequest is not defined?

S

SpreadTooThin

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);
}
}
 
S

Scott Sauyet

SpreadTooThin said:
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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,835
Latest member
KetoRushACVBuy

Latest Threads

Top