|
|
|
15년 전
|
조회 1,532
|
|
|
|
15년 전
|
조회 1,519
|
|
|
|
15년 전
|
조회 1,603
|
|
|
|
15년 전
|
조회 3,802
|
|
|
|
15년 전
|
조회 1,525
|
|
|
|
15년 전
|
조회 1,941
|
|
|
|
15년 전
|
조회 1,385
|
|
|
|
15년 전
|
조회 1,443
|
|
|
|
15년 전
|
조회 1,598
|
|
|
|
15년 전
|
조회 1,566
|
|
|
|
15년 전
|
조회 1,585
|
|
|
|
15년 전
|
조회 1,518
|
|
|
|
15년 전
|
조회 1,521
|
|
|
|
15년 전
|
조회 1,550
|
|
|
|
15년 전
|
조회 1,638
|
|
|
|
15년 전
|
조회 1,522
|
|
|
|
15년 전
|
조회 1,627
|
|
|
|
15년 전
|
조회 1,740
|
|
|
|
15년 전
|
조회 1,603
|
|
|
|
15년 전
|
조회 1,605
|
댓글 2개
http://api.jquery.com/jQuery.get/ 이부분을 참고해보세요.
다른방법으로는 iframe을 사용할 수 있습니다. view파일에 iframe태그를 추가하시고
버튼을 클릭하면 iframe에서 wr_5필드에 값을 넣는 걸 처리하는 url을 호출하시면 됩니다.
참고로
[proc.php]
$sql = "update g4_write_$bo_table set wr_5 = '값' where wr_id = '$wr_id' limit 1";
[view 파일]
**
js-->
prototy 일 경우**
function set(o)
{
var sv=o.value;
url="proc.php";
var par="wr_id="+sv;
var myAjax = new Ajax.Request(
url,
{
method: 'post',
parameters:par,
encoding: 'UTF-8',
onSuccess:function (responseHttpObj) {
alert(responseHttpObj.responseText);
},
onFailure:displayError
}
);
}
element-->
<input type="radio" name="a" value="0" onclick="set(this)"><input type="radio" name="a" value="1" onclick="set(this)">