|
|
|
14년 전
|
조회 943
|
|
|
|
14년 전
|
조회 1,654
|
|
|
|
14년 전
|
조회 2,758
|
|
|
|
14년 전
|
조회 2,014
|
|
|
|
14년 전
|
조회 2,073
|
|
|
|
14년 전
|
조회 1,473
|
|
|
|
14년 전
|
조회 1,289
|
|
|
|
14년 전
|
조회 1,184
|
|
|
|
14년 전
|
조회 964
|
|
|
|
14년 전
|
조회 431
|
|
|
|
14년 전
|
조회 1,345
|
|
|
|
14년 전
|
조회 4,447
|
|
|
|
14년 전
|
조회 1,324
|
|
|
|
14년 전
|
조회 1,090
|
|
|
|
14년 전
|
조회 582
|
|
|
|
14년 전
|
조회 816
|
|
|
|
14년 전
|
조회 633
|
|
|
|
14년 전
|
조회 523
|
|
|
|
14년 전
|
조회 598
|
|
|
|
14년 전
|
조회 580
|
|
|
|
14년 전
|
조회 517
|
|
|
|
14년 전
|
조회 1,395
|
|
|
|
14년 전
|
조회 721
|
|
|
|
14년 전
|
조회 576
|
|
|
|
14년 전
|
조회 548
|
|
|
|
14년 전
|
조회 601
|
|
|
|
14년 전
|
조회 896
|
|
|
|
14년 전
|
조회 801
|
|
|
|
14년 전
|
조회 1,391
|
|
|
|
14년 전
|
조회 1,014
|
|
|
|
14년 전
|
조회 3,466
|
|
|
|
14년 전
|
조회 692
|
|
|
|
14년 전
|
조회 1,247
|
|
|
|
14년 전
|
조회 982
|
|
|
지운아빠
|
14년 전
|
조회 2,721
|
|
|
|
14년 전
|
조회 2,322
|
|
|
|
14년 전
|
조회 529
|
|
|
|
14년 전
|
조회 1,588
|
|
|
|
14년 전
|
조회 534
|
|
|
|
14년 전
|
조회 2,340
|
|
|
|
14년 전
|
조회 1,886
|
|
|
|
14년 전
|
조회 498
|
|
|
|
14년 전
|
조회 5,580
|
|
|
|
14년 전
|
조회 849
|
|
|
|
14년 전
|
조회 1,354
|
|
|
|
14년 전
|
조회 1,175
|
|
|
|
14년 전
|
조회 1,214
|
|
|
|
14년 전
|
조회 1,094
|
|
|
|
14년 전
|
조회 1,097
|
|
|
|
14년 전
|
조회 930
|
|
|
|
14년 전
|
조회 1,281
|
|
|
|
14년 전
|
조회 1,676
|
|
|
|
14년 전
|
조회 694
|
|
|
|
14년 전
|
조회 1,065
|
|
|
|
14년 전
|
조회 2,104
|
|
|
|
14년 전
|
조회 1,958
|
|
|
관리자
|
14년 전
|
조회 912
|
|
|
|
14년 전
|
조회 1,407
|
|
|
관리자
|
14년 전
|
조회 3,891
|
|
|
|
14년 전
|
조회 630
|
|
|
|
14년 전
|
조회 2,614
|
|
|
|
14년 전
|
조회 1,383
|
|
|
|
14년 전
|
조회 1,826
|
|
|
|
14년 전
|
조회 1,034
|
|
|
|
14년 전
|
조회 811
|
|
|
똥싼너구리
|
14년 전
|
조회 807
|
|
|
관리자
|
14년 전
|
조회 954
|
|
|
|
14년 전
|
조회 1,025
|
|
|
|
14년 전
|
조회 1,913
|
|
|
|
14년 전
|
조회 3,162
|
|
|
관리자
|
14년 전
|
조회 2,206
|
|
|
|
14년 전
|
조회 923
|
|
|
|
14년 전
|
조회 1,530
|
|
|
|
14년 전
|
조회 1,774
|
|
|
|
14년 전
|
조회 576
|
|
|
|
14년 전
|
조회 1,812
|
|
|
|
14년 전
|
조회 3,047
|
|
|
|
14년 전
|
조회 1,731
|
|
|
|
14년 전
|
조회 2,667
|
|
|
|
14년 전
|
조회 3,978
|
|
|
|
14년 전
|
조회 4,010
|
|
|
|
14년 전
|
조회 2,423
|
|
|
|
14년 전
|
조회 855
|
|
|
|
14년 전
|
조회 1,152
|
|
|
|
14년 전
|
조회 3,972
|
|
|
|
14년 전
|
조회 2,292
|
|
|
|
14년 전
|
조회 1,437
|
|
|
|
14년 전
|
조회 3,809
|
|
|
|
14년 전
|
조회 2,487
|
|
|
|
14년 전
|
조회 575
|
|
|
|
14년 전
|
조회 2,473
|
|
|
|
14년 전
|
조회 623
|
|
|
|
14년 전
|
조회 854
|
|
|
|
14년 전
|
조회 1,687
|
|
|
|
14년 전
|
조회 1,312
|
|
|
|
14년 전
|
조회 1,569
|
|
|
|
14년 전
|
조회 1,127
|
|
|
|
14년 전
|
조회 2,126
|
|
|
|
14년 전
|
조회 801
|
|
|
|
14년 전
|
조회 812
|
댓글 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>
입니다 ㅎㅎ