Code:
addCable = new Ext.Window({
width:800
,height:700
,minWidth:165
,id:'crearId'
,minHeight:200
,resizable:false
,layout:'fit'
,border:true
,closable:true
,title:'Crear Cable'
items: /*createForm,*/
[new Ext.form.FormPanel({
baseCls: 'x-plain',
layout:'form',
url:'save-form.php',
border: true,
defaultType: 'textfield',
monitorValid:true,
buttonAlign: 'right',
bodyStyle: 'padding:5px',
items: [{
fieldLabel: 'Tipo de Cable',
id: 'cableType',
name: 'cableType',
anchor:'50%' // anchor width by %
},{
fieldLabel: 'Cable Número',
id: 'cableNumber',
name: 'cableNumber',
anchor: '50%' // anchor width by %
},{
id: 'cableDireccion',
fieldLabel:'Dirección',
name: 'cableDireccion',
value:'DGC',
allowBlank:false,
blankText: 'Debe ingresar la dirección del cable, puede usar el botón de direcciones en la barra',
anchor: '50%' // anchor width by %
},{
id:'cableTitulo',
name: 'cableTitulo',
fieldLabel: 'Título',
allowBlank:false,
blankText: 'Debe ingresar un título válido',
anchor: '95%', // anchor width by %
enableKeyEvents:true,
listeners:{
'keyup':{ fn: function(field, e){addCable.setTitle('Crear Cable: '+field.getValue())}
}
}
},{
fieldLabel: 'Referencia Lima',
id: 'cableRefLima',
name: 'cableRefLima',
anchor: '95%' // anchor width by %
},{
fieldLabel: 'Referencia Tokio',
id: 'cableRefTokio',
name: 'cableRefTokio',
anchor: '95%' // anchor width by %
},{
xtype: "tinymce",
hideLabel:true,
width: "768",
height: "440",
id: "cableBodyValue",
name: "cableBodyValue",
tinymceSettings: {
theme : "advanced",
content_css : "/includes/styles/cable_template.css",
plugins: "safari,pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,cleanup,help,code,insertdate,inserttime",
theme_advanced_buttons2 : "forecolor,backcolor,tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,advhr,|,print,|,ltr,rtl,moveforward,movebackward,absolute,styleprops,cite",
theme_advanced_buttons3 : "abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,pagebreak",
theme_advanced_toolbar_location : "top",
theme_advanced_source_editor_width: 768,
theme_advanced_source_editor_height:440,
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : false,
theme_advanced_fonts : "Arial=arial",
theme_advanced_font_sizes : "MyText=11px",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
template_external_list_url : "example_template_list.js"
},
value: ""
}],
buttons:[
{
text:'Guardar',
formBind:true,
handler: function() {
// Sync value for specific editor
Ext.getCmp("cableBodyValue").syncValue();
// Submit the form
frm.getForm().submit({
url: "/",
method: "GET"
});
}
},{
text: 'Cerrar',
handler: function(){
addCable.close();
}
}]
})]
});
so it is a window with a form and a tinyMCE inside, everything is fine, but when I close the window, IE7 screams the error..... "Permission Denied" , FF works fine.... I really don't know what to do..