Tutto il codice
Ext.onReady(function(){
Ext.util.CSS.swapStyleSheet('theme', 'ext/resources/css/xtheme-gray.css');
var word = new Ext.FormPanel({
id:'form',
labelAlign: 'top',
frame:true,
//title: 'Un foglio world semplificato con pochissime istruzioni',
bodyStyle:'padding:15px 15px 15px 15px;',
renderTo:'word',
height:Ext.getBody().getViewSize().height,
items: [
{
layout: 'form',
items: [{
xtype:'textfield',
fieldLabel: 'Data',
name: 'data',
anchor:'15%'
}/*, {
xtype:'textfield',
fieldLabel: 'Autore',
name: 'autore',
anchor:'95%'
}*/]
},{
xtype:'htmleditor',
id:'testo',
fieldLabel:'Testo',
anchor:'98% 85%'
}],
buttons: [{
text: 'Salva',
handler: function(){
alert();
Ext.getCmp("form").getForm().submit
({
url: "insEmanuelDB.asp",
waitMsg: "Ricerca in corso...",
waitTitle: "Attendere...",
success: function(form, action)
{ }