上一页 1 ··· 3 4 5 6 7
摘要: 由于需要Ext中也结合了jquery的一些东西,于是当点击tab中当前页面的某一个按钮触发如下js方法function on_starttc(serverIP,status,nodeID) { $.ajax({ url:'../tree_serverOperator.action', data:{ ip:serverIP, status:status, vmUuid:nodeID }, type:'post', //数据发送方式 dataType:'... 阅读全文
posted @ 2012-07-07 13:15 zhu_xj 阅读(732) 评论(0) 推荐(0) 编辑
摘要: 有a,b两个页面,a页面为主页面,有按钮一个,点击按钮弹出一个windows对象,在其中显示b页面。b页面中也有一个按钮,点击关闭窗口。a.htm (部分代码)<scripttype="text/javascript">function openWindow(id,title,url,width,height){varwin=Ext.get(id)if(win){win.close();return;}win=new Ext.Window({id:id,title:title,layout:'fit',width:width,height:hei 阅读全文
posted @ 2012-07-06 11:58 zhu_xj 阅读(2207) 评论(0) 推荐(0) 编辑
摘要: 本文会不断更新中![ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again-----关闭Titanium后再启动[ERROR] Script Error = Result of expression 'Titanium.Database' [undefined] is not an object. at app.js (line 1).-----Clean工程后再启动[ERROR] Error generating R.java fro 阅读全文
posted @ 2012-05-16 10:50 zhu_xj 阅读(745) 评论(0) 推荐(0) 编辑
摘要: //取得某月的最后一天 //方法一:使用算出該月多少天,年+月+加上多少天即得,舉例取今天這個月的最后一天 private void GetLastDateForMonth(DateTime DtStart, out DateTime DtEnd) { int Dtyear, DtMonth; DtStart = DateTime.Now; Dtyear = DtStart.Year; DtMonth = DtStart.Month; int MonthCount = DateTime.DaysInMonth(Dtyear, DtMonth);//計算該月有多少天 DtEnd = Conver 阅读全文
posted @ 2012-05-10 16:08 zhu_xj 阅读(3989) 评论(0) 推荐(0) 编辑
摘要: CKEDITOR config.js配置CKEditor配置使用ckeditor 的官方网站是http://ckeditor.com/,当前使用的版本是v3.0.1。一、使用方法:1、在页面<head>中引入ckeditor核心文件ckeditor.js<script type="text/javascript" src="ckeditor/ckeditor.js"></script>2、在使用编辑器的地方插入HTML控件<textarea><textarea id="TextArea1&q 阅读全文
posted @ 2012-04-26 11:00 zhu_xj 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: 方法一: <Renderer Fn="Ext.util.Format.dateRenderer('Y-m-d H:i:s')" />注意:如何使用这个方法,需要在store中,先设置对应字段的type为date方法二: <ext:DateColumn ColumnID="AddTime" Header="创建日期" Width="120" DataIndex="AddTime" Align="Center" Format="Y-m- 阅读全文
posted @ 2012-04-21 11:37 zhu_xj 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 在web开发中,经常会用到iframe,难免会碰到需要在父窗口中使用iframe中的元素、或者在iframe框架中使用父窗口的元素js在父窗口中获取iframe中的元素1、格式:window.frames["iframe的name值"].document.getElementById("iframe中控件的ID").click();实例:window.frames["ifm"].document.getElementById("btnOk").click();2、格式:var obj=document.getEle 阅读全文
posted @ 2012-04-18 13:18 zhu_xj 阅读(228) 评论(0) 推荐(0) 编辑
摘要: jquery 获取父窗口的元素 父窗口 子窗口$("#父窗口元素ID",window.parent.document);对应javascript版本为window.parent.document.getElementByIdx_x("父窗口元素ID");取父窗口的元素方法:$(selector, window.parent.document);那么你取父窗口的父窗口的元素就可以用:$(selector, window.parent.parent.document);类似的,取其它窗口的方法大同小异$(selector, window.top.docume 阅读全文
posted @ 2012-04-15 22:33 zhu_xj 阅读(456) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7