1.0.5 • Published 8 years ago
nl-ajax v1.0.5
Ajax
Ajax package for JSON responses.
Configuration
These are the default configuration values:
ajax.prefix = "";
ajax.authHeader = "AuthToken";
ajax.timeout = 10000;
ajax.networkErrorMessage = "A network error occured.";
ajax.internalErrorMessage = "An internal error occurred.";
ajax.requestTimeoutMessage = "The request timed out.";
ajax.invalidJSONMessage = "The response was not valid JSON.";
ajax.forbiddenMessage = "Access denied.";
If your ajax requests require an authentication token, you must set that too:
ajax.authToken = "GKFIDUFYT7843/IEHFJ4==.JDHY8374YEU827Y348EIJ3WDC=.KAJDS82/8E9WCSY7BDSGXJHFALSDHF9==";