• Permit jsonp requests by adding callback parameter

    By Philip Warner 1 decade ago

    I'd like to use jsonp to access the domino data service from another domain. Could you add a callback parameter in an upcoming release to allow the response to be wrapped in the function name of the caller's choosing please?

    • We'll investigate ...

      By Dave Delay 1 decade ago

      Philip,

       

      This sounds easy enough.  I can't make any guarantees, but we can investigate.  Just to be clear on the implementation, a data service request URL looks something like this:

       

      http://{host}/{database}/api/data/collections

       

      For this particular request, we return a list of views and folder like:

       

      [ {...}, {...} ]

       

      You are asking us to add a JSONP callback parameter like this:

       

      http://{host}/{database}/api/data/collections?jsonp=handleResponse

       

      And we would return this instead:

       

      handleResponse( [ {...}, {...} ] );

       

      And of course, you want us to support the jsonp parameter for all data service requests.  Is that what you are looking for?

       

      -- Dave Delay

      • That's a perfect interpretation of the request... thanks Dave <eom>

        By Philip Warner 1 decade ago