2 * Ext JS Library 2.2.1
\r
3 * Copyright(c) 2006-2009, Ext JS, LLC.
\r
4 * licensing@extjs.com
\r
6 * http://extjs.com/license
\r
9 Ext.onReady(function(){
\r
11 Ext.QuickTips.init();
\r
13 // turn on validation errors beside the field globally
\r
14 Ext.form.Field.prototype.msgTarget = 'side';
\r
16 var bd = Ext.getBody();
\r
18 bd.createChild({tag: 'h2', html: 'Dutch Form'})
\r
21 var simple = new Ext.FormPanel({
\r
22 labelWidth: 100, // label settings here cascade unless overridden
\r
23 url:'save-form.php',
\r
25 title: 'Contact Informatie (Dutch)',
\r
26 bodyStyle:'padding:5px 5px 0',
\r
28 defaults: {width: 220},
\r
29 defaultType: 'textfield',
\r
32 fieldLabel: 'Voornaam',
\r
36 fieldLabel: 'Achternaam',
\r
39 fieldLabel: 'Tussenvoegsel',
\r
41 name: 'tussenvoegsel'
\r
43 fieldLabel: 'Bedrijf',
\r
45 }, new Ext.form.ComboBox({
\r
46 fieldLabel: 'Provincie',
\r
47 hiddenName: 'state',
\r
48 store: new Ext.data.SimpleStore({
\r
49 fields: ['provincie'],
\r
50 data : Ext.exampledata.dutch_provinces // from dutch-provinces.js
\r
52 displayField: 'provincie',
\r
55 triggerAction: 'all',
\r
56 emptyText:'Kies een provincie...',
\r
60 fieldLabel: 'E-mail',
\r
63 }, new Ext.form.DateField({
\r
64 fieldLabel: 'Geb. Datum',
\r
76 simple.render(document.body);
\r