한번쯤 적용시키면 괸찮은것 같네요
첨부스크립트를 업로드하시고
스크립트 링크를 걸어주세요
<!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개
16년 전
네... 긁어서 붙여넣기 해보니 오류가 생기네요...
예제 페이지 쫌 부탁드릴께요... :) 감사합니다!!!
예제 페이지 쫌 부탁드릴께요... :) 감사합니다!!!
16년 전
.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4099 | ||
| 429 | 19년 전 | 3299 | ||
| 428 | 19년 전 | 4132 | ||
| 427 | 19년 전 | 3467 | ||
| 426 | 19년 전 | 3103 | ||
| 425 | 19년 전 | 3403 | ||
| 424 | 19년 전 | 2438 | ||
| 423 | 19년 전 | 2862 | ||
| 422 | 19년 전 | 2350 | ||
| 421 | 19년 전 | 3708 | ||
| 420 | 19년 전 | 4739 | ||
| 419 | 19년 전 | 3797 | ||
| 418 |
|
19년 전 | 1746 | |
| 417 | 19년 전 | 2745 | ||
| 416 | 19년 전 | 2390 | ||
| 415 | 19년 전 | 2606 | ||
| 414 | 19년 전 | 4410 | ||
| 413 |
|
19년 전 | 2597 | |
| 412 | 19년 전 | 3046 | ||
| 411 |
|
19년 전 | 2994 | |
| 410 |
|
19년 전 | 3683 | |
| 409 |
|
19년 전 | 3632 | |
| 408 |
|
19년 전 | 1857 | |
| 407 | 19년 전 | 2228 | ||
| 406 | 19년 전 | 2781 | ||
| 405 | 19년 전 | 2444 | ||
| 404 | 19년 전 | 4301 | ||
| 403 | 19년 전 | 3302 | ||
| 402 |
NeoGenesis
|
19년 전 | 4089 | |
| 401 | 19년 전 | 2606 | ||
| 400 |
|
19년 전 | 2493 | |
| 399 | 19년 전 | 2956 | ||
| 398 | 19년 전 | 2484 | ||
| 397 | 19년 전 | 2779 | ||
| 396 | 19년 전 | 2473 | ||
| 395 | 19년 전 | 3177 | ||
| 394 | 19년 전 | 1718 | ||
| 393 | 19년 전 | 2993 | ||
| 392 | 19년 전 | 2250 | ||
| 391 | 19년 전 | 2176 | ||
| 390 | 19년 전 | 2285 | ||
| 389 | 19년 전 | 2644 | ||
| 388 | 19년 전 | 2176 | ||
| 387 | 19년 전 | 4484 | ||
| 386 |
|
19년 전 | 2692 | |
| 385 |
|
19년 전 | 2481 | |
| 384 | 19년 전 | 3012 | ||
| 383 | 19년 전 | 3052 | ||
| 382 | 19년 전 | 3107 | ||
| 381 |
|
19년 전 | 2631 | |
| 380 |
|
19년 전 | 3018 | |
| 379 | 19년 전 | 2549 | ||
| 378 | 19년 전 | 2206 | ||
| 377 | 19년 전 | 2776 | ||
| 376 | 19년 전 | 2468 | ||
| 375 |
|
19년 전 | 2561 | |
| 374 | 19년 전 | 3818 | ||
| 373 | 19년 전 | 3267 | ||
| 372 | 19년 전 | 4986 | ||
| 371 |
세은아빠2
|
19년 전 | 2415 | |
| 370 | 19년 전 | 4498 | ||
| 369 | 19년 전 | 3109 | ||
| 368 | 19년 전 | 2905 | ||
| 367 | 19년 전 | 3723 | ||
| 366 | 19년 전 | 2652 | ||
| 365 | 19년 전 | 3735 | ||
| 364 | 19년 전 | 4009 | ||
| 363 | 19년 전 | 3437 | ||
| 362 | 19년 전 | 3476 | ||
| 361 | 19년 전 | 4107 | ||
| 360 |
hwatta
|
19년 전 | 2361 | |
| 359 | 19년 전 | 5101 | ||
| 358 | 19년 전 | 3655 | ||
| 357 | 19년 전 | 2595 | ||
| 356 |
sdesign1s
|
19년 전 | 2276 | |
| 355 | 20년 전 | 2754 | ||
| 354 | 20년 전 | 3028 | ||
| 353 | 20년 전 | 2789 | ||
| 352 |
|
20년 전 | 5771 | |
| 351 |
|
20년 전 | 2701 | |
| 350 |
|
20년 전 | 4292 | |
| 349 |
hwatta
|
20년 전 | 2181 | |
| 348 | 20년 전 | 7306 | ||
| 347 | 20년 전 | 2413 | ||
| 346 | 20년 전 | 3503 | ||
| 345 | 20년 전 | 4306 | ||
| 344 | 20년 전 | 2644 | ||
| 343 | 20년 전 | 3918 | ||
| 342 | 20년 전 | 3066 | ||
| 341 | 20년 전 | 4089 | ||
| 340 |
|
20년 전 | 5140 | |
| 339 |
|
20년 전 | 4233 | |
| 338 | 20년 전 | 5868 | ||
| 337 | 20년 전 | 2043 | ||
| 336 |
|
20년 전 | 3318 | |
| 335 |
|
20년 전 | 3536 | |
| 334 |
|
20년 전 | 2923 | |
| 333 |
hwatta
|
20년 전 | 2433 | |
| 332 | 20년 전 | 4655 | ||
| 331 | 20년 전 | 2268 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기