|
|
|
12-03-19
|
조회 3,474
|
|
|
|
12-03-16
|
조회 4,030
|
|
|
|
12-03-14
|
조회 3,902
|
|
|
|
12-03-13
|
조회 3,530
|
|
|
|
12-03-13
|
조회 4,399
|
|
|
|
12-03-12
|
조회 5,447
|
|
|
|
12-03-12
|
조회 1만
|
|
|
|
12-03-08
|
조회 6,014
|
|
|
|
12-03-06
|
조회 1.1만
|
|
|
|
12-03-06
|
조회 3,710
|
|
|
|
12-03-06
|
조회 6,241
|
|
|
|
12-03-02
|
조회 5,007
|
|
|
|
12-02-29
|
조회 3,572
|
|
|
|
12-02-27
|
조회 4,062
|
|
|
|
12-02-22
|
조회 3,633
|
|
|
|
12-02-20
|
조회 3,612
|
|
|
|
12-02-20
|
조회 6,710
|
|
|
|
12-02-01
|
조회 3,227
|
|
|
|
12-01-30
|
조회 8,754
|
|
|
똥싼너구리
|
12-01-29
|
조회 3,247
|
|
|
|
12-01-24
|
조회 3,471
|
|
|
|
12-01-21
|
조회 3,210
|
|
|
|
12-01-10
|
조회 3,686
|
|
|
|
11-12-26
|
조회 3,572
|
|
|
|
11-12-23
|
조회 4,999
|
|
|
|
11-12-23
|
조회 4,647
|
|
|
|
11-12-23
|
조회 4,207
|
|
|
|
11-12-23
|
조회 7,988
|
|
|
|
11-12-22
|
조회 3,707
|
|
|
|
11-12-17
|
조회 3,673
|
|
|
|
11-12-12
|
조회 3,086
|
|
|
|
11-12-08
|
조회 7,648
|
|
|
|
11-12-08
|
조회 3,502
|
|
|
|
11-12-07
|
조회 3,783
|
|
|
|
11-12-06
|
조회 5,497
|
|
|
|
11-12-02
|
조회 3,465
|
|
|
|
11-12-01
|
조회 3,117
|
|
|
|
11-11-30
|
조회 6,910
|
|
|
|
11-11-26
|
조회 3,843
|
|
|
관리자
|
11-11-24
|
조회 4,632
|
|
|
관리자
|
11-11-22
|
조회 3,003
|
|
|
|
11-11-22
|
조회 6,631
|
|
|
관리자
|
11-11-18
|
조회 5,020
|
|
|
|
11-11-16
|
조회 3,432
|
|
|
|
11-11-14
|
조회 3,450
|
|
|
관리자
|
11-11-12
|
조회 3,948
|
|
|
|
11-11-08
|
조회 3,270
|
|
|
|
11-11-06
|
조회 1만
|
|
|
|
11-11-06
|
조회 3,843
|
|
|
|
11-11-03
|
조회 5,534
|
|
|
|
11-11-02
|
조회 5,799
|
|
|
|
11-11-01
|
조회 9,317
|
|
|
|
11-10-19
|
조회 2,807
|
|
|
|
11-10-17
|
조회 2,607
|
|
|
|
11-10-10
|
조회 2,551
|
|
|
|
11-10-07
|
조회 3,345
|
|
|
|
11-10-06
|
조회 3,937
|
|
|
|
11-10-06
|
조회 2,493
|
|
|
관리자
|
11-10-02
|
조회 3,242
|
|
|
관리자
|
11-09-08
|
조회 4,247
|
|
|
|
11-09-08
|
조회 2,624
|
|
|
|
11-09-07
|
조회 2,616
|
|
|
|
11-09-02
|
조회 2,695
|
|
|
|
11-09-01
|
조회 3,636
|
|
|
|
11-08-28
|
조회 3,523
|
|
|
|
11-08-23
|
조회 3,367
|
|
|
|
11-08-22
|
조회 2,786
|
|
|
|
11-08-22
|
조회 2,381
|
|
|
|
11-08-13
|
조회 2,423
|
|
|
|
11-08-05
|
조회 2,881
|
|
|
|
11-08-03
|
조회 4,088
|
|
|
|
11-07-03
|
조회 2,575
|
|
|
|
11-06-15
|
조회 3,216
|
|
|
|
11-06-15
|
조회 3,046
|
|
|
|
11-05-15
|
조회 2,851
|
|
|
|
11-05-11
|
조회 5,582
|
|
|
관리자
|
11-04-12
|
조회 2,987
|
|
|
|
11-01-27
|
조회 3,820
|
|
|
|
11-01-26
|
조회 2,617
|
|
|
|
11-01-26
|
조회 4,463
|
|
|
|
11-01-18
|
조회 2,671
|
|
|
|
10-11-23
|
조회 2,848
|
|
|
|
10-10-24
|
조회 4,730
|
|
|
|
10-09-15
|
조회 4,416
|
|
|
관리자
|
10-09-07
|
조회 3,386
|
|
|
|
10-08-27
|
조회 4,077
|
|
|
관리자
|
10-08-20
|
조회 6,968
|
|
|
|
10-07-30
|
조회 5,645
|
|
|
|
10-06-30
|
조회 2,870
|
|
|
관리자
|
10-06-11
|
조회 4,629
|
|
|
|
10-06-11
|
조회 3,328
|
|
|
|
10-05-15
|
조회 4,162
|
|
|
|
10-05-10
|
조회 2,845
|
|
|
관리자
|
10-03-19
|
조회 5,414
|
|
|
|
10-03-05
|
조회 5,176
|
|
|
|
10-02-17
|
조회 5,579
|
|
|
|
09-11-21
|
조회 6,927
|
|
|
|
09-11-09
|
조회 3,998
|
|
|
관리자
|
09-11-04
|
조회 6,724
|
|
|
|
09-10-26
|
조회 3,854
|
댓글 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>
입니다 ㅎㅎ