|
|
|
14년 전
|
조회 920
|
|
|
|
14년 전
|
조회 1,634
|
|
|
|
14년 전
|
조회 2,732
|
|
|
|
14년 전
|
조회 1,987
|
|
|
|
14년 전
|
조회 2,048
|
|
|
|
14년 전
|
조회 1,450
|
|
|
|
14년 전
|
조회 1,259
|
|
|
|
14년 전
|
조회 1,160
|
|
|
|
14년 전
|
조회 939
|
|
|
|
14년 전
|
조회 409
|
|
|
|
14년 전
|
조회 1,320
|
|
|
|
14년 전
|
조회 4,426
|
|
|
|
14년 전
|
조회 1,296
|
|
|
|
14년 전
|
조회 1,061
|
|
|
|
14년 전
|
조회 561
|
|
|
|
14년 전
|
조회 786
|
|
|
|
14년 전
|
조회 612
|
|
|
|
14년 전
|
조회 496
|
|
|
|
14년 전
|
조회 573
|
|
|
|
14년 전
|
조회 555
|
|
|
|
14년 전
|
조회 498
|
|
|
|
14년 전
|
조회 1,370
|
|
|
|
14년 전
|
조회 692
|
|
|
|
14년 전
|
조회 546
|
|
|
|
14년 전
|
조회 519
|
|
|
|
14년 전
|
조회 576
|
|
|
|
14년 전
|
조회 873
|
|
|
|
14년 전
|
조회 781
|
|
|
|
14년 전
|
조회 1,367
|
|
|
|
14년 전
|
조회 985
|
|
|
|
14년 전
|
조회 3,446
|
|
|
|
14년 전
|
조회 661
|
|
|
|
14년 전
|
조회 1,213
|
|
|
|
14년 전
|
조회 954
|
|
|
지운아빠
|
14년 전
|
조회 2,689
|
|
|
|
14년 전
|
조회 2,302
|
|
|
|
14년 전
|
조회 507
|
|
|
|
14년 전
|
조회 1,570
|
|
|
|
14년 전
|
조회 515
|
|
|
|
14년 전
|
조회 2,315
|
|
|
|
14년 전
|
조회 1,857
|
|
|
|
14년 전
|
조회 473
|
|
|
|
14년 전
|
조회 5,557
|
|
|
|
14년 전
|
조회 827
|
|
|
|
14년 전
|
조회 1,331
|
|
|
|
14년 전
|
조회 1,151
|
|
|
|
14년 전
|
조회 1,197
|
|
|
|
14년 전
|
조회 1,072
|
|
|
|
14년 전
|
조회 1,077
|
|
|
|
14년 전
|
조회 907
|
|
|
|
14년 전
|
조회 1,255
|
|
|
|
14년 전
|
조회 1,645
|
|
|
|
14년 전
|
조회 670
|
|
|
|
14년 전
|
조회 1,044
|
|
|
|
14년 전
|
조회 2,084
|
|
|
|
14년 전
|
조회 1,934
|
|
|
관리자
|
14년 전
|
조회 884
|
|
|
|
14년 전
|
조회 1,382
|
|
|
관리자
|
14년 전
|
조회 3,868
|
|
|
|
14년 전
|
조회 604
|
|
|
|
14년 전
|
조회 2,591
|
|
|
|
14년 전
|
조회 1,369
|
|
|
|
14년 전
|
조회 1,800
|
|
|
|
14년 전
|
조회 1,018
|
|
|
|
14년 전
|
조회 790
|
|
|
똥싼너구리
|
14년 전
|
조회 788
|
|
|
관리자
|
14년 전
|
조회 928
|
|
|
|
14년 전
|
조회 1,005
|
|
|
|
14년 전
|
조회 1,886
|
|
|
|
14년 전
|
조회 3,134
|
|
|
관리자
|
14년 전
|
조회 2,184
|
|
|
|
14년 전
|
조회 896
|
|
|
|
14년 전
|
조회 1,508
|
|
|
|
14년 전
|
조회 1,747
|
|
|
|
14년 전
|
조회 551
|
|
|
|
14년 전
|
조회 1,789
|
|
|
|
14년 전
|
조회 3,025
|
|
|
|
14년 전
|
조회 1,706
|
|
|
|
14년 전
|
조회 2,643
|
|
|
|
14년 전
|
조회 3,956
|
|
|
|
14년 전
|
조회 3,988
|
|
|
|
14년 전
|
조회 2,395
|
|
|
|
14년 전
|
조회 834
|
|
|
|
14년 전
|
조회 1,123
|
|
|
|
14년 전
|
조회 3,948
|
|
|
|
14년 전
|
조회 2,267
|
|
|
|
14년 전
|
조회 1,417
|
|
|
|
14년 전
|
조회 3,785
|
|
|
|
14년 전
|
조회 2,464
|
|
|
|
14년 전
|
조회 547
|
|
|
|
14년 전
|
조회 2,452
|
|
|
|
14년 전
|
조회 603
|
|
|
|
14년 전
|
조회 834
|
|
|
|
14년 전
|
조회 1,665
|
|
|
|
14년 전
|
조회 1,293
|
|
|
|
14년 전
|
조회 1,543
|
|
|
|
14년 전
|
조회 1,108
|
|
|
|
14년 전
|
조회 2,100
|
|
|
|
14년 전
|
조회 779
|
|
|
|
14년 전
|
조회 794
|
댓글 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>
입니다 ㅎㅎ