iframe中窗体如何调用子窗体中的方法!谢谢解决!

解决方案 »

  1.   


    window.frames[0].document.getElementById....
      

  2.   

     <iframe id="frameMain" name="frameMain"
       src="/a.jsp"
       width="100%" height="100%" frameborder="0"></iframe> 
    window.frames["frameMain"].aa();
    在a.jsp 中 有个 方法
    function aa(){}
      

  3.   

    各位IT精英们,本小店刚开业,欢迎光顾,中秋充值大优惠了啊!http://chenjuan88.taobao.com/
      

  4.   

    window.frames[0].document.getElementById()就这样啊
      

  5.   

    [code=CSS ]store1 = new Ext.data.Store({
                proxy: new Ext.data.PagingMemoryProxy(url: "yourURL") ,
                reader: new Ext.data.JsonReader({}, [
                    {name: "SUMS", type: "int", mapping: 0},
                     .....
                ])
            });
    gridPanel2.getView().getRowClass=function(record,rowIndex,rowParams,store){
    alert(record.data.SUMS + "##" + record.get("SUMS"));
    if(Number(record.get("SUMS")) <=1000)//问题:该怎么得到SUMS的值??
    {
    return 'x-grid-record-red';
    }
    }
    [/code]
      

  6.   

    [code= JScript ]function(){}
    [/code]