`
fireinjava
  • 浏览: 476142 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论
文章列表
流程图的时候在上面用红圈圈定位某节点用。 代码: <img src="/i/eg_mouse.jpg" width=300px height:300px style="position:absolute;z-index:-2"/> <img src="/i/eg_mouse.jpg" width=150px height:150px style="position:absolute;z-index:-1"/> <img src="/i/eg_mouse.jpg&qu ...
问题描述如:http://www.iteye.com/problems/37452 解决代码就是给iframe页面中的panel添加个id:'PanelLayout',Tabpanel切换时查找iframe然后用Ext.getCmp('PanelLayout').doLayout(); 主要代码: Ext.onReady(function() { tabs = new Ext.TabPanel({ enableTabScroll : true }); tabs.on('tabchange',function(tp,p){ var fr ...
随机排列后按保存,则portal拖动后用json串保存其拖动后的位置到Cookie,刷新时即为拖动后的排列。 若随机排列则此时清空之前Cookie的排列信息,刷新时为默认的排列。   版本Ext 3.0 将附件解压至ext-3.0.0\examples\文件夹下的即可运行.     Ext.onReady(function() { var tools = [{ id : 'gear', handler : function() { alert('?'); } }, { id : 'c ...
  转自http://www.cnitblog.com/joyboy/archive/2008/04/16/js.html   <script></script> 序号 操作 分类 IE(6.0) FireFox(2.0) Mozilla(1.5) 当前浏览器 备注 1 "." 访问tag的固有属性 OK OK OK OK   2 "." 访问tag的用户定义属性eg: <input type="checkbox" myattr="test& ...
利用Panel的mask()方法。 这种取巧的方法跟我的另一篇文章“Ext FieldSet 布局”(http://fireinjava.iteye.com/admin/blogs/501592)有点类似。 效果:     Ext.onReady(function() { Ext.QuickTips.init(); var htmlEditor = new Ext.form.HtmlEditor({ fieldLabel : '在线编辑器', name : 'htmlEditor', height : 100, ...
自己写了个copyProperties方法,虽没apache与spring的强大,但功能自己够用就好,而且不用引入第三方库。   package bean; import java.lang.reflect.Method; /** * @version 1.0 * @author fireinjava * @data Dec 11, 2009 * @描述: 存放字段及其要用到的对应get(来自sourceBean)与set(来自targetBean)方法 */ public class PropertyMethod { private String ...
做出来后的效果如下:   用到的图: 把图片添加到项目中, 在.jsp页面的ext-all.css定义后,添加 <STYLE type="text/css">.x-tab-strip-top .x-tab-strip-active .x-tab-right { background-position: 0 0; background-image: url(<%=request.getContextPath()%>/images/tabs-sprite.jpg); }.x-tab-strip-top .x-tab-strip-activ ...
  Flash URL修改(用Url Action Editor)   来自http://hi.baidu.com/127702/blog/item/337e53ce6e811e3ab600c88f.html    Flash URL添加,代码如下    <a href="#" onclick="window.open('http://www.baidu.com/index.html','_blank')" hidefocus>      <button disabled style="width:178;height ...

Ext FieldSet 布局

    博客分类:
  • Ext
网上找了很多Ext FieldSet 布局的, 其实只要把布局好的一个Panel当作FieldSet的items项即可。     var panelExt=new Ext.Panel({ layout:'form', items :[{ layout : 'column', items : [{ columnWidth : 0.5, layout : 'form', items : [expCustomerId,expMemberId,maxRepeatTimes] },{ ...
String. trim()   String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); }   Date.format()    Date.prototype.format = function(format) { var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDat ...
配置struts.xml文件的默认拦截器(注:登录的action用<default-interceptor-ref name="defaultStack" />) <interceptors> <interceptor name="loginInterceptor" class="com.fireinjava.ui.interceptor.LoginInterceptor" /> <interceptor-stack name="myDefaultIntege ...
说明:勾选某几条记录后,翻页再翻回来,保持原来的选中状态。 原理:在勾选或取消勾选的时候用recordIds保存或删除勾选中的Record的主键id值,   每次store加载(load事件)完后,遍历store,比较每条Record的主键列id是否在recordIds中,   若存在则将Record保存到临时变量records中,最后调用selMod.selectRecords(records, true);   写Array的remove与contains方法,搞得有点像java.util.HashSet(不让Array存重复值) function RemoveArray(array,a ...
<script type="text/javascript"> /*禁用backspace键的后退功能,但是可以删除文本内容*/ document.onkeydown = check; function check(e) { var code; if (!e) var e = window.event; if (e.keyCode) code = e.keyCode; else if (e.which) code = e.which; if (((event.keyCode == 8) && ...
javascript 之 select下拉框 1.动态创建select    function createSelect(){        var mySelect = document.createElement(select);         mySelect.id = mySelect;          document.body.appendChild(mySelect);    } 2.添加选项option   function addOption(){        根据id查找对象,         var obj=document.getElementById('my ...
call([thisObj[,arg1[, arg2[, [,.argN]]]]]) 参数 thisObj 可选项。将被用作当前对象的对象。 arg1, arg2, , argN 可选项。将被传递方法参数序列。 说明 call 方法可以用来代替另一个对象调用一个方法。call 方法可将一个函数的对象上下文从初始的上下文改变为由 thisObj 指定的新对象。 如果没有提供 thisObj 参数,那么 Global 对象被用作 thisObj。 ---------------------------------------------------------------------------- ...
Global site tag (gtag.js) - Google Analytics