Results 1 to 2 of 2

Thread: Iframe SSI script Page reload

  1. #1
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframe SSI script Page reload

    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

  2. #2
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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 Code:
    <?php if ($complete != "okay") {
    ?>
    <script type="text/javascript">
    location.href = "index.php?content=yours...";
    </script>
    <?}?>
    Hope this helps anyone....

    CU

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •