DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
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

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
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links