Re: JSON-RPC support

2014-01-30 Thread Ichiro Furusato
Hi Dirk, I'm sure it'll take me awhile to figure this out, but thanks very much for the pointers -- exactly what I was looking for! Cheers, Ichiro On Fri, Jan 31, 2014 at 11:11 AM, Dirk Frederickx wrote: > Hi Ichiro, > > Here are a few quick pointers, hope it can help your investigation. >

Re: JSON-RPC support

2014-01-30 Thread Dirk Frederickx
Hi Ichiro, Here are a few quick pointers, hope it can help your investigation. The jsonrpc invocation javascript is located in jspwiki-common.js, around line 400+ {{{ $jsonid : 1, jsonrpc: function(method, params, fn) { new Ajax( Wiki.JsonUrl, { postBody: Json.toString({"id":Wiki.$jsonid++,

JSON-RPC support

2014-01-30 Thread Ichiro Furusato
Hi, I'm digging into an AJAX-related project that in theory should be using the org.apache.wiki.rpc.json.JSONRPCManager to register the callback used in JavaScript (i.e., via requestJSON(WikiContext)). This obviously is working as the search popup uses it, but the existing code seems broken. The