flexygo.ajax Class
Class for post and syncpost
Methods
post
(
-
url -
method -
params -
successFunction -
errorFunction -
completeFunction -
beforeFunction
Method to call AJAX functions.
Parameters:
-
urlString- The url of the service.
-
methodString- POST or GET.
-
paramsString- Params sent to service.
-
successFunctionString- Callback function to successfully state.
-
errorFunctionString- Callback function to error state.
-
completeFunctionString- function to run when ajax call has finished with or without error.
-
beforeFunctionString- function to run before ajax call.
syncPost
(
-
url -
method -
params -
successFunction -
errorFunction -
completeFunction -
beforeFunction
Method to call AJAX sync functions.
Parameters:
-
urlString- The url of the service.
-
methodString- POST or GET.
-
paramsString- Params sent to service.
-
successFunctionString- Callback function to successfully state.
-
errorFunctionString- Callback function to error state.
-
completeFunctionString- function to run when ajax call has finished with or without error.
-
beforeFunctionString- function to run before ajax call.