`
eimhee
  • 浏览: 2114104 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

problem qith iframe's - Ext JS

阅读更多
I want to have dialogs and where each dialog would have it's own iframe inside.

Why doesn't this work?
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="yuiext/resources/css/ext-all.css" />
        <script type="text/javascript" src="yuiext/yui-utilities.js"></script>
        <script type="text/javascript" src="yuiext/ext-yui-adapter.js"></script>
        <script type="text/javascript" src="yuiext/ext-all.js"></script>
        <script type="text/javascript">
            
            Ext.onReady(function() {
                dialog1 = new Ext.BasicDialog("win1", { 
                        autoTabs:false,
                        width:500,
                        height:300,
                        shadow:false,
                        minWidth:300,
                        minHeight:250,
                        proxyDrag: true
                });
                
                dialog2 = new Ext.BasicDialog("win2", { 
                        autoTabs:false,
                        width:500,
                        height:300,
                        shadow:false,
                        minWidth:300,
                        minHeight:250,
                        proxyDrag: true
                });
                
                dialog1.show ();
                dialog2.show ();
            });
            
        </script>
    </head>
    <body>
        <div id="win1">
            <div class="x-dlg-hd">Google</div>
            <div class="x-dlg-bd">
                <iframe src="http://www.google.co.uk/" style="width: 100%; height: 100%; border: 1pxm solid black;" frameborder="0" />
            </div>
        </div>
        
        <div id="win2">
            <div class="x-dlg-hd">Freebasic forum</div>
            <div class="x-dlg-bd">
                <iframe src="http://www.freebasic.net/forum/" style="width: 100%; height: 100%; border: 1pxm solid black;" frameborder="0" />
            </div>
        </div>
    </body>
</html>
Reply With Quote
  #2  
Old 03-04-2007, 07:19 AM
Default

anyone?
Reply With Quote
  #3  
Old 03-04-2007, 07:43 AM
Default

Close your iframe tags. Worked for me.
Reply With Quote
  #4  
Old 03-04-2007, 07:55 AM
Default

Indeed. iframe tags are, unlogically, no singletons.
Reply With Quote
  #5  
Old 03-04-2007, 08:38 AM
Default

Tnx. didn't know that. works fine now
Reply With Quote
  #6  
Old 03-04-2007, 12:34 PM
Default

Quote:
Originally Posted by maerteijn
Indeed. iframe tags are, unlogically, no singletons.
Actually, when you consider that they were designed with backward compatibility in mind, the fact that they require a closing tag makes more sense. For those browsers that didn't support the <iframe> tag you could simply place some alternate content inside and that'd be displayed instead.
Reply With Quote
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics