|
|
|
14년 전
|
조회 1,599
|
|
|
|
14년 전
|
조회 2,254
|
|
|
|
14년 전
|
조회 3,395
|
|
|
|
14년 전
|
조회 2,626
|
|
|
|
14년 전
|
조회 2,684
|
|
|
|
14년 전
|
조회 2,117
|
|
|
|
14년 전
|
조회 1,906
|
|
|
|
14년 전
|
조회 1,820
|
|
|
|
14년 전
|
조회 1,573
|
|
|
|
14년 전
|
조회 1,048
|
|
|
|
14년 전
|
조회 1,997
|
|
|
|
14년 전
|
조회 5,070
|
|
|
|
14년 전
|
조회 1,978
|
|
|
|
14년 전
|
조회 1,741
|
|
|
|
14년 전
|
조회 1,250
|
|
|
|
14년 전
|
조회 1,477
|
|
|
선택이란
|
14년 전
|
조회 1,268
|
|
|
|
14년 전
|
조회 1,162
|
|
|
|
14년 전
|
조회 1,227
|
|
|
|
14년 전
|
조회 1,242
|
|
|
|
14년 전
|
조회 1,193
|
|
|
|
14년 전
|
조회 2,041
|
|
|
|
14년 전
|
조회 1,372
|
|
|
선택이란
|
14년 전
|
조회 1,224
|
|
|
|
14년 전
|
조회 1,160
|
|
|
|
14년 전
|
조회 1,227
|
|
|
|
14년 전
|
조회 1,548
|
|
|
|
14년 전
|
조회 1,446
|
|
|
|
14년 전
|
조회 2,092
|
|
|
|
14년 전
|
조회 1,664
|
|
|
|
14년 전
|
조회 4,120
|
|
|
선택이란
|
14년 전
|
조회 1,337
|
|
|
|
14년 전
|
조회 1,932
|
|
|
|
14년 전
|
조회 1,633
|
|
|
지운아빠
|
14년 전
|
조회 3,424
|
|
|
|
14년 전
|
조회 3,032
|
|
|
|
14년 전
|
조회 1,193
|
|
|
|
14년 전
|
조회 2,197
|
|
|
|
14년 전
|
조회 1,224
|
|
|
|
14년 전
|
조회 2,977
|
|
|
|
14년 전
|
조회 2,588
|
|
|
|
14년 전
|
조회 1,132
|
|
|
|
14년 전
|
조회 6,302
|
|
|
|
14년 전
|
조회 1,519
|
|
|
|
14년 전
|
조회 2,089
|
|
|
|
14년 전
|
조회 1,849
|
|
|
선택이란
|
14년 전
|
조회 1,748
|
|
|
|
14년 전
|
조회 1,739
|
|
|
|
14년 전
|
조회 1,755
|
|
|
|
14년 전
|
조회 1,554
|
|
|
|
14년 전
|
조회 1,941
|
|
|
|
14년 전
|
조회 2,337
|
|
|
|
14년 전
|
조회 1,375
|
|
|
|
14년 전
|
조회 1,754
|
|
|
|
14년 전
|
조회 2,740
|
|
|
|
14년 전
|
조회 2,596
|
|
|
관리자
|
14년 전
|
조회 1,558
|
|
|
|
14년 전
|
조회 2,055
|
|
|
관리자
|
14년 전
|
조회 4,564
|
|
|
|
14년 전
|
조회 1,295
|
|
|
|
14년 전
|
조회 3,252
|
|
|
|
14년 전
|
조회 2,059
|
|
|
선택이란
|
14년 전
|
조회 2,490
|
|
|
선택이란
|
14년 전
|
조회 1,686
|
|
|
|
14년 전
|
조회 1,462
|
|
|
똥싼너구리
|
14년 전
|
조회 1,457
|
|
|
관리자
|
14년 전
|
조회 1,575
|
|
|
|
14년 전
|
조회 1,672
|
|
|
|
14년 전
|
조회 2,567
|
|
|
|
14년 전
|
조회 3,799
|
|
|
관리자
|
14년 전
|
조회 2,876
|
|
|
|
14년 전
|
조회 1,577
|
|
|
|
14년 전
|
조회 2,171
|
|
|
|
14년 전
|
조회 2,455
|
|
|
|
14년 전
|
조회 1,220
|
|
|
|
14년 전
|
조회 2,490
|
|
|
|
14년 전
|
조회 3,703
|
|
|
선택이란
|
14년 전
|
조회 2,387
|
|
|
|
14년 전
|
조회 3,301
|
|
|
|
14년 전
|
조회 4,548
|
|
|
|
14년 전
|
조회 4,656
|
|
|
|
14년 전
|
조회 3,059
|
|
|
|
14년 전
|
조회 1,525
|
|
|
선택이란
|
14년 전
|
조회 1,783
|
|
|
|
14년 전
|
조회 4,622
|
|
|
|
14년 전
|
조회 2,929
|
|
|
|
14년 전
|
조회 2,089
|
|
|
|
14년 전
|
조회 4,474
|
|
|
|
14년 전
|
조회 3,117
|
|
|
|
14년 전
|
조회 1,195
|
|
|
|
14년 전
|
조회 3,107
|
|
|
|
14년 전
|
조회 1,244
|
|
|
|
14년 전
|
조회 1,479
|
|
|
|
14년 전
|
조회 2,370
|
|
|
|
14년 전
|
조회 1,971
|
|
|
|
14년 전
|
조회 2,227
|
|
|
|
14년 전
|
조회 1,754
|
|
|
|
14년 전
|
조회 2,783
|
|
|
|
14년 전
|
조회 1,423
|
|
|
|
14년 전
|
조회 1,438
|
댓글 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>
입니다 ㅎㅎ