日期:2014-05-16 浏览次数:20663 次
new Ext.TabPanel({
                     renderTo:'addTab-div',
                height:660,
                activeTab:0,
                autoScroll:false,
                items:[{
                    title:'选项卡一',
                    items: new Ext.Panel({
                        border:false,
                        html:'<iframe id="addQyjbxxPanel" name="addQyjbxxPanel" frameborder=0 src="A.jsp" style="width:100%;height:500;" scrolling=no></iframe>'
                    })
                }
                })
window.frames['addQyjbxxPanel'].contentWindow.getElementById('ID').value
------解决方案--------------------
关注一下。。。。
------解决方案--------------------
document.getElementById('addQyjbxxPanel').value
window.frames['addQyjbxxPanel'].contentWindow.getElementById('ID').value
应该两个都可以吧,如果在其它的页面中没有两个ID一样的话。
------解决方案--------------------
Ext.getCmp('addQyjbxxPanel').value应该可以吧
------解决方案--------------------
window.frames['addQyjbxxPanel'].contentWindow.document.getElementById('textone').value
------解决方案--------------------
不懂,收分。
------解决方案--------------------
首先你得找到iframe这个对象,可以document.getElementById('addQyjbxxPanel')
然后通过这个对象找到里面的文本框,比如有<input type="text" name="test"/>
就可以这样:
方法一:document.getElementById('addQyjbxxPanel').test.value;
方法二:addQyjbxxPanel.test.value;
呵呵,这样行了吧