APIs

Show:

Class for post and syncpost

Item Index

Methods

Methods

post

(
  • url
  • method
  • params
  • successFunction
  • errorFunction
  • completeFunction
  • beforeFunction
)

Method to call AJAX functions.

Parameters:

  • url String
    • The url of the service.
  • method String
    • POST or GET.
  • params String
    • Params sent to service.
  • successFunction String
    • Callback function to successfully state.
  • errorFunction String
    • Callback function to error state.
  • completeFunction String
    • function to run when ajax call has finished with or without error.
  • beforeFunction String
    • function to run before ajax call.

syncPost

(
  • url
  • method
  • params
  • successFunction
  • errorFunction
  • completeFunction
  • beforeFunction
)

Method to call AJAX sync functions.

Parameters:

  • url String
    • The url of the service.
  • method String
    • POST or GET.
  • params String
    • Params sent to service.
  • successFunction String
    • Callback function to successfully state.
  • errorFunction String
    • Callback function to error state.
  • completeFunction String
    • function to run when ajax call has finished with or without error.
  • beforeFunction String
    • function to run before ajax call.