statechange
|
No, Data accessible via History.getState()
|
This event triggers on History API History.pushState() , other words - then: document.location.href (url) is changed. History.getState() object contents:
url - string | URL
data.query - string / JSON | POST-data
data.load_element - string | loader output element ID
data.out_element - string | Element ID to output AJAX request response
data.msg - string | Confirmation before send AJAX request | Text for alert() message
data.appnd - true / false / prepend | Prepend or append AJAX response to element ID defined in data.out_element
data.rstr - true / false | Restore element defined in data.load_element after AJAX request is done
data.enc - true / false | Encode POST-data defined in data.query
data.callback - string / function | Callback function, triggers after AJAX request is successfully done
data.caching - true / false | JS-cache for this request
data.replace - true / false | Replace element with ID defined in data.out_element property by AJAX response
|
beforeSendAjax
|
No
|
This event triggers right before AJAX request will be sent.
To control AJAX event we're recommend to use built-into jQuery events:
ajaxStart ajaxComplete ajaxStop
|
loadingFormCacheStart
|
true / false - extraParameters defines if responce outputs from cache
|
If extraParameters is true this event triggers right before output content from cache. If extraParameters is false this event triggers right before send AJAX request.
|
loadingFormCacheStop
|
true / false - extraParameters defines if responce outputs from cache
|
This event triggers rigth after elements placed into DOM.
|
beforePushState
|
No
|
This event triggers rigth before History.pushState() .
|
abortPushState
|
true / false - extraParameters used to abort History.pushState()
|
This event triggers and bound right before trigger beforePushState event and if you will pass true / false as extraParameters you may prevent or force History.pushState() .
|
abortSendAjax
|
true / false - extraParameters used to abort AJAX request
|
This event is not triggered in Indira.js but we're listen for it's extraParameters right before proceed to send AJAX request and if you will pass true / false you may prevent or force AJAX request.
|