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 | 31 |
Tags
- html
- 정규식
- JSON
- laravel
- Linux
- java
- NetBeans
- larravel
- jquery
- javascript
- Spring
- 안드로이드
- input
- ajax
- MySQL
- error
- curl
- File
- Android
- 리눅스
- php
- DB
- junit
- tomcat
- 톰캣
- properties
- SeLinux
- CentOS
- 와일드카드
- 이클립스
Archives
- Today
- Total
합쭈기 programming
[jQuery] ajax form 전송 시 IE9 json 파일 다운로드 문제 본문
ajaxForm을 사용할 때 multipart로 파일 전송 시 json 파일 다운로드가 뜬다.
PHP를 기준으로 content-type이 multipart일 때 response header를
$this->header('Content-Type', 'text/json');
이렇게 해주고 script에서는 파일 전송일 때 $.parseJSON으로 파싱해서 사용한다.
'Javascript' 카테고리의 다른 글
| [jQuery] 팝업창 가운데 배치 (0) | 2015.12.14 |
|---|---|
| [Javascript] 정규식 한글 입력 방지 (0) | 2015.11.03 |
| [jQuery] 통화 표시 (0) | 2015.10.22 |
| [jQuery] ajax GET or POST (0) | 2015.09.09 |
| [jQuery] checkbox checked 적용 (0) | 2015.07.29 |