한번쯤 적용시키면 괸찮은것 같네요
첨부스크립트를 업로드하시고
스크립트 링크를 걸어주세요
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>script.aculo.us Demo</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src="../lib/prototype.js" type="text/javascript"></script>
<script src="../lib/scriptaculous.js" type="text/javascript"></script>
<script src="../lib/unittest.js" type="text/javascript"></script>
<style type="text/css" media="screen">
</style>
</head>
<body>
<h1 id="tobeedited">To be edited</h1>
<script>
new Ajax.InPlaceEditor($('tobeedited'), '_ajax_inplaceeditor_result.html', {
ajaxOptions: {method: 'get'} //override so we can use a static for the result
});
//new Ajax.InPlaceEditor($(적용할 ID값), '갑을 업데이트해주는 페이지', {
ajaxOptions: {method: 'get'} //override so we can use a static for the result
});
</script>
</body>
</htrml>
아래와 같이 하면
마우스를 클릭하면
테스트 폼을 수정할수가있습니다.
이폼을 수정한 값을 디비값을 업데이틀 해주면됩니다.
참고로 업데이트 페이지에서 받아오는 값은
vlaue로 값을 받아오네요
잘 안되시는분이 있으면 예제페이지를 만들어 알려드릴께요
첨부스크립트를 업로드하시고
스크립트 링크를 걸어주세요
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>script.aculo.us Demo</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src="../lib/prototype.js" type="text/javascript"></script>
<script src="../lib/scriptaculous.js" type="text/javascript"></script>
<script src="../lib/unittest.js" type="text/javascript"></script>
<style type="text/css" media="screen">
</style>
</head>
<body>
<h1 id="tobeedited">To be edited</h1>
<script>
new Ajax.InPlaceEditor($('tobeedited'), '_ajax_inplaceeditor_result.html', {
ajaxOptions: {method: 'get'} //override so we can use a static for the result
});
//new Ajax.InPlaceEditor($(적용할 ID값), '갑을 업데이트해주는 페이지', {
ajaxOptions: {method: 'get'} //override so we can use a static for the result
});
</script>
</body>
</htrml>
아래와 같이 하면
마우스를 클릭하면
테스트 폼을 수정할수가있습니다.
이폼을 수정한 값을 디비값을 업데이틀 해주면됩니다.
참고로 업데이트 페이지에서 받아오는 값은
vlaue로 값을 받아오네요
잘 안되시는분이 있으면 예제페이지를 만들어 알려드릴께요
[이 게시물은 관리자님에 의해 2011-10-31 16:49:28 Prototype에서 이동 됨]
댓글 2개
게시글 목록
| 번호 | 제목 |
|---|---|
| 29416 | |
| 13230 | |
| 13227 | |
| 13226 |
JavaScript
PHP 이미지 지원 함수
|
| 13225 | |
| 13224 |
MySQL
심플쪽지2.0n
|
| 25107 | |
| 13219 |
JavaScript
iframe 외부의 부모 값에 접근.
4
|
| 13218 |
jQuery
select plugin
|
| 13216 | |
| 13211 | |
| 13210 | |
| 29415 |
HTML
prototype API
|
| 13204 | |
| 13202 |
jQuery
이미지 리사이즈 jQuery 로 변경 방법
1
|
| 29411 | |
| 13199 | |
| 13196 |
기타
tar 복사
2
|
| 13192 |
jQuery
jQuery 셀렉트 박스 입니다.
3
|
| 13191 | |
| 13189 | |
| 13186 | |
| 29408 | |
| 13185 |
jQuery
jQuery plugin Editors
|
| 13183 |
jQuery
jQuery 그래프 애니메이션
1
|
| 13178 | |
| 13173 |
기타
이번달 일수 구하기
4
|
| 13166 |
jQuery
SIR 메인에 사용된 jQuery widget
6
|
| 13165 |
기타
property 구현
|
| 13163 |
JavaScript
한글만 입력되게
1
|
| 13162 |
기타
휴대폰번호 검사
|
| 13157 | |
| 13153 |
jQuery
이미지 없으면 자동으로 No Image 출력
3
|
| 13149 |
JavaScript
a 링크 점선 없애기, input+label 묶기
3
|
| 13144 |
jQuery
ifrmae 자동 리사이즈
4
|
| 13142 | |
| 13141 | |
| 13140 |
jQuery
jquery 예
|
| 13138 | |
| 13137 |
MySQL
insert에서 where 사용하기
|
| 13136 |
MySQL
MySQL Database 언어코드 수정하기
|
| 25102 | |
| 13135 |
jQuery
회원가입 아이디 체크부분 jQuery 버젼
|
| 13132 |
jQuery
jQuery History & Bookmark
2
|
| 13131 |
jQuery
스포일러 기능~
|
| 13130 |
jQuery
이미지를 순서대로 로딩하기
|
| 13128 |
jQuery
jQuery 페이징
1
|
| 13125 |
jQuery
폼 입력값 검사
2
|
| 13117 |
JavaScript
간단한 서브메뉴 onmouseover 이벤트 팁
7
|
| 13116 | |
| 13114 |
jQuery
jQuery Cheat sheet
1
|
| 13113 | |
| 13109 |
jQuery
간단한 풍선도움말
3
|
| 13106 |
jQuery
자동등록방지 코드
2
|
| 13105 | |
| 13103 | |
| 13102 |
JavaScript
클릭으로 수량 조절
|
| 13099 |
jQuery
AJAX Libraries API -- 구글
2
|
| 13096 | |
| 13091 |
jQuery
jQuery 동적테이블
4
|
| 29404 | |
| 13090 | |
| 13087 |
JavaScript
검색엔진에 노출을 못하게 하는 방법
2
|
| 29400 | |
| 13085 | |
| 13082 | |
| 29398 | |
| 13081 |
JavaScript
페이지 인쇄할때 자동으로 다음장 인쇄 기능
|
| 13080 |
기타
특정문자 제거하기
|
| 13077 |
JavaScript
숫자만 입력되게 하기
2
|
| 25097 | |
| 13076 | |
| 13075 |
기타
팝업뛰우기
|
| 13072 |
JavaScript
접속시 우측 하단에 메시지 나타나게 하기
2
|
| 13071 |
MySQL
phpMyAdmin 3.0 설치 방법
|
| 29397 |
HTML
글자수 제한시켜 짜르기
|
| 13069 | |
| 13068 | |
| 13063 | |
| 13060 |
JavaScript
ezPrice 금액 입력 도우미
2
|
| 25092 | |
| 25091 | |
| 25090 | |
| 13056 |
MySQL
FOUND_ROWS()
3
|
| 13055 | |
| 13054 | |
| 29396 |
HTML
레이어 스부적스부적 이동 스크립트
|
| 13045 | |
| 13042 | |
| 13026 | |
| 13022 | |
| 13017 | |
| 13013 |
PHP
정규식 질문드립니다.
3
|
| 13008 | |
| 13002 |
PHP
태그변환 정규식
5
|
| 12998 | |
| 25083 | |
| 12997 | |
| 29394 | |
| 29392 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기