原创 jquery $.ajax and load()
$.ajax({ type:"POST", url:"some/action/url/zy", dataType:"json", data:$("#curform").serialize(
原创 javascript 創建 class
javascript的class建立是個有意思的話題, 確切的說, OO的javascript就是比較有趣的, 因爲javascript並沒有在設計的時候定位爲OO. 下面的文章是轉的別人的, 集中於話題"javascript語言中的Cl
原创 JavaScript arguments,callee,caller,call,appy
<script language="JavaScript">/* * 演示arguments的用法,如何獲取實參數和形數數 */function argTest(a,b,c,d){ var numargs = arguments.
原创 jquery parent jQuery對象和dom對象互相轉換
jquery裏面如何實現window.parent.document.getElementById("YY")? 答: parent.$(“#YY”); jquery對象< -- > dom對象 答: jquery --
原创 html table 對齊
右對齊 正: <table width="100%" class="ICS_TABLE"> <tr ><td ><div align="right"><input type="button" popup='1' id="add
原创 子窗口 父窗口 傳值
father_window var newWindow; function openWindow(url){ newWindow = window.open("sub_window.jsp?age=78", "", "w
原创 example : postgres dump all table structure
on shell > pg_dump -f /root/ahguestmgr2.log -Fp -Z 9 -U postgres ahguestmgr -s # note that add -s on command Us
原创 淺談對象在Hibernate中的狀態(轉)
Hibernate中的對象有三種狀態: 瞬時狀態(Transient),持久狀態(Persistent), 1. 脫管狀態(Detached) 1. 1.瞬時狀態(Transient) 由new命令開闢內存空間的Java對象,也就是平時所
原创 hibernate load 和 get 的一點區別
/** * Return the persistent instance of the given entity class with the given identifier, * assuming that the ins
原创 example :Adding MySQL Cluster Data Nodes Online
Add new data node 10.155.20.213 10.155.20.214 Step 1 on Manager node > vi /usr/local/mysql_cluster_7.1.15/conf/co
原创 DHTMLX TabBar
Initialize TabBar Object from HTML Structure Without Javascript code: You do not need to write a line of javascript co
原创 利用java反射機制生成entity的一個例子
public void makeEntity(Element element ,List outlist) { List l = element.getChild("disp").getChildren("column"); Xml
原创 hibernate Inverse和Cascade 實踐
配置1: <set name="BANDS" table="S_BAND" inverse="false" cascade="save-update"> <key column="COMPANY_ID" /> <one-to-man
原创 a example for calling java code in javascript use dwr
package com; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.
原创 linux vim 使用詳解
vi vim 使用vim 編輯器首先簡單的說一下vi編輯器──unix的通用編輯器,讀作vee-eye (visual editor的簡寫)。(這裏的vim,是改進的vi, Vi Improved簡寫,Vim 由Bram Moolenaa