PDA

View Full Version : Modal form, how could I set that on my popup?



andredecotia
14 Sep 2010, 5:07 AM
Hey guys,
could anybody else help me with Modal Form?

I thought that was automatic when any form's field was blank withoud data...

Condor
14 Sep 2010, 6:01 AM
You'll have to explain better...

andredecotia
14 Sep 2010, 6:45 AM
Hi Condor, are you all right?

Man, I would use the thing that blocks the for exemple OK button if you don't fill out the field... When are filled out the button is activate... Got it?

Condor
14 Sep 2010, 6:57 AM
Have a look at the Ext.form.TextField allowBlank, Ext.form.FormPanel monitorValid and Ext.Button formBind config options

darthwes
14 Sep 2010, 7:30 AM
monitorValid

andredecotia
14 Sep 2010, 8:54 AM
Could you give me any exemple please?

darthwes
14 Sep 2010, 9:10 AM
<script language="javascript">
Ext.onReady(function() {
new Ext.Viewport({
layout: 'border',
items:[{
region: 'north',
height: 250,
}, {
region: 'west',
width: 250,
}, {
region: 'south',
height: 125
}, {
xtype: 'form',
region: 'center',
monitorValid: true,
monitorPoll: 500,
url: 'test.php',
method: 'GET',
items:[{
xtype: 'textfield',
name: 'tf1',
allowBlank: false,
fieldLabel: 'Whatcha want? '
}, {
xtype: 'numberfield',
name: 'nf1',
allowBlank: false,
minValue: 10,
maxValue: 64,
fieldLabel: 'How many? '
}],
buttons: [{
text: "Submit",
formBind: true
}]
}]
});
});
</script>