tinymce.util.JSONRequest

Namespace tinymce.util
Class JSONRequest
This class enables you to use JSON-RPC to call backend methods.

Example

Public Methods

Method Defined By
JSONRequest(s:Object)
Constructs a new JSONRequest instance.
JSONRequest
send(o:Object):void
Sends a JSON-RPC call.
JSONRequest
sendRPC(o:Object):void
[static] Simple helper function to send a JSON-RPC request without the need to initialize an object.
JSONRequest

Method details

JSONRequestconstructor

public function JSONRequest(s:Object)
Constructs a new JSONRequest instance.

Parameters

s:Object Optional settings object.

sendmethod

public function send(o:Object):void
Sends a JSON-RPC call. Consult the Wiki API documentation for more details on what you can pass to this function.

Parameters

o:Object Call object where there are three field id, method and params this object should also contain callbacks etc.

sendRPCmethod

public static function sendRPC(o:Object):void
Simple helper function to send a JSON-RPC request without the need to initialize an object. Consult the Wiki API documentation for more details on what you can pass to this function.

Parameters

o:Object Call object where there are three field id, method and params this object should also contain callbacks etc.