자바스크립트로 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>
게시판 목록
토크
개발과 관련된 어떤 얘기도 괜찮습니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3090 |
|
9년 전 | 1344 | |
| 3089 | 9년 전 | 709 | ||
| 3088 | 9년 전 | 639 | ||
| 3087 | 9년 전 | 556 | ||
| 3086 | 9년 전 | 543 | ||
| 3085 | 9년 전 | 562 | ||
| 3084 | 9년 전 | 638 | ||
| 3083 | 9년 전 | 1034 | ||
| 3082 | 9년 전 | 668 | ||
| 3081 | 9년 전 | 948 | ||
| 3080 | 9년 전 | 1223 | ||
| 3079 | 9년 전 | 979 | ||
| 3078 | 9년 전 | 1944 | ||
| 3077 | 9년 전 | 1206 | ||
| 3076 | 9년 전 | 1089 | ||
| 3075 | 9년 전 | 1045 | ||
| 3074 | 9년 전 | 959 | ||
| 3073 | 9년 전 | 982 | ||
| 3072 |
|
9년 전 | 1211 | |
| 3071 |
|
9년 전 | 1399 | |
| 3070 |
|
9년 전 | 1371 | |
| 3069 |
|
9년 전 | 1622 | |
| 3068 |
|
9년 전 | 2010 | |
| 3067 | 9년 전 | 1307 | ||
| 3066 |
|
9년 전 | 1114 | |
| 3065 | 9년 전 | 1390 | ||
| 3064 |
brucelee1973
|
9년 전 | 2883 | |
| 3063 |
|
9년 전 | 1846 | |
| 3062 |
|
9년 전 | 717 | |
| 3061 |
아쿠아틴티드
|
9년 전 | 868 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기