Changeset 1890
- Timestamp:
- 2011-04-19 09:54:25 (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samples/kauri-forms-sample/src/main/kauri/pages/selection-control.html.xml
r1830 r1890 8 8 <t:superBlock/> 9 9 10 <script >10 <script type="text/javascript"> 11 11 var fconf = { 12 12 "members": { … … 173 173 174 174 var theform = new jQuery.org.kauriproject.forms.Form("form", fconf); 175 theform. findControl('digits').setWireValue([1,2]);175 theform.setWireValue({carMake:"2", carModel:"Espace"}); 176 176 /* 177 177 theform.findControl('carMake').setWireValue("2"); 178 178 theform.findControl('carModel').setWireValue("Espace"); 179 179 */ 180 theform.setWireValue({carMake:"2", carModel:"Espace"}); 181 180 181 theform.findControl('digits').setWireValue([1,2]); 182 182 var alldigits = [1,2,3,4,5,6,7,8,9,0]; 183 183 184 184 $("#digits_addOption").click(function() { 185 var ctrl = theform.findControl('/digits/1'); 185 var ctrl = theform.findControl('/digits/0'); 186 if (ctrl == undefined) return; 187 186 188 var opts = ctrl.options; 187 189 // note: we are sure that at least one child is there,
Note: See TracChangeset
for help on using the changeset viewer.