|
|
|
14년 전
|
조회 941
|
|
|
|
14년 전
|
조회 1,654
|
|
|
|
14년 전
|
조회 2,758
|
|
|
|
14년 전
|
조회 2,013
|
|
|
|
14년 전
|
조회 2,072
|
|
|
|
14년 전
|
조회 1,473
|
|
|
|
14년 전
|
조회 1,289
|
|
|
|
14년 전
|
조회 1,184
|
|
|
|
14년 전
|
조회 963
|
|
|
|
14년 전
|
조회 431
|
|
|
|
14년 전
|
조회 1,344
|
|
|
|
14년 전
|
조회 4,447
|
|
|
|
14년 전
|
조회 1,323
|
|
|
|
14년 전
|
조회 1,089
|
|
|
|
14년 전
|
조회 581
|
|
|
|
14년 전
|
조회 813
|
|
|
|
14년 전
|
조회 633
|
|
|
|
14년 전
|
조회 523
|
|
|
|
14년 전
|
조회 598
|
|
|
|
14년 전
|
조회 580
|
|
|
|
14년 전
|
조회 517
|
|
|
|
14년 전
|
조회 1,395
|
|
|
|
14년 전
|
조회 720
|
|
|
|
14년 전
|
조회 576
|
|
|
|
14년 전
|
조회 547
|
|
|
|
14년 전
|
조회 601
|
|
|
|
14년 전
|
조회 895
|
|
|
|
14년 전
|
조회 800
|
|
|
|
14년 전
|
조회 1,390
|
|
|
|
14년 전
|
조회 1,013
|
|
|
|
14년 전
|
조회 3,465
|
|
|
|
14년 전
|
조회 692
|
|
|
|
14년 전
|
조회 1,243
|
|
|
|
14년 전
|
조회 982
|
|
|
지운아빠
|
14년 전
|
조회 2,720
|
|
|
|
14년 전
|
조회 2,321
|
|
|
|
14년 전
|
조회 527
|
|
|
|
14년 전
|
조회 1,588
|
|
|
|
14년 전
|
조회 534
|
|
|
|
14년 전
|
조회 2,339
|
|
|
|
14년 전
|
조회 1,885
|
|
|
|
14년 전
|
조회 498
|
|
|
|
14년 전
|
조회 5,578
|
|
|
|
14년 전
|
조회 849
|
|
|
|
14년 전
|
조회 1,354
|
|
|
|
14년 전
|
조회 1,175
|
|
|
|
14년 전
|
조회 1,212
|
|
|
|
14년 전
|
조회 1,093
|
|
|
|
14년 전
|
조회 1,097
|
|
|
|
14년 전
|
조회 929
|
|
|
|
14년 전
|
조회 1,281
|
|
|
|
14년 전
|
조회 1,674
|
|
|
|
14년 전
|
조회 693
|
|
|
|
14년 전
|
조회 1,065
|
|
|
|
14년 전
|
조회 2,102
|
|
|
|
14년 전
|
조회 1,957
|
|
|
관리자
|
14년 전
|
조회 912
|
|
|
|
14년 전
|
조회 1,406
|
|
|
관리자
|
14년 전
|
조회 3,890
|
|
|
|
14년 전
|
조회 629
|
|
|
|
14년 전
|
조회 2,614
|
|
|
|
14년 전
|
조회 1,383
|
|
|
|
14년 전
|
조회 1,824
|
|
|
|
14년 전
|
조회 1,034
|
|
|
|
14년 전
|
조회 810
|
|
|
똥싼너구리
|
14년 전
|
조회 807
|
|
|
관리자
|
14년 전
|
조회 954
|
|
|
|
14년 전
|
조회 1,025
|
|
|
|
14년 전
|
조회 1,911
|
|
|
|
14년 전
|
조회 3,161
|
|
|
관리자
|
14년 전
|
조회 2,206
|
|
|
|
14년 전
|
조회 923
|
|
|
|
14년 전
|
조회 1,528
|
|
|
|
14년 전
|
조회 1,774
|
|
|
|
14년 전
|
조회 575
|
|
|
|
14년 전
|
조회 1,811
|
|
|
|
14년 전
|
조회 3,046
|
|
|
|
14년 전
|
조회 1,731
|
|
|
|
14년 전
|
조회 2,667
|
|
|
|
14년 전
|
조회 3,977
|
|
|
|
14년 전
|
조회 4,008
|
|
|
|
14년 전
|
조회 2,423
|
|
|
|
14년 전
|
조회 853
|
|
|
|
14년 전
|
조회 1,152
|
|
|
|
14년 전
|
조회 3,972
|
|
|
|
14년 전
|
조회 2,291
|
|
|
|
14년 전
|
조회 1,435
|
|
|
|
14년 전
|
조회 3,809
|
|
|
|
14년 전
|
조회 2,486
|
|
|
|
14년 전
|
조회 575
|
|
|
|
14년 전
|
조회 2,473
|
|
|
|
14년 전
|
조회 623
|
|
|
|
14년 전
|
조회 853
|
|
|
|
14년 전
|
조회 1,687
|
|
|
|
14년 전
|
조회 1,311
|
|
|
|
14년 전
|
조회 1,569
|
|
|
|
14년 전
|
조회 1,127
|
|
|
|
14년 전
|
조회 2,125
|
|
|
|
14년 전
|
조회 800
|
|
|
|
14년 전
|
조회 810
|
댓글 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>
입니다 ㅎㅎ