Thread: PHP in a IFRAME
View Single Post
  #8 (permalink)  
Old 04-22-2004, 02:26 AM
inkblot's Avatar
inkblot inkblot is offline
WebProWorld New Member
 
Join Date: Apr 2004
Location: Ottawa, ON
Posts: 21
inkblot RepRank 0
Default IFRAME-like for XHTML

If you want to make it make compiant with XHTML strict and still wanted to give it the IFRAME look you could have them use the CSS overflow property.

Code:
.myContent {
	overflow: auto;
	width: 200px;
	height: 300px;
}
Then the HTML to be included on the other site's would be:

if they can use PHP:
Code:
<div class="myContent">
    <?php include("http://yoursite.com/youfile.php"); ?>
</div>
Avoiding the PHP only issue
Code:
<div class="myContent">
    <script type="text/javascript" src="http://yoursite.com/yourscript.js"></script>
</div>
This javascript would have to output the content of the inner frame but it would not execute as PHP. This may not help at all... but I thought the alternative to IFRAME (which is not compliant) was pertanent.[/code]
__________________
Inkblot
D2 Digital Media
Reply With Quote