일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- s4a
- 잡토이
- 스크래치
- jsp
- librecad
- 잡토이 메이킹 코딩 학원
- 시작하기
- 설정
- MSSQL
- Android
- 톰캣
- 안드로이드
- 리브레캐드
- 아두이노
- 코딩
- tomcat
- oracle
- Unity
- 설치
- 강좌
- 예제
- 파주
- Spring Security
- html5
- mysql
- 라즈베리파이
- 유니티
- 오라클
- jobtoy
- 운정
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 |