我使用3 .asp頁如何從iframe將數據傳遞給父窗口?
第1頁:Parent.asp 第2頁:Subparent.asp 第3頁:Child.asp
在child.asp使用JavaScript。我棒從子窗口(IFRAME)數據傳遞到父窗口
<title>parent.asp</title>
<html>
<body>
<iframe name="I1" frameborder="0" scrolling="no" src="Subparent.asp" width="100"
height="100">
<title>subparent.asp</title>
<html>
<body>
<div id ="parentdata"></div>
<iframe name="I1" frameborder="0" scrolling="no" src="Subparent.asp" width="100" height="100">
<title>subparent.asp</title>
<html>
<body>
<iframe name="I1" frameborder="0" scrolling="no" src="Child.asp" width="100" height="100">
<title>subparent.asp</title>
<html>
<body>
<script language="JavaScript">
{
parent.document.getElementById("parentdata").innerHTML="GET DATA, WORKING"
}
</script>
</body>
</html>
</iframe>
</body>
</html>
</iframe>
</body>
</html>
</iframe>
</body>
</html>
在「Child.asp」我使用javascipt的。我的魔杖數據傳遞到「parent.asp」
「的」有沒有可能,plz幫助我
希望您的支持
爲什麼嵌套iframe? – meouw 2010-02-11 09:54:55
我試圖用三種狀態顯示數據,用刷出父窗口 – Alex 2010-02-11 10:04:41
試試用AJAX? – Kemo 2010-02-11 10:10:29