본문 바로가기

script&css&html&ajax

Classic ASP에서 JQuery Ajax EUC-KR 문제처리


1. 호출하는 페이지

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
<html>
<head>
    <script type="text/javascript" language="JavaScript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
    <script type="text/javascript">
    <!--
        $(document).ready(function () {
            $('#btnClick').click(function () {
                $.post(
                    '/test/ajax/ajax_Child.asp',
                    function (data) {
                        data = unescape(data);
                        $('#result').html(data);
                    }
               );
                return false;
            });
        });
    -->
    </script>
</head>
<body>
<form name="submitForm">
<div id="result"></div>
<input type="button" id="btnClick" value="start" />
</form>
</body>
</html>
 
 
cs


2. 호출되는 페이지 


1
<%= Escape("테스트 입니다.") %>
cs


3. 호출하는 페이지에서 실행


  3.1실행전

 

  3.2 실행후