Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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
- xcode swift memo
- monitorjbl
- poi monitorjbl
- PostgreSQL
- Xcode
- ๋์ฉ๋์์ ์ ๋ก๋
- js ์ ์์๋ช
- Oracle
- xssfworkbook
- ios app ๊ฐ๋ฐ
- MSsql
- ์ ์์๋ช ๊ฐ๋ฐ
- poi ๋์ฉ๋
- ์ ์์๋ช ๊ธฐ๋ฅ๊ตฌํ
- xssreader
- js๋ฌ๋ ฅ
- mysql
- monitorjbl ์์
- outofmemoryerror ๋ฐฉ์ง
- ๋ฌ๋ ฅ๊ธฐ๋ฅ๊ฐ๋ฐ
- xlsx-streamer
- jxls
- spring annotation
- swift ๊ณ์ฐ๊ธฐ
- jxls ์์
- Swift
- opcpackage
- fullcalendar js
- xcode12.5.1
- swift ๋ฉ๋ชจ์ฅ ๋ง๋ค๊ธฐ
Archives
- Today
- Total
web developer๐ฉ๐ป๐ป
[JavaScript] ๋ถ๋ชจ์ฐฝ๊ณผ ์์์ฐฝ ๊ฐ ์ ๋ฌ ๋ณธ๋ฌธ
728x90
1. ๋ถ๋ชจ์ฐฝ(jsp)์์ ์์์ฐฝ ํ์ (jsp)์ผ๋ก ๊ฐ ์ ๋ฌ.
openChild.document.getElementById("sDevice").value();
openChild๋ถํฐ ์์ํ์ฌ ์์์ฐฝ์ ์๋ ํน์ element์ ์ ๊ทผํ ์ ์๋ค.
function sBtnClick(sNum){
var openChild;
var sDevice = $("input[name=sDevice]").val();
openChild.document.getElementById("sDevice").value = sDevice;
}
2. ์์์ฐฝ ํ์ (jsp)์์ ๋ถ๋ชจ์ฐฝ(jsp)์ผ๋ก ๊ฐ ์ ๋ฌ.
์์์ฐฝ์์ ๋ถ๋ชจ์ฐฝ์ ์ ๊ทผํ๊ธฐ ์ํด์๋ opener๋ฅผ ์ฌ์ฉ
opener๋ฅผ ์ด์ฉํ๋ฉด ๋ถ๋ชจ์ฐฝ์ ์๋ ํน์ element์ ์ ๊ทผํ์ฌ ๊ฐ์ ๊ฐ์ ธ์ฌ ์ ์๋ค.
function fn_Insert() {
var resultInput = $("#sDevice").val();
var parent = window.opener;
window.opener.document.getElementById("sDevice").value = resultInput;
self.close();
}
์ฐธ๊ณ : all-record.tistory.com/149
'js' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[AJAX] arrayList null check (0) | 2021.02.21 |
---|---|
[JSTL] fn:contains (0) | 2021.02.18 |
[jQuery] Select Box ํน์ ์ต์ ์ ํ์ show / hide (0) | 2021.02.04 |
[JSTL] JSTL์ด๋? core ์ฃผ์๊ธฐ๋ฅ (1) | 2021.01.15 |
JSP์์ ${pageContext.request} ์ ๋ณด ์ป๊ธฐ (0) | 2021.01.14 |