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:
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>•".$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>•".$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)

Offline
#2 2009-01-30 10:22 pm
Re: iFrame not working in IE
You can put before the end of the first and second </td>
means non-breaking space. It should work, but the code is fairly messy.
Offline

