/** * jquery.simple.validator.js . 폼의 유효성 검사 * 예) * 폼.vaildator().check(); * */ ;(function($){ var Validator = (function(){ //의존 관계 정의 var he = Hello.world // 비공개 프로퍼티 ,form, opts, errors = [], elements = [], messages= [], checked_result = false, that; // 비공개 메서드 // var 선언을 마침 //초기화 필요하면 초기화 진행 that = { version : '1.0' , setOption : function(name , option ) { opts[name] = option; } , getOption :..
var validator = { types : {}, messages : [], config: {}, validate: function( data ) { var i, msg, type, checker, result_ok; this.messages = []; for ( i in data ) { if ( data.hasOwnProperty(i) ) { type = this.config[i]; checker = this.types[type]; if ( !type ) { continue; } if ( !checker ) { throw { name : "validationError", message : type + ' noting ' }; } result_ok = checker.validate( data[i] )..
http://www.naver.com/include/timesquare/widget/exchange.xml 네이버는 막혔다. 흑. 래퍼를 NAVER 를 걸쳐서 가면 댄다든댕.. 패스 http://www.webservicex.net/CurrencyConvertor.asmx?op=ConversionRate http://www.webservicex.net/CurrencyConvertor.asmx/ConversionRate?FromCurrency=USD&ToCurrency=KRW 구굴 환율 계산 api $amount = "1000"; $from = "USD"; $to = "KRW"; echo ""; print_r( currency($from, $to, $amount) ); echo ""; exit; functi..