Društvo LJUDMILA
Rozmanova ulica 12
1000 Ljubljana
Slovenia
Prostori: osmo/za

Dojo Widgets/Form

< Dojo Widgets

summary

Widget for easily moving data to/from form

description

gets and sets data to and from js-object. With this it's easy to create forms to application. Just create empty form, then set it's values with this and after user pushes submit, getValues and send them as json-notation to server.

Note: not all Form widgets are supported ATM

usage

<form dojoType="Form" id="myForm">
  Name: <input type="text" name="name" />
</form>
myObj={name: "John Doe"};
dojo.widget.byId('myForm').setValues(myObj);
myObj=dojo.widget.byId('myForm').getValues();