server.xml에서
현재 사용 하고 있는 포트번호(여기서는 8080) 커넥터를 찾아서
URIEncording ="utf-8" 을 추가해 준다.
====================인터넷 익스플로어에서 한글 검색이 안될때 =============
익스플로어에서 바나나를 검색하면 오류메세지가 뜬다.
그이유는 주소창에서 한글을 받아 오지 못하기 때문인데 그래서
Jquery안에 한글을 변환하는 코드를 넣어 줘야한다.
var t = encodeURIComponent('${param.txt}');
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<script>
$(document).ready(function(){
var t = encodeURIComponent('${param.txt}');
$('#pagination').twbsPagination({
totalPages:'${tot}',
visiablePages:10,
href:"?page={{number}}"+"&txt="+t
});
$('#txt_search').keyup(function(event){
if(event.which ==13){
var txt = encodeURIComponent($('#txt_search').val());
window.location.href = "selectboard?txt="+txt;
}
});
$('#txt_search_bottom').click(function(event){
var txt = encodeURIComponent($('#txt_search').val());
window.location.href = "selectboard?txt="+txt;
});
});
| cs |
댓글 없음:
댓글 쓰기