Revision c00f1e29
Von Moritz Bunkus vor etwa 11 Jahren hinzugefügt
js/kivi.js | ||
---|---|---|
38 | 38 |
}); |
39 | 39 |
}; |
40 | 40 |
|
41 |
ns.submit_ajax_form = function(url, form_selector, additional_data) { |
|
42 |
$(form_selector).ajaxSubmit({ |
|
43 |
url: url, |
|
44 |
data: additional_data, |
|
45 |
success: ns.eval_json_result |
|
46 |
}); |
|
47 |
|
|
48 |
return true; |
|
49 |
}; |
|
50 |
|
|
41 | 51 |
// Return a function object by its name (a string). Works both with |
42 | 52 |
// global functions (e.g. "check_right_date_format") and those in |
43 | 53 |
// namespaces (e.g. "kivi.t8"). |
Auch abrufbar als: Unified diff
ClientJS: AJAX-Form-Submit mit jQuery-Form-Plugin