Extjs 时间组件IE不兼容问题

yjheaton 2009-03-16 05:45:17
Ext.form.DateField在firefox里面能很好的显示,到了IE就什么也不能显示了,谁知道原因啊,ie是6.0的???????????
...全文
491 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
liu_le 2009-09-17
  • 打赏
  • 举报
回复
那位大哥帮帮忙啊
liu_le 2009-09-17
  • 打赏
  • 举报
回复
liu_le 2009-09-17
  • 打赏
  • 举报
回复
我也出现同样的问题,代码如下:
var msForms = new Ext.FormPanel({
labelSeparator: ":",
labelAlign: 'right',
labelWidth: 80,
frame: true,
border: false,
items:[
{
xtype: 'textfield',
width: 200,
name: 'sname',
id: 'sname',
fieldLabel: '歌手名'
},{
xtype: 'textfield',
width: 200,
name: 'mname',
id: 'mname',
fieldLabel: '歌曲名'
},{
xtype: 'datefield',
width: 200,
name: 'createtime',
id: 'createtime',
fieldLabel: '创建日期'
},{
xtype: 'textfield',
width: 200,
name: 'releasedate',
id: 'releasedate',
fieldLabel: '发布日期'
},{
xtype: 'textfield',
width: 200,
name: 'sarea',
id: 'sarea',
fieldLabel: '音乐地区'
},{
xtype: 'combo',
width: 200,
name: 'shortname',
id: 'shortname',
mode: 'local',
fieldLabel: '歌手简称',
store: new Ext.data.SimpleStore({
fields: ['value', 'text'],
data:[
[1,'A'],[2,'B'],[3,'C'],[4,'D'],[5,'E'],[6,'F'],[7,'G'],[8,'H'],[9,'I'],[10,'J'],
[11,'K'],[12,'L'],[13,'M'],[14,'N'],[15,'O'],[16,'P'],[17,'Q'],[18,'R'],[19,'S'],[20,'T'],
[21,'U'],[22,'V'],[23,'W'],[24,'X'],[25,'Y'],[26,'Z']
]
}),
triggerAction: 'all',
valueField: 'text',
displayField: 'text'
},{
xtype: 'combo',
width: 200,
name: 'ssex',
id: 'ssex',
mode: 'local',
fieldLabel: '歌手性别',
store: new Ext.data.SimpleStore({
fields: ['value', 'text'],
data:[[0, '女'],[1, '男']]
}),
triggerAction: 'all',
valueField: 'text',
displayField: 'text'
},{
xtype: 'combo',
width: 200,
name: 'isband',
id: 'isband',
mode: 'local',
fieldLabel: '是否为组合',
store: new Ext.data.SimpleStore({
fields: ['value', 'text'],
data:[[0, '不是乐队'],[1, '是乐队']]
}),
triggerAction: 'all',
valueField: 'text',
displayField: 'text'
}
],
buttons: [
{
text: '关闭',
handler: function(){
wins.hide();
}
},{
text: '提交',
handler: submitForms
}
]
});

var wins = new Ext.Window({
layout: 'fit',
width: 380,
closeAction: 'hide',
height: 320,
resizable: false,
shadow: true,
modal: true,
closable: true,
bodyStyle: 'padding:5 5 5 5',
animCollapse: true,
items:[msForms]
});

xiuyouxu 2009-09-17
  • 打赏
  • 举报
回复
报什么错啊,代码没看出问题
z1g2w3i4 2009-09-17
  • 打赏
  • 举报
回复
请加上如下句代码:
msForms.render();
wins.show();
mumu_java 2009-03-17
  • 打赏
  • 举报
回复
ie中应该没有问题.lz把代码贴一下.
yjheaton 2009-03-17
  • 打赏
  • 举报
回复
能把你的 jsp也面代码贴出来让我看一下吗
tlojy 2009-03-16
  • 打赏
  • 举报
回复
我用ie6,IE7显示没问题

52,782

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧