Login Register

json-rpc

Bug in dojox.rpc.JsonRPC deserialize

[EDIT: This is more of a support question and less a development one, hence the move.]

Hello,

I think there's a bug in the deserialize function.

Here's the deserialize function:

            deserialize: function(obj){
                if(obj.error){
                    var e = new Error(obj.error);
                    e._rpcErrorObject = obj.error;
                    return e;
                }
                return obj.result || true;
            }

Zend Framework JSON-RPC service + dojo.data + dojox.grid?

I'm trying to figure out how to plug in a JSON-RPC service with a grid.

There doesn't seem to be a dojo.data store for json-rpc, however all the plumbing is there for doing the rpc calls. Anyone have suggestions on how to go about this?

My service controller (Zend Framework) looks something like this:

public function jsonAction ()
{
$server = new Zend_Json_Server();
$server->setClass("MyClass_RPC_" . $this->_getParam('class'));
$server->setAutoEmitResponse(true);
if ('GET' == $_SERVER['REQUEST_METHOD']) {

Syndicate content