Jump to content

php and iframes with IE6.0


pep

Recommended Posts

Hi.

I'm trying to use iframe with generated html .

In my example, fileB is what I want to see the iframe, and it's a generated

html table, that include a text form for one of the line. This is why fileB.php

has a $_POST variable.  All the data in this table are depending of the SESSION

variable $_SESSION['dateForUpdate'].

Everything works according to my expectation with Firefox 5.0 and IE 7.0, but for

other browsers (IE 6.0) I see a white empty rectangle instead of a table.

Is there something I could do about it, or do I want too much for the old browser ?

Would you suggest an alternative ?

Thanks.

 

 

// fileA.php

 

<?

...

if (isset ($_POST['newdate']) ){

  $_SESSION['dateForUpdate'] = $myDate; }

else { $_SESSION['dateForUpdate'] = date("Y-m-d"); }

 

...

 

 

echo "<iframe src=\"fileB.php\" width=\"800\" height=\"300\" scrolling=\"auto\" frameborder=\"1\">";

echo "</iframe>";

?>

 

 

 

 

 

//fileB.php

 

 

<?

//-----------------------------

 

connectDataBase();

 

// -- hundred of lines here --

 

$dateForUpdate = $_SESSION['dateForUpdate'];

$qtySystems = $qtySystems();

 

if (isset ($_POST['butadd'])) {

for ($i=0; $i < $qtySystems; $i++) {

$arraySystemdetail[$i] = $_POST["col$i"] ;

}

 

updSystemDetail($arraySystemdetail,$dateForUpdate,$qtySystems);

}

 

$tablewidth = (($qtySystems + 2 ) * 100) + 80;

 

echo "<table width=\"$tablewidth\" border=\"1\">","\n";

$bigTable = getBigTable( $dateForUpdate);

printArray( $qtySystems, $bigTable);

echo "</table>";

 

?>

Link to comment
Share on other sites

 

My table will have many columns, depending of the user.

Also, my main page (fileA) is a  3 column display. We don't want to use 1 wide column, (except if we don't have the choice).

Thanks.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.