jQuery.ajax 로 JSON 사용시 euc-kr등에서 유니코드 문자 안깨지게 처리하는게 귀찮아서 만들었습니다

대충 아래처럼 씁니다

<!--#include file="json_disp.asp"-->
<%
Function AjaxTest1(result)
result.Add "ip", Request.ServerVariables("REMOTE_ADDR")

AjaxTest1 = True
End Function

Set json = new JsonDispatcher
Call json.AcceptParamValue("AjaxTest1", "mode", "test1")
%>
<script type="text/javascript">
$(function(){
$.post('test.asp',{mode:'test1'},function(result){
alert(result.ip);
},'json');
});
</script>
2011/11/09 17:50 2011/11/09 17:50

Trackback Address :: https://youngsam.net/trackback/1637