Opened 14 years ago
Closed 14 years ago
#3283 closed enhancement (worksforme)
Widgets enhancing form fields should have an API to get the field name
Reported by: | guest | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Dijit | Version: | 0.9 |
Keywords: | form widget | Cc: | [email protected]… |
Blocked By: | Blocking: |
Description
I'm dealing with nested forms using div's and my own way of keeping track of the form fields. This is needed to be able to handle ajax stuff in a more flexible way (in UCW, a lisp based web framework).
But i couldn't find a way to get the field name from a widget wrapping a good old html form field (like Editor2 enhancing my textarea).
I'm looking for something similar to getValue(), but it should be getName() or getFieldName(). Or at least there should be a common way to access the DOM node that was used to instantiate a widget, so i could do something like widget.instantiatorNode.name
I hope I made sense, thanks for your time.
Change History (2)
comment:1 Changed 14 years ago by
Component: | General → Dijit |
---|---|
Owner: | changed from anonymous to bill |
comment:2 Changed 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Yeah, just dijit.byId("myWidget").name should tell you the name.
is just getting the name attribute sufficient? Do our new form fields preserve that?