Jsonp

Hi When I wants to have jsondata out of a view I just access it with “http://server.domain.com/names/($people)?readviewentries&outputformat=json&restricttocategory=K”.

BUT…

This seems not work with jsonp (with or without jquery) as I then would enter something like : “http://server.domain.com/names/($people)?readviewentries&outputformat=json&restricttocategory=K”&callback=?.

Is tere no support for jsonp or am I just stupid?

br mats

Subject: RE: Jsonp

As far as I know Domino doesn’t support JSONP.

Another way of doing this would be to write a Java proxy agent that fetches the JSON from the external site and sends it to your application. You can probably also do this using an XPage.

Mark

Subject: JSONP and Domino

JSONP is supported by Domino using JQuery. The way i have created the the JSONP array is to write an agent which responds like a web service. JQuery, when &callback=? is specified, generates a callback function name. The agent can read the querystring function name value as the name that JQuery assigned it. When you generate the return JS Array value, prepend the name of the function you retrieve from the QueryString. (i.e. func$ = Strrightback(qs,“callback=”)

  jsonStr = func$ + |({ JS_Array })|