|
|
|
14년 전
|
조회 1,953
|
|
|
|
14년 전
|
조회 2,641
|
|
|
|
14년 전
|
조회 3,743
|
|
|
|
14년 전
|
조회 2,994
|
|
|
|
14년 전
|
조회 3,064
|
|
|
|
14년 전
|
조회 2,503
|
|
|
|
14년 전
|
조회 2,292
|
|
|
|
14년 전
|
조회 2,186
|
|
|
|
14년 전
|
조회 1,948
|
|
|
|
14년 전
|
조회 1,451
|
|
|
|
14년 전
|
조회 2,363
|
|
|
|
14년 전
|
조회 5,473
|
|
|
|
14년 전
|
조회 2,348
|
|
|
|
14년 전
|
조회 2,113
|
|
|
|
14년 전
|
조회 1,601
|
|
|
|
14년 전
|
조회 1,833
|
|
|
선택이란
|
14년 전
|
조회 1,670
|
|
|
|
14년 전
|
조회 1,525
|
|
|
|
14년 전
|
조회 1,635
|
|
|
|
14년 전
|
조회 1,604
|
|
|
|
14년 전
|
조회 1,557
|
|
|
|
14년 전
|
조회 2,422
|
|
|
|
14년 전
|
조회 1,747
|
|
|
선택이란
|
14년 전
|
조회 1,627
|
|
|
|
14년 전
|
조회 1,546
|
|
|
|
14년 전
|
조회 1,624
|
|
|
|
14년 전
|
조회 1,932
|
|
|
|
14년 전
|
조회 1,837
|
|
|
|
14년 전
|
조회 2,435
|
|
|
|
14년 전
|
조회 2,044
|
|
|
|
14년 전
|
조회 4,505
|
|
|
선택이란
|
14년 전
|
조회 1,740
|
|
|
|
14년 전
|
조회 2,302
|
|
|
|
14년 전
|
조회 2,014
|
|
|
지운아빠
|
14년 전
|
조회 3,745
|
|
|
|
14년 전
|
조회 3,388
|
|
|
|
14년 전
|
조회 1,544
|
|
|
|
14년 전
|
조회 2,605
|
|
|
|
14년 전
|
조회 1,583
|
|
|
|
14년 전
|
조회 3,394
|
|
|
|
14년 전
|
조회 2,930
|
|
|
|
14년 전
|
조회 1,544
|
|
|
|
14년 전
|
조회 6,655
|
|
|
|
14년 전
|
조회 1,905
|
|
|
|
14년 전
|
조회 2,446
|
|
|
|
14년 전
|
조회 2,233
|
|
|
선택이란
|
14년 전
|
조회 2,107
|
|
|
|
14년 전
|
조회 2,140
|
|
|
|
14년 전
|
조회 2,144
|
|
|
|
14년 전
|
조회 2,007
|
|
|
|
14년 전
|
조회 2,341
|
|
|
|
14년 전
|
조회 2,722
|
|
|
|
14년 전
|
조회 1,746
|
|
|
|
14년 전
|
조회 2,135
|
|
|
|
14년 전
|
조회 3,154
|
|
|
|
14년 전
|
조회 3,024
|
|
|
관리자
|
14년 전
|
조회 1,999
|
|
|
|
14년 전
|
조회 2,465
|
|
|
관리자
|
14년 전
|
조회 4,958
|
|
|
|
14년 전
|
조회 1,700
|
|
|
|
14년 전
|
조회 3,675
|
|
|
|
14년 전
|
조회 2,408
|
|
|
선택이란
|
14년 전
|
조회 2,885
|
|
|
선택이란
|
14년 전
|
조회 2,100
|
|
|
|
14년 전
|
조회 1,863
|
|
|
똥싼너구리
|
14년 전
|
조회 1,877
|
|
|
관리자
|
14년 전
|
조회 2,015
|
|
|
|
14년 전
|
조회 2,085
|
|
|
|
14년 전
|
조회 2,986
|
|
|
|
14년 전
|
조회 4,204
|
|
|
관리자
|
14년 전
|
조회 3,270
|
|
|
|
14년 전
|
조회 1,988
|
|
|
|
14년 전
|
조회 2,574
|
|
|
|
14년 전
|
조회 2,823
|
|
|
|
14년 전
|
조회 1,639
|
|
|
|
14년 전
|
조회 2,882
|
|
|
|
14년 전
|
조회 4,112
|
|
|
선택이란
|
14년 전
|
조회 2,786
|
|
|
|
14년 전
|
조회 3,713
|
|
|
|
14년 전
|
조회 4,893
|
|
|
|
14년 전
|
조회 5,086
|
|
|
|
14년 전
|
조회 3,463
|
|
|
|
14년 전
|
조회 1,883
|
|
|
선택이란
|
14년 전
|
조회 2,221
|
|
|
|
14년 전
|
조회 5,010
|
|
|
|
14년 전
|
조회 3,324
|
|
|
|
14년 전
|
조회 2,475
|
|
|
|
14년 전
|
조회 4,877
|
|
|
|
14년 전
|
조회 3,517
|
|
|
|
14년 전
|
조회 1,620
|
|
|
|
14년 전
|
조회 3,527
|
|
|
|
14년 전
|
조회 1,645
|
|
|
|
14년 전
|
조회 1,907
|
|
|
|
14년 전
|
조회 2,754
|
|
|
|
14년 전
|
조회 2,380
|
|
|
|
14년 전
|
조회 2,613
|
|
|
|
14년 전
|
조회 2,161
|
|
|
|
14년 전
|
조회 3,170
|
|
|
|
14년 전
|
조회 1,837
|
|
|
|
14년 전
|
조회 1,854
|
댓글 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>
입니다 ㅎㅎ