일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- javascript
- 와일드카드
- laravel
- tomcat
- 이클립스
- php
- CentOS
- larravel
- jquery
- java
- MySQL
- SeLinux
- Android
- error
- 정규식
- 리눅스
- DB
- ajax
- Linux
- File
- curl
- 톰캣
- html
- junit
- JSON
- NetBeans
- 안드로이드
- properties
- Spring
- input
- Today
- Total
목록Javascript (14)
합쭈기 programming
function print(printArea) { console.log(printArea); win = window.open('','','width=740,height=700'); self.focus(); win.document.open(); /* 1. div 안의 모든 태그들을 innerHTML을 사용하여 매개변수로 받는다. 2. window.open() 을 사용하여 새 팝업창을 띄운다. 3. 열린 새 팝업창에 기본 를 추가한다. 4. 안에 매개변수로 받은 printArea를 추가한다. 5. window.print() 로 인쇄 6. 인쇄 확인이 되면 팝업창은 자동으로 window.close()를 호출하여 닫힘 */ win.document.write(''); win.document.write(printA..
//only number $("#historyYear").keyup(function(){ $(this).val($(this).val().replace(/[^0-9]/gi, "")); });
jquery.reaveal.js 활용
//ie 때문에 $("#personFile").change(addPic); function addPic() { form = document.createElement("form"); form.name = "formFile"; form.action = "/"; form.method = "post"; form.enctype="multipart/form-data"; form.encoding="multipart/form-data"; var file = $(this); $(file).attr("name", "personFile"); temp = $(this).parent(); $(form).append($(file)); var frameName = 'unique' + (new Date().getTime()); //..
Ajax $.ajax({ url : {url}, type : "POST", data : {data}, success : function(msg){ console.log(msg); }, error : function(t,h,e){ console.log(h); } }); jquery.form.min.js를 include Ajax form $("#input_form").ajaxForm(function(msg){ console.log(msg); }).submit();