You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,18 @@ No special markup is needed, just a normal form. Submitting a form with AJAX do
9
9
10
10
##API
11
11
12
+
###jqXHR
13
+
The jqXHR object is stored in element <em>data</em>-cache with the <code>jqxhr</code> key after each <code>ajaxSubmit</code>
14
+
call. It can be accessed like this:
15
+
````javascript
16
+
var form =$('#myForm').ajaxSubmit({ /* options */ });
17
+
var xhr =form.data('jqxhr');
18
+
19
+
xhr.done(function() {
20
+
...
21
+
});
22
+
````
23
+
12
24
###ajaxForm( options )
13
25
Prepares a form to be submitted via AJAX by adding all of the necessary event listeners. It does **not** submit the form. Use `ajaxForm` in your document's `ready` function to prepare existing forms for AJAX submission, or with the `delegation` option to handle forms not yet added to the DOM.
14
26
Use ajaxForm when you want the plugin to manage all the event binding for you.
0 commit comments