javascript - Dojo: Get ID of inlineEditBox on OnChange -
I am using dojo and dijit and there is an inline editing box widget. I'm trying to capture an on-line event and send a key / value post to a PHP / page (to set it up in the database). The value is the new value presented, e.target.value is available from. this is easy.
I want the key value to be an inline edit box widget ID. How can I access that program? Since InlineEditBox is a widget, it is not best to monitor DOM level events, because
Instead Why not connect to InlineEditBox? For example:
& lt; Span dojoType = "dijit.InlineEditBox" ... & gt; & Lt; Script type = "dojo / connect" event = "on change" args = "value" & gt; Console.log (this.id + "Value changed" + value); & Lt; / Script & gt; & Lt; / Span & gt;
Comments
Post a Comment