摘要: 详情见 http://www.oejia.net/blog/2016/01/17/extjs_ajax.html简单的Ext.Ajax. request示例Ext.Ajax表单提交示例Ext.Ajax. request提交xml数据Ext.Ajax. request提交json数据Ext.Updat... 阅读全文
posted @ 2010-04-05 15:17 软践 阅读(8339) 评论(0) 推荐(0) 编辑
摘要: mce:script type="text/javascript" !--Ext.DomHelper.append 内容追加 var panel = new Ext.Panel({ title : 'Ext.DomHelper示例', width : '280px', renderTo : 'sub1', html : 'div id="div1" style="height:160px;padding:5px"原文本/div' }); Ext.DomHelper.append(Ext.get("div1"),"br新追加了文本",true); Ext 阅读全文
posted @ 2010-04-05 11:47 软践 阅读(2015) 评论(0) 推荐(0) 编辑
摘要: Ext.onReady //发生在DOM对象加载完毕后,onload事件和image加载之前 主体内容显示完后才触发onReady事件Ext.isEmpty判断对象是否为空示例 Ext.Msg.alert('提示',"我们已经实例化的panel是否为空?"+Ext.isEmpty(panel)+ "brExt.isEmpty('',true)的值:"+Ext.isEmpty("",true)+"brExt.isEmpty('',false)的值"+Ext.isEmpty("",false));Ext.each 迭代器的使用 //定义一个集合 var array = [] 阅读全文
posted @ 2010-04-05 11:46 软践 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 标准的事件绑定方式 body input type='button' id='btn' value='ok' /bodymce:script language="JavaScript"!-- function hello1(){ alert('hello1'); } function hello2(){ alert('hello2'); } var button = document.getElementById('btn'); button.attachEvent('onclick',hello1);//该方法仅适用于IE浏览器 button.attachEvent 阅读全文
posted @ 2010-04-05 10:11 软践 阅读(233) 评论(0) 推荐(0) 编辑
摘要: Ext.get 选择器(返回HTML或DOM的节点元素) 元素的样式操作:mce:script language="javascript"!--Ext.onReady(function(){ var el = Ext.get("the-id"); function fn1(){ Ext.Msg.alert("提示","您在id为'the_id'的Element上按下了ctrl+c键"); } el.addClass("special-css");//为元素添加样式表 el.focus();//将焦点移到el元素上 el.addClassOnFocus("focus-css");//为得 阅读全文
posted @ 2010-04-05 10:00 软践 阅读(2174) 评论(0) 推荐(0) 编辑
摘要: 详细见http://oejia.net/blog/2016/01/17/extjs_layout.html面板控件panel应用面板panel加载远程页面面板panel加载本地页面使用html配置项定义面板panel内容使用items添加panel内容面板panel嵌套的使用FitLayout布局p... 阅读全文
posted @ 2010-04-05 09:51 软践 阅读(11912) 评论(3) 推荐(0) 编辑