Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: iframe problem

  1. #1
    Regular Coder
    Join Date
    Jun 2012
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool iframe problem




    I can not understand why nothing will show below the iframe for the youtube player.
    I'm wondering if this isn't related to the api's in some way.


    PHP Code:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     "http://www.w3.org/TR/html4/loose.dtd"> 

    <html>
    <head>
    <title>Mr Oldies Bill Board Top 100</title>
    <meta http-equiv="Content-Type" content="text/html;charset=Windows-1252" >

      <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
    <link rel="stylesheet" type="text/css" href="http://mroldies.net/sidepanel/ddajaxsidepanel.css" />
    <script src="http://mroldies.net/sidepanel/ddajaxsidepanel.js">

    /***********************************************
    * Ajax Side Panel script- © Dynamic Drive (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for this script and 100s more.
    ***********************************************/

    </script>
    <style type="text/css">
    object {width:700px; height:500px; overflow:hidden;}
    .atd {width:40px; padding:10px; text-align:center;}
    .btd {width:250px; padding:10px;}
    .ctd {width:250px; padding:10px;}

    .blu {background:#EDE548;}

    .ayear {float:left; margin:5px;}

    #box2  { float:left; border:solid 2px #0f0; width:600px; padding:10px; overflow:hidden;}
    #box3  { border:solid 2px #f00; padding:10px; overflow:hidden;}
    #ytplaer {clear:left;}

    </style>

    </head>


    <body>
    <a href="http://mroldies.net">Home</a>
    <br>

    <div id="box1">
      <div class="ayear"><a href="http://mroldies.net/showtable.php?year=1960">1960</a></div>
      <div class="ayear"><a href="http://mroldies.net/showtable.php?year=1961">1961</a></div>
      <div class="ayear"><a href="http://mroldies.net/showtable.php?year=1962">1962</a></div>
      <div class="ayear"><a href="http://mroldies.net/showtable.php?year=1963">1963</a></div>
      <div class="ayear"><a href="http://mroldies.net/showtable.php?year=1964">1964</a></div>
      <div class="ayear"><a href="http://mroldies.net/showtable.php?year=1965">1965</a></div>
      <div class="ayear"><a href="http://mroldies.net/showtable.php?year=1966">1966</a></div>
      <div class="ayear"><a href="http://mroldies.net/showtable.php?year=1967">1967</a></div>
      <div class="ayear"><a href="http://mroldies.net/showtable.php?year=1968">1968</a></div>
      <div class="ayear"><a href="http://mroldies.net/showtable.php?year=1969">1969</a></div>


    </div>

    <div style="clear:left;"></div>


    <div id="box2">
    <?php

    $list
    [0]='<iframe id="ytplayer" type="text/html" width="480" height="270" 
    src="https://www.youtube.com/embed/tSsiS-v6_6M?playlist=Smlaq1ezQRM,
    mxfljegYXk4,E3meEmDpaDU,IE-AcC53OYY,QkMVscR5YOo,uVyBRdBVCiU,
    BGLR25EJtfE,kJ6yAYHsHqg,im9XuJJXylw,kHRbQfkmoSE,ax-6U-KaBAY,
    46o1joHp7t0,KwNe1nO6cjc,kIHRgisdbeY,sz6IpmmYSXA,dvZn0JMLpuk,
    KWgyum5fjJc,ICkWjdQuK7Q,kjq4wYuwgxs,hmi3yYJmkRc,PPbSYJ1LNl0,
    efycf_CGmiM,TqjjUKu9t-8,g-evJ0J08Jw,n-XQ26KePUQ,37cH9khXYdM,
    KecIdlEAKhU,RmZdvVnMXCc,TYpdLb6eKg8,modfq47onwU,m8OlDPqYBLw,
    -wNe_NP0voY,h_ctJX8qmfM,Js-PC3iOxlE,YoCD6DX__pg,Cklf5k10yLU,
    D0D3b4c2lI8,voEMDg0GBAo,zAF5V0V_xlo&version=3" 
    frameborder="0" allowfullscreen>'
    ;

    $list[1]='<iframe id="ytplayer" type="text/html" width="480" height="270" 
    src="https://www.youtube.com/embed/ghFBvBmXv4E?playlist=iuZTk1hdpMs,
    jRv-fgfLFTk,ls2lC7DQFMI,0S13mP_pfEc,glOMdK8gfbo,e2eLQPehLyo,
    1zb6H4b_oiA,uj4Ub5v6mg0,YxjSoPqhGrw,2Fcjc9TCEjw&version=3" 
    frameborder="0" allowfullscreen>'
    ;

    $list[2]='<iframe id="ytplayer" type="text/html" width="480" height="270" 
    src="https://www.youtube.com/embed/7jzx664u5DA?playlist=r_7iRVtxui8&version=3" 
    frameborder="0" allowfullscreen>'
    ;

    $list[3]='<iframe id="ytplayer" type="text/html" width="480" height="270" 
    src="https://www.youtube.com/embed/ZqjVAgT74_A?playlist=TKNM6fAiJjs,Qgcy-V6YIuI&version=3" 
    frameborder="0" allowfullscreen>'
    ;

    $list[4]='<iframe id="ytplayer" type="text/html" width="480" height="270" 
    src="https://www.youtube.com/embed/iim6s8Ea_bE?playlist=T0YifXhm-Zc,kmfeKUNDDYs,mHPgco6GQk8&version=3" 
    frameborder="0" allowfullscreen>'
    ;

    $list[5]='<iframe id="ytplayer" type="text/html" width="480" height="270" 
    src="https://www.youtube.com/embed/K6P7g_qz2OU?playlist=Uwh2QloOnS0,3a7cHPy04s8,Cdcl2HTI9f8&version=3" 
    frameborder="0" allowfullscreen>'
    ;

    $list[6]='<iframe id="ytplayer" type="text/html" width="480" height="270" 
    src="https://www.youtube.com/embed/0y5GDvN9_OE?playlist=NwAjGsuyF2M,gjuaVo74meY,KnDm3qr1Knk&version=3" 
    frameborder="0" allowfullscreen>'
    ;

    $list[7]='<iframe id="ytplayer" type="text/html" width="480" height="270" 
    src="https://www.youtube.com/embed/JOVQ4vAmM7Y?playlist=BQaUs5J2wdI,CZt5Q-u4crc,QiQgDzeJV2s&version=3" 
    frameborder="0" allowfullscreen>'
    ;

    $list[8]='<iframe id="ytplayer" type="text/html" width="480" height="270" 
    src="https://www.youtube.com/embed/eDdI7GhZSQA?playlist=8_b6xaVvgeM,59BZxgohr9g,UCmUhYSr-e4&version=3" 
    frameborder="0" allowfullscreen>'
    ;

    $list[9]='<iframe id="ytplayer" type="text/html" width="480" height="270" 
    src="https://www.youtube.com/embed/h9nE2spOw_o?playlist=06X5HYynP5Es,3rP3Hi1f7Og,2Kve_N8rmmQ&version=3" 
    frameborder="0" allowfullscreen>'
    ;

    $list[10]='<iframe id="ytplayer2" type="text/html" width="480" height="270" 
    src="https://www.youtube.com/watch?v=tSsiS-v6_6M&list=PLWtnWSirWnf3RDlzmP-e354yWzXi4kQzM" 
    frameborder="0" allowfullscreen>'
    ;


    echo 
    $list[10];

    $year=$_GET['year'];

    if (empty(
    $year)) {$year=1960;}



    /* connect to the db */
    $con mysql_connect('localhost','user','pass');


    if (!
    $con){die("can not connect: " mysql_error());}

    mysql_select_db('basename',$con);

    $sql="SELECT * FROM A".$year;

    $myData=mysql_query($sql,$con);



    $i=1;
    echo 
    "<table border='1'>\n";
    echo 
    "<tr><th colspan='3'>".$year."</th>";
    echo 
    "<tr><th></th><th>Title/Flip</th><th>Artist/Label</th></tr>\n";

    while (
    $record mysql_fetch_array($myData)) {
    echo 
    "<tr>";
    echo 
    "<td class='atd'>$i</td>";
    echo 
    "<td class='btd'><div class='blu'><a href='http://mroldies.net/top100-$year.php?number=$i' rel='ajaxpanel' data-loadtype='iframe'>" $record['atitle'] . "</a></div><br>" $record['btitle'] . "</td>";
    echo 
    "<td class='ctd'>" $record['artist'] . "<br>" $record['label'] . "</td>";
    echo 
    "</tr>\n";
    $i++;
    };

    echo 
    "</table>";



    ?>

    </div>


    <div id="box3">


    <?php

    $year
    =$_GET['year'];

    if (empty(
    $year)) {$year=1960;}

    echo 
    $year."<br>";
    $year=(int)$year;

    if (
    $year==1960) { echo $list[0]."\n"; }
    if (
    $year==1961) { echo $list[1]."\n"; }
    if (
    $year==1962) { echo $list[2]."\n"; }
    if (
    $year==1963) { echo $list[3]."\n"; }
    if (
    $year==1964) { echo $list[4]."\n"; }
    if (
    $year==1965) { echo $list[5]."\n"; }
    if (
    $year==1966) { echo $list[6]."\n"; }
    if (
    $year==1967) { echo $list[7]."\n"; }
    if (
    $year==1968) { echo $list[8]."\n"; }
    if (
    $year==1969) { echo $list[9]."\n"; }

    echo 
    "<br>";
    echo 
    $year;



    ?>

    </div>

    <div>


    <p></p>


    testing
    this division does not show!


    </div>

    </body>
    </html>
    Last edited by Suwannee_guy; 04-23-2013 at 02:31 AM.

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    I don't see where you're closing the iframe tag ....

    </iframe>


    <iframe> .... </iframe>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •