Save Data during onLostFocus()
Save Data during onLostFocus()
andrewjustice03
Posts: 2Questions: 0Answers: 0
I am currently using DataTables 1.9.1
I would like to ask if it is possible to handle onLostFocus() event on DataTables.
What I need is:
* When I click a field, it will be editable (already working using jEditable)
* When I click somewhere else, like another field, or some parts of the page, or just "lost focus" on that field, I need to update the changes made by the user to the DB.
For now, using jEditable, I am able to modify the field and save it, only, when hitting "return".
Is there a way to modify this? Or can DataTable handle onLostFocus()?
Thanks!
I would like to ask if it is possible to handle onLostFocus() event on DataTables.
What I need is:
* When I click a field, it will be editable (already working using jEditable)
* When I click somewhere else, like another field, or some parts of the page, or just "lost focus" on that field, I need to update the changes made by the user to the DB.
For now, using jEditable, I am able to modify the field and save it, only, when hitting "return".
Is there a way to modify this? Or can DataTable handle onLostFocus()?
Thanks!
This discussion has been closed.
Replies
[quote]
Miscallenous options
Default action of when user clicks outside of editable area is to cancel edits. You can control this by setting onblur option. Possible values are:
(...)
onblur : submit Clicking outside editable area submits changes.
(...)
Event which starts editing the element can be controlled using option event. All jQuery events are available. Most usable ones are click and dblclick.[/quote]