Results 1 to 4 of 4

Thread: Question about links & I-frames

  1. #1
    174
    posts
    Registered User

    Question about links & I-frames

    I know this is mostly a flash forum, but I have a question dealing with dreamweaver. Ok...I have a sitemap page and on that page has all the links inside of my site. The problem is that I'm using I-frames. So say "page 1" automatically loads "subsection 1" into the iframe and the subsections are "subsection 1" and "subsection 2". Does anybody know how I can load "page 1" and "subsection2" automatically from a link in sitemap?

  2. #2
    176
    posts
    Registered User
    color me lost ... i think you're talkin bout the target but I'm not sure ...
    PHP Code:
    <zip> echo this; </zip

  3. #3
    Iframe == The Devil
    Member #2 of the "I wont critique Timmytot's designs anymore" club.

  4. #4
    176
    posts
    Registered User
    Ooh Ooh i think i get it ... You'll have to use some server side scripting.
    Page 1:
    PHP Code:
    ...
    <?php
    $page 
    = ($_GET["page"]==''?'subsection1.htm':$_GET["page"]) . '.htm';
    ?>

    <iframe src="<?=$page?>"> You cannot view inline frames </iframe>
    ...
    Sitemap
    HTML Code:
    ...
    <a href="page1.php?page=subsection1">Page1: Subsection1</a>
    <a href="page1.php?page=subsection2">Page1: Subsection2</a>
    ...
    The php creates a dynamic page reference so you can put anything you want by assigning it into the variable page and passing it in the url. This is assuming you have php installed and working.
    PHP Code:
    <zip> echo this; </zip

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012