AjaxOptions Properties

Include Protected Members
Include Inherited Members

The AjaxOptions type exposes the following members.

Properties

  Name Description
Public property Confirm Gets or sets the message to display in a confirmation window before a request is submitted.
Public property HttpMethod Gets or sets the HTTP request method ("Get" or "Post").
Public property InsertionMode Gets or sets the mode that specifies how to insert the response into the target DOM element.
Public property LoadingElementDuration Gets or sets a value, in milliseconds, that controls the duration of the animation when showing or hiding the loading element.
Public property LoadingElementId Gets or sets the id attribute of an HTML element that is displayed while the Ajax function is loading.
Public property OnBegin Gets or sets the name of the JavaScript function to call immediately before the page is updated.
Public property OnComplete Gets or sets the JavaScript function to call when response data has been instantiated but before the page is updated.
Public property OnFailure Gets or sets the JavaScript function to call if the page update fails.
Public property OnSuccess Gets or sets the JavaScript function to call after the page is successfully updated.
Public property UpdateTargetId Gets or sets the ID of the DOM element to update by using the response from the server.
Public property Url Gets or sets the URL to make the request to.

Top

See Also

Reference

AjaxOptions Class

System.Web.Mvc.Ajax Namespace