|
|
|
14년 전
|
조회 950
|
|
|
|
14년 전
|
조회 1,658
|
|
|
|
14년 전
|
조회 2,761
|
|
|
|
14년 전
|
조회 2,015
|
|
|
|
14년 전
|
조회 2,079
|
|
|
|
14년 전
|
조회 1,477
|
|
|
|
14년 전
|
조회 1,292
|
|
|
|
14년 전
|
조회 1,184
|
|
|
|
14년 전
|
조회 970
|
|
|
|
14년 전
|
조회 437
|
|
|
|
14년 전
|
조회 1,349
|
|
|
|
14년 전
|
조회 4,456
|
|
|
|
14년 전
|
조회 1,327
|
|
|
|
14년 전
|
조회 1,096
|
|
|
|
14년 전
|
조회 587
|
|
|
|
14년 전
|
조회 818
|
|
|
|
14년 전
|
조회 634
|
|
|
|
14년 전
|
조회 525
|
|
|
|
14년 전
|
조회 600
|
|
|
|
14년 전
|
조회 585
|
|
|
|
14년 전
|
조회 522
|
|
|
|
14년 전
|
조회 1,400
|
|
|
|
14년 전
|
조회 725
|
|
|
|
14년 전
|
조회 579
|
|
|
|
14년 전
|
조회 553
|
|
|
|
14년 전
|
조회 605
|
|
|
|
14년 전
|
조회 901
|
|
|
|
14년 전
|
조회 803
|
|
|
|
14년 전
|
조회 1,399
|
|
|
|
14년 전
|
조회 1,020
|
|
|
|
14년 전
|
조회 3,472
|
|
|
|
14년 전
|
조회 698
|
|
|
|
14년 전
|
조회 1,254
|
|
|
|
14년 전
|
조회 983
|
|
|
지운아빠
|
14년 전
|
조회 2,725
|
|
|
|
14년 전
|
조회 2,327
|
|
|
|
14년 전
|
조회 533
|
|
|
|
14년 전
|
조회 1,590
|
|
|
|
14년 전
|
조회 538
|
|
|
|
14년 전
|
조회 2,341
|
|
|
|
14년 전
|
조회 1,888
|
|
|
|
14년 전
|
조회 500
|
|
|
|
14년 전
|
조회 5,586
|
|
|
|
14년 전
|
조회 849
|
|
|
|
14년 전
|
조회 1,358
|
|
|
|
14년 전
|
조회 1,178
|
|
|
|
14년 전
|
조회 1,215
|
|
|
|
14년 전
|
조회 1,100
|
|
|
|
14년 전
|
조회 1,099
|
|
|
|
14년 전
|
조회 932
|
|
|
|
14년 전
|
조회 1,284
|
|
|
|
14년 전
|
조회 1,677
|
|
|
|
14년 전
|
조회 698
|
|
|
|
14년 전
|
조회 1,066
|
|
|
|
14년 전
|
조회 2,105
|
|
|
|
14년 전
|
조회 1,961
|
|
|
관리자
|
14년 전
|
조회 914
|
|
|
|
14년 전
|
조회 1,408
|
|
|
관리자
|
14년 전
|
조회 3,896
|
|
|
|
14년 전
|
조회 631
|
|
|
|
14년 전
|
조회 2,618
|
|
|
|
14년 전
|
조회 1,386
|
|
|
|
14년 전
|
조회 1,828
|
|
|
|
14년 전
|
조회 1,038
|
|
|
|
14년 전
|
조회 814
|
|
|
똥싼너구리
|
14년 전
|
조회 811
|
|
|
관리자
|
14년 전
|
조회 955
|
|
|
|
14년 전
|
조회 1,029
|
|
|
|
14년 전
|
조회 1,915
|
|
|
|
14년 전
|
조회 3,164
|
|
|
관리자
|
14년 전
|
조회 2,207
|
|
|
|
14년 전
|
조회 926
|
|
|
|
14년 전
|
조회 1,534
|
|
|
|
14년 전
|
조회 1,776
|
|
|
|
14년 전
|
조회 580
|
|
|
|
14년 전
|
조회 1,814
|
|
|
|
14년 전
|
조회 3,049
|
|
|
|
14년 전
|
조회 1,734
|
|
|
|
14년 전
|
조회 2,668
|
|
|
|
14년 전
|
조회 3,979
|
|
|
|
14년 전
|
조회 4,010
|
|
|
|
14년 전
|
조회 2,425
|
|
|
|
14년 전
|
조회 860
|
|
|
|
14년 전
|
조회 1,158
|
|
|
|
14년 전
|
조회 3,976
|
|
|
|
14년 전
|
조회 2,294
|
|
|
|
14년 전
|
조회 1,439
|
|
|
|
14년 전
|
조회 3,813
|
|
|
|
14년 전
|
조회 2,488
|
|
|
|
14년 전
|
조회 578
|
|
|
|
14년 전
|
조회 2,479
|
|
|
|
14년 전
|
조회 624
|
|
|
|
14년 전
|
조회 856
|
|
|
|
14년 전
|
조회 1,691
|
|
|
|
14년 전
|
조회 1,313
|
|
|
|
14년 전
|
조회 1,575
|
|
|
|
14년 전
|
조회 1,130
|
|
|
|
14년 전
|
조회 2,129
|
|
|
|
14년 전
|
조회 804
|
|
|
|
14년 전
|
조회 815
|
댓글 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>
입니다 ㅎㅎ