Class Qww.Services.SimpleDataStorage
JavaScript class to wrapper QWWService.ashx simple data storage service and provide
a simple interface for setting and retrieving values.
Defined in: <JavaScript\QWW\QwwJs_Service.js>.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Constructs a new Qww.Services.SimpleDataStorage instance.
|
| Method Attributes | Method Name and Description |
|---|---|
|
GetValue(key, onCompleteHandler)
Method to call to retrieve a data item from the server.
|
|
|
SetValue(key, value, onCompleteHandler)
Method to call to retrieve a data item from the server.
|
Class Detail
Qww.Services.SimpleDataStorage(url)
Constructs a new Qww.Services.SimpleDataStorage instance.
- Parameters:
- {String} url Optional, Default: "QWWService.ashx"
- URL of backend http handler. This is configured in the web.connfig file for the application and is normally set to QWWService.ashx.
Method Detail
GetValue(key, onCompleteHandler)
Method to call to retrieve a data item from the server.
- Parameters:
- {String} key
- Key which data is associated with.
- {Function} onCompleteHandler Optional
- Function to run when service returns with result. Function should accept (response, status) arguments. NOTE if this argument is not supplied the request will run synchronously and return the response.
SetValue(key, value, onCompleteHandler)
Method to call to retrieve a data item from the server.
- Parameters:
- {String} key
- Key which data is associated with.
- {String} value
- Value to associate with key.
- {Function} onCompleteHandler Optional
- Function to run when service returns with result. Function should accept (response, status) arguments. NOTE if this argument is not supplied the request will run synchronously and return the response.
