论坛首页 入门技术论坛

EXT+FCK 的问题。

浏览 1184 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2010-06-07  
麻烦看下这段代码:
form :
Ext.namespace("Ext.zhj.quoDetail");
var path = window.location.pathname;
path = path.substring(0, path.lastIndexOf('/') + 1);

Ext.zhj.quoDetail.SimpleForm = Ext.extend(Ext.FormPanel, {
quoId : null,
constructor : function(_cfg) {
if (_cfg == null) {
_cfg = {};
}
Ext.apply(this, _cfg);
Ext.zhj.quoDetail.SimpleForm.superclass.constructor.call(this, {
width : this['width'] == null ? 1000 : this['width'],
labelAlign : 'right',
buttonAlign : 'right',
bodyStyle : 'padding:5px;',
frame : true,

monitorValid : false,

items : [{

border : false,
labelSeparator : ':',
defaults : {
layout : 'form',
border : false,
columnWidth : .25

},
items : [//1
{
items : [{
xtype : 'textfield',
fieldLabel : '标题',
name : 'title',
width:200,
anchor : '90%'
},{
xtype:'textarea',
name:'content',
fieldLabel:'内容',
id:'f_content',
listeners : {  
                    "render" : function(f) {  
                                fckEditor = new FCKeditor("f_content");  
                                fckEditor.Height = 400;  
                                fckEditor.Width = 530;                           
                                fckEditor.BasePath = path+"fckeditor/";                            
                                fckEditor.Config['CustomConfigurationsPath'] =path+"/fckeditor/fckconfig.js";
                           
                                fckEditor.ReplaceTextarea();  
                     }  
   
}
                    }]
}]
}]
})
},
loadFormDate : function() {

Ext.Ajax.request({
url : path + '/noticeinfo/getnotice.action',
params : {
id : this.quoId
},
success : function(response) {
var responseArray = Ext.util.JSON
.decode(response.responseText);
if (responseArray.success == true) {
var r = new Ext.data.Record(responseArray.info);
this.setValues(r);


} else {
return false;
}
},scope : this

});
},
setValues : function(_r) {

_r.set('title', _r.data['title']);
_r.set('content', _r.data['content']);

this.getForm().loadRecord(_r);
}




});



          




window:

Ext.namespace("Ext.jbsoft.window.updatewin");

Ext.jbsoft.window.updatewin.QuoInfoDetailWindow = Ext.extend(Ext.Window, {
id:null,
simpleForm : null,
constructor : function(_cfg){
if(_cfg == null){
_cfg = {};
}
Ext.apply(this,_cfg);


this.simpleForm = new Ext.zhj.quoDetail.SimpleForm({
quoId : this.id
});
// 转载数据
this.simpleForm.loadFormDate();



Ext.jbsoft.window.updatewin.QuoInfoDetailWindow.superclass.constructor.call(this, {
title : this.id,
width : 800,
height : 500,
plain : true,
closable : true,
closeAction : 'close',
constrain : true,
modal : true,

buttons : [{
text : "确定",
handler : function() {
this.close();
},
scope : this
}],
items : [{

frame : true,

 

items : [this.simpleForm]
}]
})
}
});

Ext.reg("win",Ext.jbsoft.window.updatewin.QuoInfoDetailWindow);



在IE 里面现在的问题是第一次FCK里面可以得到传入的content,第二次就不行了,显示为空!
但是在火狐里面一直都没问题,求解,万分感谢!
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics