Members
(static) AJAX
 - (string) type - set to html.ServiceType.AJAX 
- (string) url - the URL of the server-side service handler 
- (string) method - the HTTP method to be used 
- (boolean) async - [optional] whether to send HTTP request synchronously or asynchronously (default async = true) 
- (string) user - [optional] user performing the action 
- (string) password - [optional] user's password 
- (Object) headers - [optional] request headers to add to the HTTP request using setRequestHeader method
- (Function) beforeSend - [optional] function that modifies the request prior to sending (request would be provided to it as an argument)
Example
Example of ServiceType.AJAX service
services.register('myAjaxService', {
    type: html.ServiceType.AJAX,
    url: 'services/service-x',
    method: 'post',
    headers: {
        'Cache-Control' : 'no-cache'
    },
    beforeSend: function(xHttpReq){
        xHttpReq.setRequestHeader('Keep-Alive', '300');
    }
});(static) AJAX_JQUERY
Example
Example of jQuery AJAX service
services.register('myJQueryService', {
    type: html.ServiceType.AJAX_JQUERY,
    // the type is followed by jQuery-specific properties of the 'settings' object
    // dataType: 'json' is assumed
    url: "some.php",
    method: "POST",
    accepts: {
        mycustomtype: 'application/x-some-custom-type'
    }
});(static) AJAX_URL_ENCODED
 - (string) type - set to html.ServiceType.AJAX_URL_ENCODED 
- (string) url - the URL of the server-side service handler 
- (string) method - the HTTP method to be used 
- (boolean) async - [optional] whether to send HTTP request synchronously or asynchronously (default async = true) 
- (string) user - [optional] user performing the action 
- (string) password - [optional] user's password 
- (Object) headers - [optional] request headers to add to the HTTP request using setRequestHeader method
- (Function) beforeSend - [optional] function that modifies the request prior to sending (request would be provided to it as an argument)