자바스크립트로 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>
게시판 목록
토크
개발과 관련된 어떤 얘기도 괜찮습니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3210 |
전갈자리남자
|
9년 전 | 959 | |
| 3209 | 9년 전 | 1247 | ||
| 3208 |
|
9년 전 | 1645 | |
| 3207 |
|
9년 전 | 1705 | |
| 3206 |
PlayPixel
|
9년 전 | 1020 | |
| 3205 | 9년 전 | 1021 | ||
| 3204 | 9년 전 | 1394 | ||
| 3203 |
kiplayer
|
9년 전 | 1797 | |
| 3202 | 9년 전 | 1030 | ||
| 3201 | 9년 전 | 1508 | ||
| 3200 | 9년 전 | 932 | ||
| 3199 | 9년 전 | 1705 | ||
| 3198 | 9년 전 | 1387 | ||
| 3197 | 9년 전 | 1203 | ||
| 3196 | 9년 전 | 1590 | ||
| 3195 |
|
9년 전 | 1095 | |
| 3194 | 9년 전 | 949 | ||
| 3193 |
|
9년 전 | 1019 | |
| 3192 | 9년 전 | 1137 | ||
| 3191 |
|
9년 전 | 848 | |
| 3190 | 9년 전 | 763 | ||
| 3189 |
|
9년 전 | 974 | |
| 3188 |
PASKRAN
|
9년 전 | 841 | |
| 3187 | 9년 전 | 837 | ||
| 3186 |
|
9년 전 | 956 | |
| 3185 | 9년 전 | 943 | ||
| 3184 |
|
9년 전 | 934 | |
| 3183 |
|
9년 전 | 767 | |
| 3182 |
|
9년 전 | 1152 | |
| 3181 | 9년 전 | 883 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기