|
|
|
14년 전
|
조회 1,601
|
|
|
|
14년 전
|
조회 2,260
|
|
|
|
14년 전
|
조회 3,400
|
|
|
|
14년 전
|
조회 2,631
|
|
|
|
14년 전
|
조회 2,688
|
|
|
|
14년 전
|
조회 2,120
|
|
|
|
14년 전
|
조회 1,908
|
|
|
|
14년 전
|
조회 1,825
|
|
|
|
14년 전
|
조회 1,582
|
|
|
|
14년 전
|
조회 1,058
|
|
|
|
14년 전
|
조회 2,005
|
|
|
|
14년 전
|
조회 5,074
|
|
|
|
14년 전
|
조회 1,981
|
|
|
|
14년 전
|
조회 1,750
|
|
|
|
14년 전
|
조회 1,252
|
|
|
|
14년 전
|
조회 1,480
|
|
|
선택이란
|
14년 전
|
조회 1,273
|
|
|
|
14년 전
|
조회 1,169
|
|
|
|
14년 전
|
조회 1,235
|
|
|
|
14년 전
|
조회 1,249
|
|
|
|
14년 전
|
조회 1,196
|
|
|
|
14년 전
|
조회 2,051
|
|
|
|
14년 전
|
조회 1,378
|
|
|
선택이란
|
14년 전
|
조회 1,229
|
|
|
|
14년 전
|
조회 1,171
|
|
|
|
14년 전
|
조회 1,232
|
|
|
|
14년 전
|
조회 1,558
|
|
|
|
14년 전
|
조회 1,449
|
|
|
|
14년 전
|
조회 2,095
|
|
|
|
14년 전
|
조회 1,667
|
|
|
|
14년 전
|
조회 4,127
|
|
|
선택이란
|
14년 전
|
조회 1,341
|
|
|
|
14년 전
|
조회 1,939
|
|
|
|
14년 전
|
조회 1,637
|
|
|
지운아빠
|
14년 전
|
조회 3,427
|
|
|
|
14년 전
|
조회 3,038
|
|
|
|
14년 전
|
조회 1,199
|
|
|
|
14년 전
|
조회 2,203
|
|
|
|
14년 전
|
조회 1,226
|
|
|
|
14년 전
|
조회 2,985
|
|
|
|
14년 전
|
조회 2,588
|
|
|
|
14년 전
|
조회 1,137
|
|
|
|
14년 전
|
조회 6,304
|
|
|
|
14년 전
|
조회 1,524
|
|
|
|
14년 전
|
조회 2,093
|
|
|
|
14년 전
|
조회 1,857
|
|
|
선택이란
|
14년 전
|
조회 1,754
|
|
|
|
14년 전
|
조회 1,752
|
|
|
|
14년 전
|
조회 1,761
|
|
|
|
14년 전
|
조회 1,560
|
|
|
|
14년 전
|
조회 1,948
|
|
|
|
14년 전
|
조회 2,344
|
|
|
|
14년 전
|
조회 1,383
|
|
|
|
14년 전
|
조회 1,764
|
|
|
|
14년 전
|
조회 2,748
|
|
|
|
14년 전
|
조회 2,601
|
|
|
관리자
|
14년 전
|
조회 1,566
|
|
|
|
14년 전
|
조회 2,061
|
|
|
관리자
|
14년 전
|
조회 4,568
|
|
|
|
14년 전
|
조회 1,298
|
|
|
|
14년 전
|
조회 3,258
|
|
|
|
14년 전
|
조회 2,068
|
|
|
선택이란
|
14년 전
|
조회 2,497
|
|
|
선택이란
|
14년 전
|
조회 1,695
|
|
|
|
14년 전
|
조회 1,465
|
|
|
똥싼너구리
|
14년 전
|
조회 1,463
|
|
|
관리자
|
14년 전
|
조회 1,585
|
|
|
|
14년 전
|
조회 1,680
|
|
|
|
14년 전
|
조회 2,576
|
|
|
|
14년 전
|
조회 3,805
|
|
|
관리자
|
14년 전
|
조회 2,880
|
|
|
|
14년 전
|
조회 1,581
|
|
|
|
14년 전
|
조회 2,180
|
|
|
|
14년 전
|
조회 2,461
|
|
|
|
14년 전
|
조회 1,224
|
|
|
|
14년 전
|
조회 2,498
|
|
|
|
14년 전
|
조회 3,707
|
|
|
선택이란
|
14년 전
|
조회 2,392
|
|
|
|
14년 전
|
조회 3,307
|
|
|
|
14년 전
|
조회 4,551
|
|
|
|
14년 전
|
조회 4,664
|
|
|
|
14년 전
|
조회 3,062
|
|
|
|
14년 전
|
조회 1,531
|
|
|
선택이란
|
14년 전
|
조회 1,793
|
|
|
|
14년 전
|
조회 4,624
|
|
|
|
14년 전
|
조회 2,932
|
|
|
|
14년 전
|
조회 2,093
|
|
|
|
14년 전
|
조회 4,481
|
|
|
|
14년 전
|
조회 3,117
|
|
|
|
14년 전
|
조회 1,204
|
|
|
|
14년 전
|
조회 3,112
|
|
|
|
14년 전
|
조회 1,247
|
|
|
|
14년 전
|
조회 1,483
|
|
|
|
14년 전
|
조회 2,375
|
|
|
|
14년 전
|
조회 1,978
|
|
|
|
14년 전
|
조회 2,235
|
|
|
|
14년 전
|
조회 1,761
|
|
|
|
14년 전
|
조회 2,790
|
|
|
|
14년 전
|
조회 1,432
|
|
|
|
14년 전
|
조회 1,446
|
댓글 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>
입니다 ㅎㅎ