jQuery를 이용한 자주 사용되는 Ajax 구문
PHP, JAVA jQuery.ajax({ url: "./guide.html", //페이지 global: false, type: "POST", data: $("#frm").serialize(), dataType: "string", //json xml text async:false, clearForm:true, resetForm:true, success: function(data){ //성공 액션 }, error: function(response, textStatus, errorThrown){ //실패 액션 }, beforeSend:function() { //실행되기 전 액션 } }); C# $.ajax({ type: "post", url: "ResponseText.aspx/GetMessage", data..
javascript 에서 escape 문자열 PHP에서 unescape 하기
PHP에서 iconv 사용가능 하여야 합니다. function tostring($text) { // return iconv('UTF-16LE', 'UTF-8', chr(hexdec(substr($text[1], 2, 2))).chr(hexdec(substr($text[1], 0, 2)))); return iconv('UTF-16LE', 'UHC', chr(hexdec(substr($text[1], 2, 2))).chr(hexdec(substr($text[1], 0, 2)))); } function urlutfchr($text){ return rawurldecode(preg_replace_callback('/%u([[:alnum:]]{4})/', 'tostring', $text)); } 처리할 문서가 ch..