|
|
|
14년 전
|
조회 1,673
|
|
|
|
14년 전
|
조회 2,335
|
|
|
|
14년 전
|
조회 3,460
|
|
|
|
14년 전
|
조회 2,689
|
|
|
|
14년 전
|
조회 2,766
|
|
|
|
14년 전
|
조회 2,200
|
|
|
|
14년 전
|
조회 1,988
|
|
|
|
14년 전
|
조회 1,890
|
|
|
|
14년 전
|
조회 1,657
|
|
|
|
14년 전
|
조회 1,132
|
|
|
|
14년 전
|
조회 2,079
|
|
|
|
14년 전
|
조회 5,158
|
|
|
|
14년 전
|
조회 2,061
|
|
|
|
14년 전
|
조회 1,836
|
|
|
|
14년 전
|
조회 1,325
|
|
|
|
14년 전
|
조회 1,558
|
|
|
선택이란
|
14년 전
|
조회 1,354
|
|
|
|
14년 전
|
조회 1,238
|
|
|
|
14년 전
|
조회 1,319
|
|
|
|
14년 전
|
조회 1,333
|
|
|
|
14년 전
|
조회 1,288
|
|
|
|
14년 전
|
조회 2,131
|
|
|
|
14년 전
|
조회 1,462
|
|
|
선택이란
|
14년 전
|
조회 1,314
|
|
|
|
14년 전
|
조회 1,249
|
|
|
|
14년 전
|
조회 1,298
|
|
|
|
14년 전
|
조회 1,632
|
|
|
|
14년 전
|
조회 1,540
|
|
|
|
14년 전
|
조회 2,147
|
|
|
|
14년 전
|
조회 1,746
|
|
|
|
14년 전
|
조회 4,206
|
|
|
선택이란
|
14년 전
|
조회 1,421
|
|
|
|
14년 전
|
조회 2,023
|
|
|
|
14년 전
|
조회 1,722
|
|
|
지운아빠
|
14년 전
|
조회 3,486
|
|
|
|
14년 전
|
조회 3,092
|
|
|
|
14년 전
|
조회 1,279
|
|
|
|
14년 전
|
조회 2,286
|
|
|
|
14년 전
|
조회 1,307
|
|
|
|
14년 전
|
조회 3,073
|
|
|
|
14년 전
|
조회 2,641
|
|
|
|
14년 전
|
조회 1,227
|
|
|
|
14년 전
|
조회 6,363
|
|
|
|
14년 전
|
조회 1,620
|
|
|
|
14년 전
|
조회 2,142
|
|
|
|
14년 전
|
조회 1,944
|
|
|
선택이란
|
14년 전
|
조회 1,859
|
|
|
|
14년 전
|
조회 1,847
|
|
|
|
14년 전
|
조회 1,847
|
|
|
|
14년 전
|
조회 1,665
|
|
|
|
14년 전
|
조회 2,034
|
|
|
|
14년 전
|
조회 2,434
|
|
|
|
14년 전
|
조회 1,466
|
|
|
|
14년 전
|
조회 1,859
|
|
|
|
14년 전
|
조회 2,838
|
|
|
|
14년 전
|
조회 2,687
|
|
|
관리자
|
14년 전
|
조회 1,674
|
|
|
|
14년 전
|
조회 2,145
|
|
|
관리자
|
14년 전
|
조회 4,643
|
|
|
|
14년 전
|
조회 1,395
|
|
|
|
14년 전
|
조회 3,359
|
|
|
|
14년 전
|
조회 2,121
|
|
|
선택이란
|
14년 전
|
조회 2,572
|
|
|
선택이란
|
14년 전
|
조회 1,786
|
|
|
|
14년 전
|
조회 1,547
|
|
|
똥싼너구리
|
14년 전
|
조회 1,549
|
|
|
관리자
|
14년 전
|
조회 1,678
|
|
|
|
14년 전
|
조회 1,763
|
|
|
|
14년 전
|
조회 2,644
|
|
|
|
14년 전
|
조회 3,896
|
|
|
관리자
|
14년 전
|
조회 2,965
|
|
|
|
14년 전
|
조회 1,665
|
|
|
|
14년 전
|
조회 2,256
|
|
|
|
14년 전
|
조회 2,538
|
|
|
|
14년 전
|
조회 1,319
|
|
|
|
14년 전
|
조회 2,584
|
|
|
|
14년 전
|
조회 3,790
|
|
|
선택이란
|
14년 전
|
조회 2,466
|
|
|
|
14년 전
|
조회 3,403
|
|
|
|
14년 전
|
조회 4,642
|
|
|
|
14년 전
|
조회 4,748
|
|
|
|
14년 전
|
조회 3,146
|
|
|
|
14년 전
|
조회 1,586
|
|
|
선택이란
|
14년 전
|
조회 1,899
|
|
|
|
14년 전
|
조회 4,708
|
|
|
|
14년 전
|
조회 3,014
|
|
|
|
14년 전
|
조회 2,187
|
|
|
|
14년 전
|
조회 4,554
|
|
|
|
14년 전
|
조회 3,203
|
|
|
|
14년 전
|
조회 1,297
|
|
|
|
14년 전
|
조회 3,201
|
|
|
|
14년 전
|
조회 1,330
|
|
|
|
14년 전
|
조회 1,568
|
|
|
|
14년 전
|
조회 2,450
|
|
|
|
14년 전
|
조회 2,069
|
|
|
|
14년 전
|
조회 2,318
|
|
|
|
14년 전
|
조회 1,848
|
|
|
|
14년 전
|
조회 2,869
|
|
|
|
14년 전
|
조회 1,528
|
|
|
|
14년 전
|
조회 1,536
|
댓글 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>
입니다 ㅎㅎ