10월, 2012의 게시물 표시

extjs4.1 이벤트 추가 관련

자바스크립트 클래스 define안에 이벤트 정의 방법 define안에 function 추가 result : function(records) { var onPopSelectFn = this.onPopSelect; if (Ext.isFunction(onPopSelectFn)) { onPopSelectFn.call(this, this.owner, records); } this.close(); } define안에서 필요 액션에 펑션을 호출 --> this.result(selected); view파일안에         -> 이벤트 호출 정의 onPopSelect: function(field, record){ field.setValue(record.get('name')); field.ownerCt.down('[name=code]').setValue(record.get('code')); } 위와 같은 코드는 추가된 onPopSelect로서 동작한다. 필요한 액션이 수행되면 자동으로 이벤트가 돌도록 처리 된다.
이미지
Extjs4 - function 관련 methods 중  Call 이란 methods 링크 http://arongi.net/extjs-4.1.1/docs/index.html#!/api/Function-method-call

자바스크립트 공백체크

String 공백/null 체크 function isEmpty(str) { return (!str || 0 === str.length); } function isBlank(str) { return (!str || /^\s*$/.test(str)); }

Centos 네트워크 설치

Centos 네트워크 설치 경로(FTP) 랜설정 후 네트워크 경로 설정 mirror.cdnetworks.com /centos/5.8/os/i386