function cal_dblclick() {
window.parent.frames['right'].document.all(window.parent.frames['right'].document.all("myCal").className).value=cal.year + "/" + cal.month + "/" + cal.day;
window.parent.frames['right'].document.all("myCal").style.visibility="hidden";
}
------------------------------------------------------
window.parent.frames.right.document为空或不是对象。
?注:right为框架

解决方案 »

  1.   

    trywindow.parent.frames["right"].document
      

  2.   

    window.parent.frames['right'].document.all(window.parent.frames['right'].document.all("myCal").className).value=cal.year + "/" + cal.month + "/" + cal.day;
    window.parent.frames['right'].document.all("myCal").style.visibility="hidden";
    }============================
    我用的就是window.parent.frames['right']
      

  3.   

    window.parent.frames['right']
    改为:
    window.parent.right
    更多资料:http://www.34v.com
      

  4.   

    把你的框架頁面的<frameset>...</frameset>發上來,語句沒錯,frame的ID可能有問題
      

  5.   

    基本上,要麽就是<frameset>的ID設定的不對,要麽,就是沒有window.parent,你的頁面沒在frame裏打開
      

  6.   

    框架页<iframe frameborder="0" name="admin_left" src="left.aspx" style="Z-INDEX: 1; VISIBILITY: inherit; WIDTH: 180px; HEIGHT: 100%">
    </iframe>
    </td>
    <td width="111" bgcolor="#2A4D9A" style="WIDTH: 7pt"><table border="0" cellpadding="0" cellspacing="0" height="100%">
    <tbody>
    <tr>
    <td onClick="switchSysBar()" style="CURSOR: hand;HEIGHT: 100%"><span class="navPoint" id="switchPoint" title="关闭/打开左栏"><img src="images/go_left.gif" name="barimg" width="7" height="49" border="0"></span>
    </td>
    </tr>
    </tbody>
    </table>
    </td>
    <td align="center" valign="top" style="WIDTH: 100%"><iframe frameborder="0" name="right" src="BK.aspx" style="VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%"
    designtimedragdrop="32"></iframe>左侧菜单页:
    <TD>&nbsp;&nbsp;&nbsp;<A href="Quote_trans/QuoteTrans_CustomQuery.aspx"
    target="right">转化图综合查询</A></TD>
      

  7.   

    試試
    window.parent.document.all.frames['right']
      

  8.   

    不好意思,糾正一下
    試試
    window.parent.document.frames['right']
    原因可能是你用的iframe和frame不在同一標簽裏,你的代碼是寫在iframe的頁面left.aspx裏的?
      

  9.   

    你用的是iFrame 而不是frameset 所以用 window.parent.frame['right'] 试试吧别用"frames"
      

  10.   

    你用的是iFrame 而不是frameset 所以用 window.parent.frame['right'] 试试吧别用"frames"----------------------------
    还是不对!
      

  11.   

    --父窗口 iframeTest.htm
    <script>
    var wndSon;
    </script>
    <Iframe src="test.htm" id="test" width="250" height="200" scrolling="no" frameborder="1"></iframe>
    <input type="button" value="控制子窗口" onclick="wndSon.all['myH1'].innerText='hello, this is son window';">
    <h1 id="myH2">hello!!!</h1>
    --子窗口 test.htm
    <html>
       <body>
        <h1 id="myH1">hello!!</h1>
    <input type="button" value="控制父窗口" onclick="parent.myH2.innerText='hello! this is parent window';">
       </body>
      </html>
    <script>
    parent.wndSon=document;
    </script>
    照这个思路试试