PDA

View Full Version : Iframe SSI script Page reload



loomy
08-08-2007, 05:23 PM
1) Script Title: IFrame SSI script II

3) Describe problem:
HI!

first of all thank you for the very useful scripts!
I used them many times but now I got a problem I've got a php page
which loads the content into the Iframe - but now google spiders that sites and I only get the Iframe content not the mainpage (index.php) with buttons etc. - I am not really firm in javascript ... can you please explain me how I implement this to my "iframed" pages that they have to load the index.php and not only itself?
Thank you very much

Steve

loomy
08-09-2007, 06:31 PM
HI @ll,

I found a solution myself.
If anyone is interested - I definded in the document which calls the iframe a variable in php and let the document which is shown in the iframe - check for this.
If the variable is not definded - it calls:


<?php if ($complete != "okay") {
?>
<script type="text/javascript">
location.href = "index.php?content=yours...";
</script>
<?}?>

Hope this helps anyone....

CU