|
|
|
12-02-26
|
조회 3,177
|
|
|
|
12-02-26
|
조회 3,495
|
|
|
|
12-02-26
|
조회 3,339
|
|
|
|
12-02-26
|
조회 3,418
|
|
|
|
12-02-26
|
조회 3,464
|
|
|
|
12-02-26
|
조회 3,316
|
|
|
|
12-02-26
|
조회 3,641
|
|
|
|
12-02-26
|
조회 3,469
|
|
|
|
12-02-26
|
조회 3,558
|
|
|
|
12-02-26
|
조회 4,039
|
|
|
|
12-02-26
|
조회 2,990
|
|
|
|
12-02-26
|
조회 5,177
|
|
|
|
12-02-25
|
조회 2,745
|
|
|
|
12-02-25
|
조회 3,224
|
|
|
|
12-02-24
|
조회 2,928
|
|
|
|
12-02-24
|
조회 3,311
|
|
|
|
12-02-24
|
조회 3,288
|
|
|
|
12-02-24
|
조회 3,604
|
|
|
|
12-02-24
|
조회 3,135
|
|
|
|
12-02-24
|
조회 3,941
|
|
|
|
12-02-24
|
조회 3,906
|
|
|
|
12-02-24
|
조회 3,508
|
|
|
亞波治
|
12-02-24
|
조회 9,367
|
|
|
|
12-02-23
|
조회 2,875
|
|
|
|
12-02-23
|
조회 3,322
|
|
|
|
12-02-23
|
조회 3,222
|
|
|
|
12-02-23
|
조회 3,158
|
|
|
|
12-02-23
|
조회 3,806
|
|
|
|
12-02-23
|
조회 2,891
|
|
|
|
12-02-23
|
조회 3,371
|
|
|
|
12-02-23
|
조회 3,051
|
|
|
|
12-02-23
|
조회 2,807
|
|
|
|
12-02-22
|
조회 3,704
|
|
|
|
12-02-22
|
조회 5,467
|
|
|
|
12-02-22
|
조회 3,018
|
|
|
|
12-02-22
|
조회 4,420
|
|
|
|
12-02-22
|
조회 3,291
|
|
|
|
12-02-22
|
조회 3,115
|
|
|
|
12-02-22
|
조회 4,029
|
|
|
|
12-02-22
|
조회 3,915
|
|
|
|
12-02-22
|
조회 2,844
|
|
|
|
12-02-22
|
조회 3,883
|
|
|
|
12-02-22
|
조회 4,342
|
|
|
|
12-02-22
|
조회 3,764
|
|
|
|
12-02-22
|
조회 2,947
|
|
|
|
12-02-22
|
조회 4,596
|
|
|
|
12-02-21
|
조회 3,157
|
|
|
|
12-02-21
|
조회 2,936
|
|
|
|
12-02-21
|
조회 2,842
|
|
|
|
12-02-21
|
조회 3,752
|
|
|
|
12-02-21
|
조회 3,991
|
|
|
|
12-02-21
|
조회 3,414
|
|
|
|
12-02-21
|
조회 2,928
|
|
|
|
12-02-20
|
조회 3,170
|
|
|
|
12-02-20
|
조회 3,805
|
|
|
|
12-02-20
|
조회 3,754
|
|
|
|
12-02-20
|
조회 3,030
|
|
|
|
12-02-20
|
조회 5,815
|
|
|
|
12-02-20
|
조회 3,612
|
|
|
|
12-02-20
|
조회 6,827
|
|
|
|
12-02-20
|
조회 3,225
|
|
|
|
12-02-20
|
조회 4,201
|
|
|
亞波治
|
12-02-19
|
조회 3,386
|
|
|
|
12-02-18
|
조회 3,118
|
|
|
|
12-02-18
|
조회 3,862
|
|
|
|
12-02-17
|
조회 2,992
|
|
|
|
12-02-17
|
조회 4,185
|
|
|
관리자
|
12-02-17
|
조회 3,066
|
|
|
亞波治
|
12-02-17
|
조회 3,626
|
|
|
|
12-02-17
|
조회 3,401
|
|
|
|
12-02-17
|
조회 6,268
|
|
|
|
12-02-17
|
조회 4,462
|
|
|
|
12-02-17
|
조회 3,090
|
|
|
|
12-02-17
|
조회 3,116
|
|
|
|
12-02-17
|
조회 3,479
|
|
|
|
12-02-16
|
조회 3,306
|
|
|
|
12-02-16
|
조회 3,377
|
|
|
|
12-02-16
|
조회 4,739
|
|
|
선택이란
|
12-02-16
|
조회 2,986
|
|
|
|
12-02-16
|
조회 5,378
|
|
|
|
12-02-16
|
조회 5,123
|
|
|
|
12-02-15
|
조회 3,669
|
|
|
|
12-02-15
|
조회 3,287
|
|
|
亞波治
|
12-02-15
|
조회 4,829
|
|
|
|
12-02-15
|
조회 3,320
|
|
|
|
12-02-15
|
조회 3,715
|
|
|
|
12-02-15
|
조회 2,790
|
|
|
亞波治
|
12-02-15
|
조회 4,062
|
|
|
|
12-02-14
|
조회 3,579
|
|
|
|
12-02-14
|
조회 3,684
|
|
|
|
12-02-14
|
조회 4,094
|
|
|
선택이란
|
12-02-14
|
조회 3,132
|
|
|
|
12-02-14
|
조회 6,217
|
|
|
|
12-02-14
|
조회 3,165
|
|
|
|
12-02-14
|
조회 4,185
|
|
|
|
12-02-13
|
조회 3,467
|
|
|
|
12-02-13
|
조회 3,086
|
|
|
관리자
|
12-02-13
|
조회 7,230
|
|
|
|
12-02-12
|
조회 2,902
|
|
|
|
12-02-12
|
조회 5,284
|
댓글 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>
입니다 ㅎㅎ