1. #1
    Sencha User
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    143
    Vote Rating
    0
    albeva is infamous around these parts albeva is infamous around these parts

      0  

    Default problem qith iframe's

    problem qith iframe's


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

    Why doesn't this work?
    Code:
    <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>

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    143
    Vote Rating
    0
    albeva is infamous around these parts albeva is infamous around these parts

      0  

    Default


    anyone?

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Close your iframe tags. Worked for me.

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    9
    Vote Rating
    0
    maerteijn is on a distinguished road

      0  

    Default


    Indeed. iframe tags are, unlogically, no singletons.

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    143
    Vote Rating
    0
    albeva is infamous around these parts albeva is infamous around these parts

      0  

    Default


    Tnx. didn't know that. works fine now

  6. #6
    Sencha - Community Support Team JeffHowden's Avatar
    Join Date
    Mar 2007
    Location
    Forest Grove, OR
    Posts
    1,038
    Vote Rating
    1
    JeffHowden is on a distinguished road

      0  

    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.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar