Avlesh
26, Male
Mumbai
|
|
|
What JsonRequest_is?
- JsonRequest is a Javascript framework which enables you to send
cross-domain requests from the client browser. Try now
- JsonRequest sits on top of browsers' implementation of the
<script>
tag. It basically allows you to perform a GET request as long
as the Content-Type of the response is application/x-javascript. The
framework allows you to silently eat-up the errors corresponding to a
non-javascript response or responses with HTTP Status-Codes 4xx or
5xx.
- JsonRequest framework also allows you to make
HEAD
requests first followed by the actual request for a resource.
- JsonRequest is your long
sought alternative to
XMLHttpRequest. JsonRequest has been created to
make your application span across domains with ease of transfer.
- You would enjoy using JsonRequest, if you wish to create a widget in
your application and distribute it to other sites.
What JsonRequest_is_not?
- JsonRequest is NOT a JSON library. Go here for the same - http://json.org/
- JsonRequest framework does NOT encode or decode the responses for
requests made using this framework.
- JsonRequest framework is NOT "equivalent" to XMLHttpRequest w.r.t
the content-type of the response. In XMLHttpRequest your
response can be of any
content-type (text, html, xml,
application/x-javascript ...) whereas JsonRequest restricts you to send only
application/x-javascript type data in response to the request.
|
|
|