Utilities

You can use the following utilities in your script:

Unless otherwise indicated, each utility includes both a success and a failure callback attribute.

AttributeTypeDescriptionRequired
CallbackSuccessfunctionA function called when the request succeeds. Specify a response object using the following fields:
  • responseText: A text message or a serialized JSON string
  • form: (Optional) An object representing the form data. Use this when the content type of the response is Multipart or FormData.
    yes
    CallBackFailfunctionA function called when the request fails. Specify a response object, including the following fields:
    • responseText: A text message or a serialized JSON string
    • form: (Optional) An object representing the form data. Use this when the content type of the response is Multipart or FormData.
    yes