|
|
|
14년 전
|
조회 2,002
|
|
|
|
14년 전
|
조회 2,696
|
|
|
|
14년 전
|
조회 3,809
|
|
|
|
14년 전
|
조회 3,050
|
|
|
|
14년 전
|
조회 3,118
|
|
|
|
14년 전
|
조회 2,558
|
|
|
|
14년 전
|
조회 2,342
|
|
|
|
14년 전
|
조회 2,242
|
|
|
|
14년 전
|
조회 1,995
|
|
|
|
14년 전
|
조회 1,496
|
|
|
|
14년 전
|
조회 2,413
|
|
|
|
14년 전
|
조회 5,525
|
|
|
|
14년 전
|
조회 2,407
|
|
|
|
14년 전
|
조회 2,164
|
|
|
|
14년 전
|
조회 1,660
|
|
|
|
14년 전
|
조회 1,889
|
|
|
선택이란
|
14년 전
|
조회 1,724
|
|
|
|
14년 전
|
조회 1,582
|
|
|
|
14년 전
|
조회 1,678
|
|
|
|
14년 전
|
조회 1,655
|
|
|
|
14년 전
|
조회 1,617
|
|
|
|
14년 전
|
조회 2,462
|
|
|
|
14년 전
|
조회 1,800
|
|
|
선택이란
|
14년 전
|
조회 1,687
|
|
|
|
14년 전
|
조회 1,594
|
|
|
|
14년 전
|
조회 1,657
|
|
|
|
14년 전
|
조회 1,979
|
|
|
|
14년 전
|
조회 1,887
|
|
|
|
14년 전
|
조회 2,498
|
|
|
|
14년 전
|
조회 2,089
|
|
|
|
14년 전
|
조회 4,570
|
|
|
선택이란
|
14년 전
|
조회 1,804
|
|
|
|
14년 전
|
조회 2,349
|
|
|
|
14년 전
|
조회 2,070
|
|
|
지운아빠
|
14년 전
|
조회 3,803
|
|
|
|
14년 전
|
조회 3,439
|
|
|
|
14년 전
|
조회 1,603
|
|
|
|
14년 전
|
조회 2,671
|
|
|
|
14년 전
|
조회 1,642
|
|
|
|
14년 전
|
조회 3,463
|
|
|
|
14년 전
|
조회 2,992
|
|
|
|
14년 전
|
조회 1,605
|
|
|
|
14년 전
|
조회 6,704
|
|
|
|
14년 전
|
조회 1,965
|
|
|
|
14년 전
|
조회 2,506
|
|
|
|
14년 전
|
조회 2,296
|
|
|
선택이란
|
14년 전
|
조회 2,127
|
|
|
|
14년 전
|
조회 2,199
|
|
|
|
14년 전
|
조회 2,209
|
|
|
|
14년 전
|
조회 2,078
|
|
|
|
14년 전
|
조회 2,386
|
|
|
|
14년 전
|
조회 2,785
|
|
|
|
14년 전
|
조회 1,817
|
|
|
|
14년 전
|
조회 2,198
|
|
|
|
14년 전
|
조회 3,218
|
|
|
|
14년 전
|
조회 3,097
|
|
|
관리자
|
14년 전
|
조회 2,056
|
|
|
|
14년 전
|
조회 2,531
|
|
|
관리자
|
14년 전
|
조회 5,027
|
|
|
|
14년 전
|
조회 1,757
|
|
|
|
14년 전
|
조회 3,740
|
|
|
|
14년 전
|
조회 2,475
|
|
|
선택이란
|
14년 전
|
조회 2,949
|
|
|
선택이란
|
14년 전
|
조회 2,147
|
|
|
|
14년 전
|
조회 1,913
|
|
|
똥싼너구리
|
14년 전
|
조회 1,932
|
|
|
관리자
|
14년 전
|
조회 2,075
|
|
|
|
14년 전
|
조회 2,143
|
|
|
|
14년 전
|
조회 3,047
|
|
|
|
14년 전
|
조회 4,263
|
|
|
관리자
|
14년 전
|
조회 3,337
|
|
|
|
14년 전
|
조회 2,047
|
|
|
|
14년 전
|
조회 2,631
|
|
|
|
14년 전
|
조회 2,892
|
|
|
|
14년 전
|
조회 1,700
|
|
|
|
14년 전
|
조회 2,943
|
|
|
|
14년 전
|
조회 4,180
|
|
|
선택이란
|
14년 전
|
조회 2,848
|
|
|
|
14년 전
|
조회 3,765
|
|
|
|
14년 전
|
조회 4,915
|
|
|
|
14년 전
|
조회 5,147
|
|
|
|
14년 전
|
조회 3,521
|
|
|
|
14년 전
|
조회 1,945
|
|
|
선택이란
|
14년 전
|
조회 2,285
|
|
|
|
14년 전
|
조회 5,072
|
|
|
|
14년 전
|
조회 3,380
|
|
|
|
14년 전
|
조회 2,530
|
|
|
|
14년 전
|
조회 4,927
|
|
|
|
14년 전
|
조회 3,570
|
|
|
|
14년 전
|
조회 1,672
|
|
|
|
14년 전
|
조회 3,580
|
|
|
|
14년 전
|
조회 1,698
|
|
|
|
14년 전
|
조회 1,968
|
|
|
|
14년 전
|
조회 2,822
|
|
|
|
14년 전
|
조회 2,458
|
|
|
|
14년 전
|
조회 2,686
|
|
|
|
14년 전
|
조회 2,220
|
|
|
|
14년 전
|
조회 3,228
|
|
|
|
14년 전
|
조회 1,899
|
|
|
|
14년 전
|
조회 1,932
|
댓글 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>
입니다 ㅎㅎ