Loading ...
Sorry, an error occurred while loading the content.

Re: [json] Announcing web_send: a browser shell for JSON resources

Expand Messages
  • Tyler Close
    ... Thanks! ... The implementation currently supports GET and POST to an arbitrary URL with an arbitrary JSON request entity and an arbitrary JSON response
    Message 1 of 3 , May 7, 2009
    • 0 Attachment
      On Thu, May 7, 2009 at 10:51 AM, Kris Zyp <kriszyp@...> wrote:
      > This looks really cool.

      Thanks!

      > Have you tried it with existing servers to see
      > how compatible it is with current implementations of HTTP/JSON servers?
      > This data interaction aspect of this looks similar to the functionality
      > in Dojo's JsonRestStore, which can interact with CouchDB and Persevere.
      > It'd be curious if your browser shell works with Persevere, as Persevere
      > follows RFC 2616 pretty closely as well as some of the RESTful JSON
      > conventions discussed here, such as JSON referencing:
      > http://groups.google.com/group/restful-json

      The implementation currently supports GET and POST to an arbitrary URL
      with an arbitrary JSON request entity and an arbitrary JSON response
      entity. Non-success HTTP response codes trigger the provided failure
      callback.

      Is there some aspect of Persevere's implementation of RFC 2616 that
      could be problematic for a client implemented on the browser's
      XMLHttpRequest object?

      All JSON encoding/decoding is done using whatever JSON object is in
      the global scope. It looks like you could use your JSON referencing
      code by importing it instead of json2.js.

      --Tyler

      --
      "Waterken News: Capability security on the Web"
      http://waterken.sourceforge.net/recent.html
    Your message has been successfully submitted and would be delivered to recipients shortly.