자바스크립트로 Ajax 효과내기 입니다.
일반 페이지에서 하단에 iframe을 만듭니다.
링크의 target을 iframe 이름으로 지정합니다.
링크의 href에 쓰인 파일은 Javascript로 parent의 element 값들을 수정합니다.
예를 들어서 다음 세 파일을 만들고 p.html을 부릅니다.
c.html============================
<html><body></body></html>
================================
p.html============================
<html><body>
hidden frame에서 form을 만들고
거기서 post한 후
script로 child frame에 데이터 수정하기
<a href=set.php target=aja >set</a>
<p style="border: 1px solid blue;height:20px;" id=content></p>
<iframe name=aja src=c.html height=10 width=300>
</body>
</html>
=================================
set.php============================
<html>
<head>
<script language=JavaScript>
parent.document.all.content.innerText="여기가 바뀌는 부분입니다.";
</script>
</html>
게시판 목록
토크
개발과 관련된 어떤 얘기도 괜찮습니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3600 |
nature1235
|
10개월 전 | 434 | |
| 3599 |
swallow
|
2년 전 | 1342 | |
| 3598 |
swallow
|
2년 전 | 1189 | |
| 3597 |
swallow
|
2년 전 | 794 | |
| 3596 | 2년 전 | 1413 | ||
| 3595 | 2년 전 | 692 | ||
| 3594 | 2년 전 | 1410 | ||
| 3593 |
|
3년 전 | 1235 | |
| 3592 |
|
3년 전 | 1568 | |
| 3591 |
|
3년 전 | 1481 | |
| 3590 |
|
3년 전 | 1433 | |
| 3589 |
|
3년 전 | 1236 | |
| 3588 |
|
3년 전 | 1221 | |
| 3587 |
|
4년 전 | 1137 | |
| 3586 |
|
4년 전 | 1370 | |
| 3585 |
|
4년 전 | 1290 | |
| 3584 |
|
4년 전 | 1036 | |
| 3583 |
Arm코리아
|
4년 전 | 1132 | |
| 3582 |
|
4년 전 | 1239 | |
| 3581 |
|
4년 전 | 2195 | |
| 3580 |
|
4년 전 | 1266 | |
| 3579 |
|
4년 전 | 1298 | |
| 3578 |
|
4년 전 | 1531 | |
| 3577 | 4년 전 | 1669 | ||
| 3576 |
|
4년 전 | 1660 | |
| 3575 |
|
4년 전 | 1670 | |
| 3574 |
|
4년 전 | 2089 | |
| 3573 |
|
4년 전 | 1547 | |
| 3572 |
|
4년 전 | 1532 | |
| 3571 |
|
4년 전 | 1612 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기