버그인지 아닌지는 모르겠지만 jquery ui 의 datepicker 사용시연도와 월의 셀렉트박스의 크기 때문에 모양이 틀어져 보일경우jquery-ui-min.css (또는 해당 버전css) 에서.ui-datepicker select.ui-datepicker-year { width: 49%;}위부분을 찾아서 width 를 적절히 조절해준다.또 글자 크기를 변경 하고자 할 경우.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none;}에서 font-size를 지정 해준다. 2014.08.05
Form을 이용하여 서버에 자료전송할 때 Ajax를 통해서 필요한 자료만 서버에 보내세요. 빠르고 다이네믹한 웹을 구현해 줄 것입니다. 이 곳에는 프로토타입 자바스크립트 라이브러리(Prototype 자바스크립트를 변형한다. * Ajax.Updater: 자료를 서버에 보내고 지정한 DIV에 있는 응답을 표시한다. Ajax.Updater 또는 Ajax.Request를 사용하기 위해서는 prototype.js를 해더에서 아래와같이 로드해야 한다. 다음으로, 간단한 html모양을 만든다. submit 타입이 아닌 버튼을 넣어야 하고, onclick 이벤트 핸들러를 function send() 변수를 사용하여 매우 간단하게 한다. Ajax.Updater 명령의 사용법을 살펴보자. updateDiv는 서버에서 돌려..
Enabling Rich Text Editing:Given a document, you can add the attribute "designMode" and set it to "on" to get an editable document. For example, in JavaScript, if you have an iframe with an id of 'edit', you can get its contentDocument and set designMode to "on" like this: document.getElementById("edit").contentDocument.designMode="on"; Right now, you can't completely turn off editing by setting..
getCookie(name)자바스크립트에서 쿠키불러오기name 은 쿠키변수명 //쿠키불러오기 function getCookie(name) { var Found = false var start, end var i = 0 ; // cookie 문자열 전체를 검색 while(i
function trim (strSource) { re = /^\s+|\s+$/g; return strSource.replace(re, ''); } function trim(ment){ var start; var end; for(i=0;i -1; i--){ mentcnt = ment.substring(i,i+1); if (mentcnt != ' ') { end=i; break } } str = ment.substring(start,end+1); if (str == ' ') { str = ''; } return str; } 2004.12.13
//쿠키저장function setCookie(name, value,expire,path) { path = (!path)?"/":path; var todayDate = new Date(); unixtime = todayDate.getTime(); if (value==null) { expire = 0; } if (expire != null) { extime = unixtime+(expire*1000); todayDate.setTime(extime); expiretime = " expires=" + todayDate.toUTCString() +";"; }else{ expiretime = ""; } document.cookie = name + "=" + escape(value) + "; path="+path+"..