| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- 오라클
- 안드로이드
- 잡토이
- MSSQL
- 파주
- 라즈베리파이
- jsp
- 시작하기
- oracle
- 리브레캐드
- s4a
- 아두이노
- Android
- 설정
- 운정
- 예제
- Unity
- Spring Security
- 설치
- tomcat
- html5
- mysql
- 강좌
- 코딩
- 유니티
- jobtoy
- 스크래치
- librecad
- 잡토이 메이킹 코딩 학원
- 톰캣
Archives
- Today
- Total
랩제이
parent에서 iFrame함수 호출하기 본문
반응형
1. parent page
function test() {
var test1 = document.getElementById("seatMap").contentWindow.getReserveChk();
alert(test1);
}
function test1() {
var imgpath = document.getElementById("seatMap").contentWindow.getImagePath("img1");
alert(imgpath);
}
2. child page
function getReserveChk() {
return 'test';
}
function getImagePath(value1) {
return $("img1").src;
}
function setCursor(value1, value2) {
$(value1).style.cursor = value2; // value2 : 'default', 'hand'
}
parent에서 iframe의 함수 호출을 통하여 진행하도록 하는게 제일 무난한듯 싶다.
'programming > jsp' 카테고리의 다른 글
| prototype select box 값 가져오기 (0) | 2012.03.21 |
|---|---|
| innerHTML (0) | 2012.03.21 |
| iframe 사이즈 늘리기(1) (0) | 2012.03.21 |
| 뭐니뭐니해도 기본이 최고인거 같다 -- select box 만들기 (0) | 2012.03.21 |
| javascript debug (0) | 2012.03.21 |