Class: $wk$.vclsd.service.WKcService

WKcService

new WKcService() → {Object}

WKcService objects can be used to exchange data with external data servers.
Source:
Returns:
A new service object.
Type
Object

Methods

ajax()

Asynchronosly exchanges data with an external data server.
Parameters:
Name Type Argument Default Description
p_args.url String The URL of the external data source.
p_args.requestMethod String <optional>
"get" The request method: "get" oder "post" oder head.
p_args.synchronous String <optional>
false Indicates, whether the data is exchaned synchronously or asynchronously.
p_args.timeout Number <optional>
0
p_args.responseType String <optional>
'text' The type of the data to be loaded.
p_args.dataIn String <optional>
this.data A data object into which the result data is to be put.
p_args.attrIn String <optional>
null The attribute of the data object into which the result data is put.
p_args.dataOutHeader String <optional>
null A data object that contains the key/value pairs that are to be sent to the server.
p_args.dataOut String <optional>
null A data object that contains the data that is to be send to the server.
p_args.attrOut String <optional>
null The attribute of the data object taht contains the data that is to be send to the server.
p_args.p_event String <optional>
$E$.DATA_CHANGED The event type signaled by dataIn after it has been changed.
Source:
Fires:
  • $E$.event:AJAX_START
  • $E$.event:PROGRESS
  • $E$.event:ABORT
  • $E$.event:ERROR
  • $E$.event:LOAD
  • $E$.event:TIMEOUT
  • $E$.event:AJAX_END

data(p_data)

Sets the data object where the service shall save the data read by default.
Parameters:
Name Type Description
p_data $wk$.vclsd.data.WKcData A data object.
Source:
W. Kowarschick © 2013 (CC BY-NC-SA 3.0: http://creativecommons.org/licenses/by-nc-sa/3.0/)
Documentation generated by JSDoc 3.2.0 on Tue Sep 24 2013 13:48:32 GMT+0200 (MESZ) using the DocStrap template.