securityPermissionDenied

Description

This event is executed if an Ajax callback returns with a 403 status code.

Discussion

If the server sends back a '403' status code in the response, the securitypermissionDenied event will fire. To use this event, you must set the Security permission denied action property in the Other section of the UX properties to Fire client-side security events.

The UX client-side event name is securityPermissionDenied (singular). Some older versions of this page may incorrectly use securityPermissionsDenied (plural). Please update references to the singular form to match the event exposed in the UX Builder.
You can manually set the status code in an Ajax response (for example, if you want to test the events), by setting the Context.Response.StatusCode property in the Xbasic function that handles the Ajax callback. See How to Return Status Codes from Ajax Callbacks for more information.

See Also