Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- junit
- SeLinux
- Linux
- larravel
- laravel
- tomcat
- File
- java
- Android
- 정규식
- DB
- input
- php
- 톰캣
- 와일드카드
- MySQL
- NetBeans
- curl
- Spring
- html
- jquery
- error
- properties
- 안드로이드
- JSON
- ajax
- 이클립스
- CentOS
- 리눅스
- javascript
Archives
- Today
- Total
목록ajax (3)
합쭈기 programming
[jQuery] ajax form 전송 시 IE9 json 파일 다운로드 문제
ajaxForm을 사용할 때 multipart로 파일 전송 시 json 파일 다운로드가 뜬다. PHP를 기준으로 content-type이 multipart일 때 response header를 $this->header('Content-Type', 'text/json'); 이렇게 해주고 script에서는 파일 전송일 때 $.parseJSON으로 파싱해서 사용한다.
Javascript
2015. 12. 16. 11:49
[jQuery] ajax GET or POST
ajax 옵션에서 jQuery 1.9.0 미만에서는 type : 'GET' 이고 이상에서는 method : 'GET' 을 사용한다. type 옵션은 모두 적용되지만 method는 jQuery 1.9.0 미만에서 사용 시 동작하지 않으니 주의해야함
Javascript
2015. 9. 9. 15:59
ajax와 ajax form
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();
Javascript
2015. 4. 13. 10:27