Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems with iframe?

Status
Not open for further replies.

JackEcru

Programmer
Joined
Jan 19, 2005
Messages
2
Location
GB
Has anyone had this problem?

I've got an html page with:

<IFRAME SRC="page.php" WIDTH=225 HEIGHT=100></IFRAME>

if I look at page.php it's fine, but if I look at the HTML page with the IFRAME tag in it, it gives me this error:

"Not Found
The requested URL page.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "

it's like the server is trying to change the requested URL from .php to .html !! I confirmed this by making a bogus little page.html file, and this displays instead! What the heck?

...

anyone seen this? any ideas?

Thanks!

-N
 
Why do you use IFRAME with php??
you can use <div> and control overflow!

then, inside the <div>, you have
<?php
require("page.php");
?>

I would design the page with <div> instead of tables too..

Olav Alexander Mjelde
Admin & Webmaster
 
well, I have two possible points:

1. I may need to be CSS-unfriendly -- although in actuality, no, my main concern is:

2. I've got to be able to scroll around in the area exactly like an iframe. Is there a way to do this with the DIV tag? I don't believe so... If I am wrong, please point me in the right direction!

-N
 
use overflow: auto

Code:
<div style="position:absolute; left:100px; top:100px; width:100px; height:100px; background-color:#ffffff; overflow:auto;">
<?php
require("page.php");
?>
</div>

Olav Alexander Mjelde
Admin & Webmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top