4 Replies Latest reply on Aug 19, 2008 10:06 AM by Newsgroup_User

    Link not opening in frame

    Jo.T
      I made a left and right frame on page, (and another Dreamweaver page called "Link_1")
      I then Alt-Click on the left and right frame and give them the name leftframe and rightframe.
      I select an image in the left frame on the first document to make a link.
      I browse for the file "Link_1" for the content.
      I Target it to rightframe.
      I open it in Explorer and when I click on the link in the left frame it opens in a new window instead of into the right frame. How can I get it to open in the rightframe instead of a new window?

      Thanks
        • 1. Re: Link not opening in frame
          Jo.T Level 1
          Here is the HTML for it. It is just a left frame and a right frame. When I preview it in Explorer the link for the button graphic just opens in another window instead of in the right frame:

          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <html xmlns=" http://www.w3.org/1999/xhtml">
          <head>
          <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
          <title>Untitled Document</title>
          </head>

          <body>
          <a href="link_1.html" target="rightframe"><img src="../Photoshop Button.png" width="100" height="49" /></a>
          </body>
          </html>
          • 2. Re: Link not opening in frame
            Level 7
            Frames are rarely the optimal solution for your webpage.

            If, when you made the frameset file, you named the individual frames
            'leftframe' and 'rightframe' then the target attribute will work as you
            desire.

            --
            Murray --- ICQ 71997575
            Adobe Community Expert
            (If you *MUST* email me, don't LAUGH when you do so!)
            ==================
            http://www.dreamweavermx-templates.com - Template Triage!
            http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
            http://www.dwfaq.com - DW FAQs, Tutorials & Resources
            http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
            ==================


            "Jo.T" <webforumsuser@macromedia.com> wrote in message
            news:f964d7$q4n$1@forums.macromedia.com...
            >I made a left and right frame on page, (and another Dreamweaver page
            >called
            > "Link_1")
            > I then Alt-Click on the left and right frame and give them the name
            > leftframe
            > and rightframe.
            > I select an image in the left frame on the first document to make a link.
            > I browse for the file "Link_1" for the content.
            > I Target it to rightframe.
            > I open it in Explorer and when I click on the link in the left frame it
            > opens
            > in a new window instead of into the right frame. How can I get it to open
            > in
            > the rightframe instead of a new window?
            >
            > Thanks
            >


            • 3. Re: Link not opening in frame
              avoirgold Level 1
              I am having this same problem!!! Yes, yes. Frames are evil, but serve my needs on this project. I need 2 static frames (top and left) and one dynamic frame. Left frame is the main Navigation Bar. The top is a Category Header. I have years listed in the Category Header that need to jump to a named anchor in the dynamic frame.

              This is my frameset:

              <frameset rows="*" cols="195,816">
              <frame src="Navigation.html" id="NavigationBar" />
              <frameset rows="106,332" cols="*">
              <frame src="SWSPIRsHeader.html" id="Header" />
              <frame src="SWSPIRs.html" id="MainContent" />
              </frameset>
              </frameset>

              This is how the Header reads:

              <div align="center">
              <h1 class="CategoyHeader">SWSPIRs</h1>
              <h1 class="Years">08 . <a href="SWSPIRs.html#2007" target="MainContent">07</a> . <a href="SWSPIRs.html#2006" target="MainContent">06</a> . <a href="SWSPIRs.html#2005" target="MainContent">05</a> . 04 . 03 . 02 . 01 . 00 . 99 . 98 . 97 . 96 . 95</h1>
              </div>

              When I click "06" it opens a new tab or window depending on browser instead of jumping to the 2006 listing in the MainContent frame containing SWSPIRs.html. It goes to the correct anchor point, but just doesn't open in the darned frame. What am I doing wrong?


              Thanks so much for your help!!!!

              Jennifer
              • 4. Re: Link not opening in frame
                Level 7
                Change this -

                <frameset rows="*" cols="195,816">
                <frame src="Navigation.html" id="NavigationBar" />
                <frameset rows="106,332" cols="*">
                <frame src="SWSPIRsHeader.html" id="Header" />
                <frame src="SWSPIRs.html" id="MainContent" />
                </frameset>
                </frameset>

                to this -

                <frameset rows="*" cols="195,816">
                <frame src="Navigation.html" id="NavigationBar" name="NavigationBar" />
                <frameset rows="106,332" cols="*">
                <frame src="SWSPIRsHeader.html" id="Header" name="Header" />
                <frame src="SWSPIRs.html" id="MainContent" name="MainContent" />
                </frameset>
                </frameset>


                --
                Murray --- ICQ 71997575
                Adobe Community Expert
                (If you *MUST* email me, don't LAUGH when you do so!)
                ==================
                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                ==================


                "avoirgold" <webforumsuser@macromedia.com> wrote in message
                news:g8d6qo$fu8$1@forums.macromedia.com...
                >I am having this same problem!!! Yes, yes. Frames are evil, but serve my
                >needs
                > on this project. I need 2 static frames (top and left) and one dynamic
                > frame.
                > Left frame is the main Navigation Bar. The top is a Category Header. I
                > have
                > years listed in the Category Header that need to jump to a named anchor in
                > the
                > dynamic frame.
                >
                > This is my frameset:
                >
                > <frameset rows="*" cols="195,816">
                > <frame src="Navigation.html" id="NavigationBar" />
                > <frameset rows="106,332" cols="*">
                > <frame src="SWSPIRsHeader.html" id="Header" />
                > <frame src="SWSPIRs.html" id="MainContent" />
                > </frameset>
                > </frameset>
                >
                > This is how the Header reads:
                >
                > <div align="center">
                > <h1 class="CategoyHeader">SWSPIRs</h1>
                > <h1 class="Years">08 . <a href="SWSPIRs.html#2007"
                > target="MainContent">07</a>
                > . <a href="SWSPIRs.html#2006" target="MainContent">06</a> . <a
                > href="SWSPIRs.html#2005" target="MainContent">05</a> . 04 . 03 . 02 . 01 .
                > 00 .
                > 99 . 98 . 97 . 96 . 95</h1>
                > </div>
                >
                > When I click "06" it opens a new tab or window depending on browser
                > instead of
                > jumping to the 2006 listing in the MainContent frame containing
                > SWSPIRs.html.
                > It goes to the correct anchor point, but just doesn't open in the darned
                > frame.
                > What am I doing wrong?
                >
                >
                > Thanks so much for your help!!!!
                >
                > Jennifer
                >