API Docs for: 2.7.3
Show:

API.utils Class

Module: API
Parent Module: Wanaplan

API utilities.

Constructor

API.utils

()

Item Index

Methods

Methods

ajax

(
  • options
)

Ajax method to get or post data.

Parameters:

  • options Object

    A set of options

    • url: The url to call.
    • data: The data to send.
    • method: The method to use (GET, POST, PUT).
    • success: A function to call when the operation is completed with the response in parameter.
    • error: A function to call if the operation fails.