Class Index | File Index

Classes


Function Namespace JXG.Server

JXG.Server namespace holding functions to load JXG server modules.
Defined in: Server.js.

Function Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
JXG.Server.callServer(action, callback, data, sync)
The main method of JXG.Server.
<static>  
JXG.Server.handleError(data)
Handles errors, just a default implementation, can be overwritten by you, if you want to handle errors by yourself.
<static>  
JXG.Server.loadModule(module)
Loads a module from the server.
<static>  
JXG.Server.loadModule_cb(data)
Callback for the default action 'load'.
Function Namespace Detail
JXG.Server()
Method Detail
<static> JXG.Server.callServer(action, callback, data, sync)
The main method of JXG.Server. Actually makes the calls to the server and parses the feedback.
Parameters:
{string} action
Can be 'load' or 'exec'.
{function} callback
Function pointer or anonymous function which takes as it's only argument an object containing the data from the server. The fields of this object depend on the reply of the server module. See the correspondings server module readme.
{object} data
What is to be sent to the server.
{boolean} sync
If the call should be synchronous or not.

<static> JXG.Server.handleError(data)
Handles errors, just a default implementation, can be overwritten by you, if you want to handle errors by yourself.
Parameters:
{object} data
An object holding a field of type string named message handling the error described in the message string.

<static> JXG.Server.loadModule(module)
Loads a module from the server.
Parameters:
{string} module
A string containing the module. Has to match the filename of the Python module on the server exactly including lower and upper case letters without the file ending .py.

<static> JXG.Server.loadModule_cb(data)
Callback for the default action 'load'.
Parameters:
data

Documentation generated by JsDoc Toolkit 2.4.0 on Sat Mar 22 2014 12:02:46 GMT-0000 (UTC)