0 results found

tinymce.util.JSONRequest

Contribute to this page
Namespacetinymce.util
ClassJSONRequest

This class enables you to use JSON-RPC to call backend methods.

Example

Public Methods

MethodDefined 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

JSONRequest

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

Parameters

ParamDetail
s:ObjectOptional settings object.

send

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

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

sendRPC

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

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.