`
wangleide414
  • 浏览: 591452 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

ExtJs button 居中

 
阅读更多

 

var win = new Ext.Window({
						title : "管理学校简介",
						layout : 'fit',
//						render:'all',
						width : 1300,
						height : 600,
//						autoHeitht:true,
//						autoWidth:true,
						closeAction : 'hide',
						modal : true,
						buttonAlign:'center',
						buttons : [{
									text : "确定添加",
									type : 'submit',
									handler : function() {
										//关键 不能删除的  
										Ext.get('code').dom.value = editorInstance
												.GetXHTML(true);//获取fckeditor内容赋给textarea  
										var str = Ext.getCmp("code");
										alert(str.getValue());
				
										//                                        if(fckeditorFormPanel.form.isValid()){//验证通过      
										//                                            fckeditorFormPanel.form.doAction('submit',{      
										//                                                  url:'json.aspx',      
										//                                                  method:'post',      
										//                                                  waitMsg:'正在提交,请稍等...',      
										//                                                  success:function(form,action){//成功返回        
										//                                                         var result = action.result.success;    
										//                                                          if(result == 'true' ){    
										//                                                                     window.location.href="Test.aspx";  
										//                                                             }else{  
										//                                                                 Ext.Msg.alert("提示消息","添加错误");  
										//                                                          }   
										//                                                  },      
										//                                                  failure:function(form,action){//失败返回      
										//                                                        Ext.Msg.alert("提示消息","添加数据发生了异常");     
										//                                                  }      
										//                                            });      
										//                                        }      
				
									}
								}],
						items:fckeditorFormPanel
					});
 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics