nette.ajax.js – získání aktuálního formuláře

před rokem

jirik.mik
Člen | 1
+
0
-

Zdravím,

prosím poraďte, jak získat element formuláře, který byl odeslán (submitted). Hodilo by se mi to v extension na při startu ajax požadavku.

Děkuji.

před rokem

Felix
Nette Core | 912
+
0
-

Podle dokumentace:

name arguments description
init Called just once during $.nette.init(); call.  
load requestHandler Should contain ajaxification. requestHandler can be bound to UI events to initiate AJAX request.
before jqXHR, settings Called immediatelly before AJAX request execution. If FALSE is returned, request won't start.
start jqXHR, settings Called immediatelly after start of AJAX request.
success payload, status, jqXHR, settings Called after successful completion of AJAX request. Equivalent to $.ajax( … ).done( …
complete jqXHR, status, settings Called after every AJAX request completion. Equivalent to $.ajax( … ).always( …
error jqXHR, status, error, settings Called in case of failure of AJAX request. Equivalent to $.ajax( … ).fail( …

Bych zkusil dumpnout promennout settings a tam by mohl byt klic form.