Target frame


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Target frame

  1. #1
    Join Date
    Dec 2004
    Location
    México DF
    Posts
    127

    Target frame

    Dear all,

    This should be really easy, but I just can't get it to work.

    I have defined two frames:

    Code:
    <HTML>
    <HEAD><TITLE>Test</TITLE></HEAD>
    <FRAMESET rows="200,*" border="0">
      <FRAME id="frmButtons" src="buttons.htm" scrolling="no" noresize>
      <FRAME id="frmMain" src="" scrolling="no" noresize>
    </FRAMESET>
    </HTML>
    Now from a link in frame one I want to load a document in frame two:

    Code:
    <a href="Screen1.htm" target="top.frames['frmMain']">[Load Screen]</a>
    But it justs ignores my target frame and load the page in the whole window!

    What am I doing wrong? I just can't see!

    TIA for your help,

    mc

  2. #2
    Join Date
    Apr 2005
    Location
    Pasig, Phil.
    Posts
    8

    Smile

    try this instead of using 'id' use 'name' and change the target.

    Quote Originally Posted by MulaChula
    Code:
    <HTML>
    <HEAD><TITLE>Test</TITLE></HEAD>
    <FRAMESET rows="200,*" border="0">
      <FRAME name="frmButtons" src="buttons.htm" scrolling="no" noresize>
      <FRAME name="frmMain" src="" scrolling="no" noresize>
    </FRAMESET>
    </HTML>

    Code:
    <a href="Screen1.htm" target="frmMain">[Load Screen]</a>
    I hope it helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center