|
|
|
14년 전
|
조회 2,040
|
|
|
|
14년 전
|
조회 2,726
|
|
|
|
14년 전
|
조회 3,836
|
|
|
|
14년 전
|
조회 3,076
|
|
|
|
14년 전
|
조회 3,146
|
|
|
|
14년 전
|
조회 2,592
|
|
|
|
14년 전
|
조회 2,375
|
|
|
|
14년 전
|
조회 2,269
|
|
|
|
14년 전
|
조회 2,027
|
|
|
|
14년 전
|
조회 1,520
|
|
|
|
14년 전
|
조회 2,452
|
|
|
|
14년 전
|
조회 5,554
|
|
|
|
14년 전
|
조회 2,434
|
|
|
|
14년 전
|
조회 2,187
|
|
|
|
14년 전
|
조회 1,699
|
|
|
|
14년 전
|
조회 1,917
|
|
|
선택이란
|
14년 전
|
조회 1,754
|
|
|
|
14년 전
|
조회 1,617
|
|
|
|
14년 전
|
조회 1,701
|
|
|
|
14년 전
|
조회 1,688
|
|
|
|
14년 전
|
조회 1,648
|
|
|
|
14년 전
|
조회 2,488
|
|
|
|
14년 전
|
조회 1,828
|
|
|
선택이란
|
14년 전
|
조회 1,713
|
|
|
|
14년 전
|
조회 1,618
|
|
|
|
14년 전
|
조회 1,678
|
|
|
|
14년 전
|
조회 1,999
|
|
|
|
14년 전
|
조회 1,913
|
|
|
|
14년 전
|
조회 2,524
|
|
|
|
14년 전
|
조회 2,123
|
|
|
|
14년 전
|
조회 4,601
|
|
|
선택이란
|
14년 전
|
조회 1,830
|
|
|
|
14년 전
|
조회 2,385
|
|
|
|
14년 전
|
조회 2,102
|
|
|
지운아빠
|
14년 전
|
조회 3,834
|
|
|
|
14년 전
|
조회 3,471
|
|
|
|
14년 전
|
조회 1,639
|
|
|
|
14년 전
|
조회 2,692
|
|
|
|
14년 전
|
조회 1,672
|
|
|
|
14년 전
|
조회 3,498
|
|
|
|
14년 전
|
조회 3,019
|
|
|
|
14년 전
|
조회 1,629
|
|
|
|
14년 전
|
조회 6,734
|
|
|
|
14년 전
|
조회 1,998
|
|
|
|
14년 전
|
조회 2,531
|
|
|
|
14년 전
|
조회 2,330
|
|
|
선택이란
|
14년 전
|
조회 2,138
|
|
|
|
14년 전
|
조회 2,228
|
|
|
|
14년 전
|
조회 2,253
|
|
|
|
14년 전
|
조회 2,111
|
|
|
|
14년 전
|
조회 2,427
|
|
|
|
14년 전
|
조회 2,819
|
|
|
|
14년 전
|
조회 1,849
|
|
|
|
14년 전
|
조회 2,242
|
|
|
|
14년 전
|
조회 3,247
|
|
|
|
14년 전
|
조회 3,128
|
|
|
관리자
|
14년 전
|
조회 2,091
|
|
|
|
14년 전
|
조회 2,569
|
|
|
관리자
|
14년 전
|
조회 5,061
|
|
|
|
14년 전
|
조회 1,788
|
|
|
|
14년 전
|
조회 3,776
|
|
|
|
14년 전
|
조회 2,507
|
|
|
선택이란
|
14년 전
|
조회 2,983
|
|
|
선택이란
|
14년 전
|
조회 2,182
|
|
|
|
14년 전
|
조회 1,939
|
|
|
똥싼너구리
|
14년 전
|
조회 1,962
|
|
|
관리자
|
14년 전
|
조회 2,104
|
|
|
|
14년 전
|
조회 2,178
|
|
|
|
14년 전
|
조회 3,081
|
|
|
|
14년 전
|
조회 4,292
|
|
|
관리자
|
14년 전
|
조회 3,368
|
|
|
|
14년 전
|
조회 2,077
|
|
|
|
14년 전
|
조회 2,666
|
|
|
|
14년 전
|
조회 2,924
|
|
|
|
14년 전
|
조회 1,726
|
|
|
|
14년 전
|
조회 2,980
|
|
|
|
14년 전
|
조회 4,204
|
|
|
선택이란
|
14년 전
|
조회 2,883
|
|
|
|
14년 전
|
조회 3,803
|
|
|
|
14년 전
|
조회 4,927
|
|
|
|
14년 전
|
조회 5,169
|
|
|
|
14년 전
|
조회 3,547
|
|
|
|
14년 전
|
조회 1,971
|
|
|
선택이란
|
14년 전
|
조회 2,312
|
|
|
|
14년 전
|
조회 5,096
|
|
|
|
14년 전
|
조회 3,411
|
|
|
|
14년 전
|
조회 2,561
|
|
|
|
14년 전
|
조회 4,953
|
|
|
|
14년 전
|
조회 3,599
|
|
|
|
14년 전
|
조회 1,705
|
|
|
|
14년 전
|
조회 3,612
|
|
|
|
14년 전
|
조회 1,729
|
|
|
|
14년 전
|
조회 1,987
|
|
|
|
14년 전
|
조회 2,846
|
|
|
|
14년 전
|
조회 2,490
|
|
|
|
14년 전
|
조회 2,711
|
|
|
|
14년 전
|
조회 2,252
|
|
|
|
14년 전
|
조회 3,259
|
|
|
|
14년 전
|
조회 1,930
|
|
|
|
14년 전
|
조회 1,958
|
댓글 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>
입니다 ㅎㅎ