// 약 4622 줄 try cache로 묶어준다.
try{
	style[ name ] = value;
} catch (e){}

[JavaScript]
/**
 * 주어진 값 다음의 날짜 구하기(과거는 - 마이너스)
 * @param nextDateInt	날짜에 더하거나 빼야할 값
 * @param nowDate		현재 날짜 및 기준날짜( new Date(), 없을 경우 new Date(), yyyymmdd 8자리)
 * @return Date
 */
function getNextDate(nextDateInt, standardDate){

	var oneDate = 1000 * 3600 * 24;	// 하루

	var nowDate;
	if( standardDate == undefined )					nowDate = new Date();
	else if( standardDate.getTime != undefined )	nowDate = standardDate;
	else if( standardDate.length == 8 )				nowDate = new Date(standardDate.substring(0, 4), parseInt(standardDate.substring(4, 6))-1, standardDate.substring(6, 8));
	
	return new Date(nowDate.getTime() + (oneDate * nextDateInt));
}



[JAVA]
/**
	 * 주어진 값 다음의 날짜 구하기(과거는 - 마이너스)
	 * @param nextDateInt	날짜에 더하거나 빼야할 값
	 * @param nowDate		현재 날짜 및 기준날짜( new Date(), 없을 경우 new Date(), yyyymmdd 8자리)
	 * @return Date
	 */
	public static Date getNextDate(int nextDateInt){
		return getNextDate(nextDateInt, new Date());
	}
	public static Date getNextDate(int nextDateInt, String nowDateStr){
		GregorianCalendar gc = new GregorianCalendar ( Integer.parseInt(nowDateStr.substring(0, 4)), (Integer.parseInt(nowDateStr.substring(4, 6))-1), Integer.parseInt(nowDateStr.substring(6, 8)) );
		return getNextDate(nextDateInt, gc.getTime());
	}
	public static Date getNextDate(int nextDateInt, Date nowDate){
		long oneDate = 1000 * 3600 * 24;	// 하루
		return new Date(nowDate.getTime() + (oneDate * nextDateInt));
	}
[ActionScript]
/**
	 * 주어진 값 다음의 날짜 구하기(과거는 - 마이너스)
	 * @param nextDateInt	날짜에 더하거나 빼야할 값
	 * @param nowDate		현재 날짜 및 기준날짜
	 * @return Date
	 */
	public static function getNextDate(nextDateInt:int, standardDate:Date) : Date {
		var oneDate:Number = 1000 * 3600 * 24;	// 하루
		return new Date(standardDate.getTime() + (oneDate * nextDateInt));
	}

테이블의 tbody tr row가 0개일 경우 에러발생, 또한 1개일 경우에도 정렬할 필요 없다.

// row data 2개 이상일때만 동작하게 한다. 2010-09-1 by ddakker
if( totalRows < 2 ) return;


table 이 두개 이상 있을 경우 thead tr:first 가 무조껀 소스 상단의 노드만 접근이 된다. jQuery버그인건지... 원래 그런건지.. 확실치 않다.
//$this.children("thead tr:first").attr("style", "position:relative; top:expression(this.offsetParent.scrollTop)");

// 버그로 인한 커스트 마이징..(단 ID사용일때만 가능) 2010-10-07 by ddakker
$this.children("thead").find("tr:first").attr("style", "position:relative; top:expression(this.offsetParent.scrollTop)");


jquery.tablescroll.js

jquery.tablesorter.js








a b c
1 2 3
4 5





a b

// 캡춰단계 이벤트 처리 하고, 버블단계 막기
if (event.stopPropagation)	event.stopPropagation();
else					event.cancelBubble = true;


// 브라우저 이벤트 막기
if (event.preventDefault)  event.preventDefault();
else                                event.returnValue = false;   


td1 index0
td1 index1
td1 index2
최근에는 ajax방식만 사용하다가 사용하게 될 일이 있어서 사용했는데 오래간만에 사용하니 방법을 잊어버려서 삽질했군요.
정리의 습관!!(했던거 그냥 적은거라 오타 있을 수 있음..)






declare
  Cursor emp_cursor is
   Select seq,subject from board;
begin 
  dbms_output.put_line('seq subject');
  dbms_output.put_line('------ ---- -------');
  for c1 in emp_cursor loop
        
    dbms_output.put_line(to_char(c1.seq) || ' ' || c1.subject);
    insert into insert_test(test)values(c1.subject);
  end loop;
        
end;

+ Recent posts