This namespace contains the functionality for AJAX calls.
- Source:
Methods
-
(static) ContentUpdate($ElementToUpdate, URL, Callback) → {Object}
-
Calls an URL via Ajax and updates a html element with the answer html of the server.
Parameters:
Name Type Description $ElementToUpdatejQueryObject The jQuery object of the element(s) which should be updated URLString The URL which is called via Ajax Callbackfunction The additional callback function which is called after the request returned from the server - Source:
Returns:
The jqXHR object.- Type
- Object
-
(static) FormUpdate($EventElement, Subaction, ChangedElement, FieldsToUpdate, SuccessCallbackopt) → {Object}
-
Submits a special form via ajax and updates the form with the data returned from the server
Parameters:
Name Type Attributes Description $EventElementjQueryObject The jQuery object of the element(s) which are included in the form that should be submitted. SubactionString The subaction parameter for the perl module. ChangedElementString The name of the element which was changed by the user. FieldsToUpdateObject DEPRECATED. This used to be the names of the fields that should be updated with the server answer, but is not needed any more and will be removed in a future version of OTRS. SuccessCallbackfunction <optional>
Callback function to be executed on AJAX success (optional). - Source:
Returns:
The jqXHR object.- Type
- Object
-
(static) FunctionCall(URL, Data, Callback, DataTypeopt) → {Object}
-
Calls an URL via Ajax and executes a given function after the request returned from the server.
Parameters:
Name Type Attributes Default Description URLString The URL which is called via Ajax. DataObject The data hash or data query string. Callbackfunction The callback function which is called after the request returned from the server. DataTypeString <optional>
json Defines the datatype, default 'json', could also be 'html' - Source:
Returns:
The jqXHR object.- Type
- Object
-
(static) SerializeForm($Element, Ignoreopt) → {String}
-
Serializes the form data into a query string.
Parameters:
Name Type Attributes Description $ElementjQueryObject The jQuery object of the form or any element within this form that should be serialized IgnoreObject <optional>
Elements (Keys) which should not be included in the serialized form string (optional) - Source:
Returns:
The query string.- Type
- String