ssCore.Scratch.write

Write the specified data to the scratch area in your application.


Availability:

First available in version 3.3 build 120.


Input Parameters:

data - Data to be written to the scratch area.

secure - [Optional] - A boolean value that indicates whether to use secure writes or not. Valid values include: true and false. Default value is true.

binary - [Optional] - A boolean value that indicates whether the data to be written is in binary (hex string) foramt or not. Valid values include: true and false. Default value is false.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.Scratch.write( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.Scratch.write( paramsObject );


Notes:

None.


Examples:

ssCore.Scratch.write({data:"store this data in the scratch area"});