JavaScript
女雅乱
这个作者很懒,什么都没留下…
展开
-
use xtree js for create a tree
First ,you shoule download the opensource xtree.js for this function./* * WebFXTreeItem class */function WebFXTreeItem(sText, sAction, eParent, sIcon, sOpenIcon) { this.base = WebFXTreeAbs...2009-09-30 19:39:04 · 85 阅读 · 0 评论 -
A example of treepanel of Ext
var root = new Ext.tree.TreeNode({ id:"root", text:"Sample" }); var ITDep = new Ext.tree.TreeNode({id:"c1",text:"IT Dep",href:"http://www.sina...2010-03-19 14:40:32 · 97 阅读 · 0 评论 -
JavaScript object
Note:this blog copied from: http://www.k99k.com/ ,if u reship it,pls note the resource.在javascript中,对象实际上就是一个哈希表,比如下面这个user对象: function user(n, a){ this.name = n; this.age = a; th...原创 2010-01-05 16:57:31 · 93 阅读 · 0 评论 -
Save the time - by Js
function init(){ var arrStr = document.cookie.split("; "); var time ; for(var i = 0;i < arrStr.length;i ++){ var temp = arrStr[i].split("="); if(temp[0] == "<%=userna...2009-07-27 19:38:23 · 180 阅读 · 0 评论 -
Add or delete lines of table by JS
When want to add a line or delete a line for detailed info for basic object ,we can use this:function deleteRow(tableObjStr,saveNumber){ var tableObj = document.getElementById(tableObjStr); ...2009-07-27 19:43:47 · 87 阅读 · 0 评论 -
My opinion of how to develop the automatic tool for testing
As we know,script can be used for testing,the main idea of Automatic tools is the automatic cases are composing with lots of steps.every step contains some script.you should define some variable for t...2009-08-14 09:52:44 · 93 阅读 · 0 评论 -
In touch with Jquery
In order to test the function of Jquery, you need to down the src of Jquery and some plugins(plugins are very useful when you want to finish some specail funciton).Now I created a test.html,test.js,...2009-08-25 19:15:45 · 110 阅读 · 0 评论 -
Send the request by XMLHttpRequest
Sending request is the asynchronous operation ,here is the code of sending on the widget:function getRequest() { http_request = false; if(window.XMLHttpRequest) { http_reque...2009-09-04 18:10:59 · 153 阅读 · 0 评论 -
Ext learning
Today,do some work with ext,have a simple knowledge for it,it is convenient to use,write a example for remembering./** * This JS is used to provide the user details information. * * @author ...2010-03-04 18:08:29 · 103 阅读 · 0 评论