I am using this that I have found
- Code: Select all
<?php
/****************************************************************************/
/* ----> Module file used to load external URL's into an I-Frame */
/* Many thanks to forum users everywhere & specifically the */
/* wowroster team for inspiring me to figure this out! <---- */
/****************************************************************************/
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
/****************************************************************************/
/* ----> change the site URL information that you wish to load here */
$index=0;
$go_to_address1="./modules/wowroster/index.php";
$go_to_address=rawurldecode($go_to_address1);
/* end url input <---- */
?>
<script language="JavaScript">
<!--
function calcHeight()
{
//Smallest the frame should ever be
var min_height=0;
//Largest the frame should ever be, 0 for no max
var max_height=0;
//find the height of the internal page
var the_height = document.getElementById('roster_iframe').contentWindow.document.body.scrollHeight;
if(the_height< min_height)
{
the_height = min_height;
}
else if(max_height != 0)
{
if(the_height > max_height)
{
the_height = max_height;
}
}
//Pad it a bit so firefox doesn't show scrollbars
the_height=the_height + 50;
document.getElementById('roster_iframe').height=the_height;
}
//-->
</script>
<?php
include("header.php");
define('INDEX_FILE', true);
OpenTable();
/****************************************************************************/
/* ----> iframe code to load above URL */
echo "<iframe id=\"roster_iframe\" SRC=\"".$go_to_address."\" width=\"100%\" onLoad=\"calcHeight()\"
framespacing=0 frameborder=no border=0 scrolling=auto></iframe>\n";
/* end iframe load <---- */
CloseTable();
include("footer.php");
?>
If you want to look, its a site I am playing with, and you should not need to llogin, just look at the left side under modules and click on roster to see what its doing
www.ktears.com
thanks for any info to figure this out