Quantcast

Forums | MacLife

You are not logged in.

#1 2009-01-29 8:14 pm

Title27GT
Member
From: New York, NY
Registered: 2007-07-10
Posts: 338

iFrame not working in IE

REVISION:

That problem has been fixed. The new problem is, I can't get the formatting to work correctly on the "controlling feature" on any browser. I'll show you what I mean:
http://img120.imageshack.us/img120/7137/picture9fh8.png

IT should look like this:

MKJS_APP  Gray Taylor 120.800

NOT MKJS_APPGrayTaylor120.800 as it appears on the page.

Here is the PHP script that is embedded in the IFRAME that is displayed in the top left:

Code:

<style>
    body { background-color: #024FAE; }
    border:0
</style>
<?php
require_once("VatsimPHPgenerator.php");
$VatsimPHP=new VatsimPHP;
$ctrlist=$VatsimPHP->controllers();
$flag=0;
for($i = 0; $i < count($ctrlist); $i++)
    {
        echo "<TR>";
        if (substr($ctrlist[$i][0],0,2)=='MK')
        {
        $flag=1;                                                                                                                                                                                                                    
        echo "<TD WIDTH=\"50%\"><FONT SIZE=\"1\" COLOR=\"white\" FACE=\"arial\" CELLPADDING=\"2\"><b>&bull;".$ctrlist[$i][0]."</b></FONT></TD>";
        echo "<TD WIDTH=\"50%\"><FONT SIZE=\"1\" COLOR=\"white\" FACE=\"arial\" CELLPADDING=\"2\">".$ctrlist[$i][2]."</FONT></TD>";
        echo "<TD WIDTH=\"50%\"><FONT SIZE=\"1\" COLOR=\"white\" FACE=\"arial\" CELLPADDING=\"2\">".$ctrlist[$i][4]."</FONT></TD>";
        echo "</TR>";
        } elseif (substr($ctrlist[$i][0],0,2)=='MW')
        {
        $flag=1;
        echo "<TD WIDTH=\"50%\"><FONT SIZE=\"1\" FACE=\"arial\" COLOR=\"white\" COLSPAN=\"2\"><b>&bull;".$ctrlist[$i][0]."</b></FONT></TD>";
        echo "<TD WIDTH=\"50%\"><FONT SIZE=\"1\" COLOR=\"white\" FACE=\"arial\" COLSPAN=\"2\">".$ctrlist[$i][2]."</FONT></TD>";
        echo "<TD WIDTH=\"50%\"><FONT SIZE=\"1\" COLOR=\"white\" FACE=\"arial\" COLSPAN=\"2\">".$ctrlist[$i][4]."</FONT></TD>";
        echo "</TR>";
        };
    };
if($flag == 0)
    {
        echo "<TR><TD WIDTH=\"100%\" COLSPAN=\"2\" ALIGN=\"CENTER\"><FONT SIZE=\"1\" COLOR=\"white\" FACE=\"arial\">There are currently no Kingston controllers online.</FONT></TD></TR>";
    };                                                                                
?>

I've tried 1,000,000,000 things but it's turning out the same way. Any suggestions?

Last edited by Title27GT (2009-01-30 8:25 pm)


http://online.vatsimindicators.net/1041931/1306.png

Offline

 

#2 2009-01-30 10:22 pm

matt
a very bad matt
Registered: 1999-09-16
Posts: 16687
Website

Re: iFrame not working in IE

You can put &nbsp; before the end of the first and second </td>

&nbsp; means non-breaking space. It should work, but the code is fairly messy.


Being loud: The next best thing to being right.

Do not click here.

Offline

 

#3 2009-01-30 11:24 pm

Miles
Now I fight for wisdom!
Administrator
From: Michigan
Registered: 2001-07-21
Posts: 4506
Website

Re: iFrame not working in IE

You need a <table> tag.  Also, cellpadding has no effect on a <font> element.

Offline

 

#4 2009-01-31 12:17 am

Alien
Forum Czar
Administrator
From: Republic of Amsterdam
Registered: 1999-07-05
Posts: 16939
Website

Re: iFrame not working in IE

"Fairly messy"?

Holy smurf.

.tsooJ


http://macstack.net/forums/images/smilies/lol.gif

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson