|
|
|
14년 전
|
조회 1,828
|
|
|
|
14년 전
|
조회 2,521
|
|
|
|
14년 전
|
조회 3,618
|
|
|
|
14년 전
|
조회 2,864
|
|
|
|
14년 전
|
조회 2,931
|
|
|
|
14년 전
|
조회 2,387
|
|
|
|
14년 전
|
조회 2,177
|
|
|
|
14년 전
|
조회 2,054
|
|
|
|
14년 전
|
조회 1,825
|
|
|
|
14년 전
|
조회 1,329
|
|
|
|
14년 전
|
조회 2,237
|
|
|
|
14년 전
|
조회 5,344
|
|
|
|
14년 전
|
조회 2,212
|
|
|
|
14년 전
|
조회 1,995
|
|
|
|
14년 전
|
조회 1,480
|
|
|
|
14년 전
|
조회 1,727
|
|
|
선택이란
|
14년 전
|
조회 1,535
|
|
|
|
14년 전
|
조회 1,407
|
|
|
|
14년 전
|
조회 1,504
|
|
|
|
14년 전
|
조회 1,481
|
|
|
|
14년 전
|
조회 1,450
|
|
|
|
14년 전
|
조회 2,301
|
|
|
|
14년 전
|
조회 1,628
|
|
|
선택이란
|
14년 전
|
조회 1,497
|
|
|
|
14년 전
|
조회 1,418
|
|
|
|
14년 전
|
조회 1,497
|
|
|
|
14년 전
|
조회 1,815
|
|
|
|
14년 전
|
조회 1,735
|
|
|
|
14년 전
|
조회 2,329
|
|
|
|
14년 전
|
조회 1,916
|
|
|
|
14년 전
|
조회 4,375
|
|
|
선택이란
|
14년 전
|
조회 1,607
|
|
|
|
14년 전
|
조회 2,176
|
|
|
|
14년 전
|
조회 1,908
|
|
|
지운아빠
|
14년 전
|
조회 3,628
|
|
|
|
14년 전
|
조회 3,263
|
|
|
|
14년 전
|
조회 1,430
|
|
|
|
14년 전
|
조회 2,470
|
|
|
|
14년 전
|
조회 1,463
|
|
|
|
14년 전
|
조회 3,259
|
|
|
|
14년 전
|
조회 2,822
|
|
|
|
14년 전
|
조회 1,401
|
|
|
|
14년 전
|
조회 6,530
|
|
|
|
14년 전
|
조회 1,774
|
|
|
|
14년 전
|
조회 2,328
|
|
|
|
14년 전
|
조회 2,101
|
|
|
선택이란
|
14년 전
|
조회 2,053
|
|
|
|
14년 전
|
조회 2,020
|
|
|
|
14년 전
|
조회 2,026
|
|
|
|
14년 전
|
조회 1,861
|
|
|
|
14년 전
|
조회 2,209
|
|
|
|
14년 전
|
조회 2,589
|
|
|
|
14년 전
|
조회 1,617
|
|
|
|
14년 전
|
조회 2,016
|
|
|
|
14년 전
|
조회 3,016
|
|
|
|
14년 전
|
조회 2,879
|
|
|
관리자
|
14년 전
|
조회 1,864
|
|
|
|
14년 전
|
조회 2,321
|
|
|
관리자
|
14년 전
|
조회 4,824
|
|
|
|
14년 전
|
조회 1,543
|
|
|
|
14년 전
|
조회 3,533
|
|
|
|
14년 전
|
조회 2,276
|
|
|
선택이란
|
14년 전
|
조회 2,746
|
|
|
선택이란
|
14년 전
|
조회 1,965
|
|
|
|
14년 전
|
조회 1,720
|
|
|
똥싼너구리
|
14년 전
|
조회 1,725
|
|
|
관리자
|
14년 전
|
조회 1,860
|
|
|
|
14년 전
|
조회 1,930
|
|
|
|
14년 전
|
조회 2,830
|
|
|
|
14년 전
|
조회 4,061
|
|
|
관리자
|
14년 전
|
조회 3,137
|
|
|
|
14년 전
|
조회 1,852
|
|
|
|
14년 전
|
조회 2,425
|
|
|
|
14년 전
|
조회 2,677
|
|
|
|
14년 전
|
조회 1,492
|
|
|
|
14년 전
|
조회 2,752
|
|
|
|
14년 전
|
조회 3,971
|
|
|
선택이란
|
14년 전
|
조회 2,630
|
|
|
|
14년 전
|
조회 3,567
|
|
|
|
14년 전
|
조회 4,828
|
|
|
|
14년 전
|
조회 4,942
|
|
|
|
14년 전
|
조회 3,336
|
|
|
|
14년 전
|
조회 1,766
|
|
|
선택이란
|
14년 전
|
조회 2,085
|
|
|
|
14년 전
|
조회 4,883
|
|
|
|
14년 전
|
조회 3,193
|
|
|
|
14년 전
|
조회 2,351
|
|
|
|
14년 전
|
조회 4,739
|
|
|
|
14년 전
|
조회 3,391
|
|
|
|
14년 전
|
조회 1,492
|
|
|
|
14년 전
|
조회 3,393
|
|
|
|
14년 전
|
조회 1,515
|
|
|
|
14년 전
|
조회 1,779
|
|
|
|
14년 전
|
조회 2,630
|
|
|
|
14년 전
|
조회 2,262
|
|
|
|
14년 전
|
조회 2,497
|
|
|
|
14년 전
|
조회 2,032
|
|
|
|
14년 전
|
조회 3,043
|
|
|
|
14년 전
|
조회 1,707
|
|
|
|
14년 전
|
조회 1,729
|
댓글 3개
express.js 가 node에서 http를 쉽게 처리할수 있도록 해주는 라이브러리입니다.
app.get("/page/", function(req, res) {
console.log('request userid : ' + req.params.userid);
}
대충 이런식
현제 전송방식은
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=euc-kr" />
<title>Ajax Test</title>
<script language="Javascript">
/*http://blog.naver.com/ctlim2?Redirect=Log&logNo=50044001483*/
/**
* Ajax Call
* @param strURL : call cgi
* @param strFunction : callBack Function
* @param strArgument : argument
*/
function xmlhttpPost(strURL, strArgument, callFunction) {
var xmlHttpReq = false;
var self = this;
// Mozilla/Safari
if(window.XMLHttpRequest) {
self.xmlHttpReq = new XMLHttpRequest();
}
// IE
else if(window.ActiveXObject) {
self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
self.xmlHttpReq.open('GET', strURL, true);
self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
self.xmlHttpReq.onreadystatechange = function() {
if(self.xmlHttpReq.readyState == 0) { // 아직 초기화 안됨
}
else if(self.xmlHttpReq.readyState == 1) { // 읽는 중
}
else if(self.xmlHttpReq.readyState == 2) { // 읽기 완료
}
else if(self.xmlHttpReq.readyState == 3) { // 작업 중
}
else if(self.xmlHttpReq.readyState == 4) { // 작업완료
callFunction(self.xmlHttpReq);
}
}
self.xmlHttpReq.send(strArgument);
}
/**
* callBack Json
*/
function callBackJson(in_Data){
// JSON 일 때
var arrayDoc = in_Data.responseText;
eval("var jsonData ="+arrayDoc);
//var text = jsonData['id'];
//document.getElementById("result").innerHTML = text;
document.getElementById("result").innerHTML = in_Data.responseText
}
/**
* Ajax Json을 호출 한다.
*/
function callJson()
{
var form = document.forms['f1'];
var id = form.id.value;
var a = form.a.value;
var b = form.b.value;
var id = encodeURIComponent(id);
var a = encodeURIComponent(a);
var b = encodeURIComponent(b);
xmlhttpPost('http://terrorboy.net:40000', "id="+id+"&a="+a+"&b="+b, callBackJson);
}
</script>
</head>
<body>
<form name="f1" accept-charset="">
id: <input id="id" name="id" type="text" value="id" /> <br />
a: <input id="a" name="a" type="text" value="a" /> <br />
b: <input id="b" name="b" type="text" value="b" /> <br />
<input value="Json" type="button" onclick="JavaScript:callJson()" />
<div id="result"></div>
</form>
</body>
</html>
입니다 ㅎㅎ