473,769 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with anchor navigation in frames

33 New Member
Could somebody help me ? I believe this might be elementary, but I am not much familiar with HTML .In my page i have two frames. I have a number of anchor tags in right frame. Every anchor tag in left side is associated to some text and one anchor as header in right frame. When I click in left anchor tag it should focus the associated content in the right frame.
Below is main HTML page partly.
Expand|Select|Wrap|Line Numbers
  1. <frameset  cols="40%,60%">
  2.     <frame src="frame1.html" id="leftFrame1" name="leftFrame1">
  3.     <frame src="frame2.html" id="rightFrame1" name="rightFrame1">
  4. </frameset>
  5.  
And below is left frame's ( frame1.html) content.
Expand|Select|Wrap|Line Numbers
  1.  <BODY>
  2. <A HREF="#a1" target="rightFrame1">tag1</A>
  3. <A HREF="#a2" target="rightFrame1">tag2</A>
  4.  </BODY>
  5.  
And right frame's ( frame2.html) content.
Expand|Select|Wrap|Line Numbers
  1. <BODY>
  2.  <A HREF="" id="a1" name="a1">tag1</A>
  3.  <TABLE>
  4.  <TR>
  5.      <TD>1</TD>
  6.      <TD>2</TD>
  7.  </TR>
  8.  <TR>
  9.      <TD>3</TD>
  10.      <TD>4</TD>
  11.  </TR>
  12.  <TR>
  13.      <TD>5</TD>
  14.      <TD>6</TD>
  15.  </TR>
  16.  <TR>
  17.      <TD>7</TD>
  18.      <TD>8</TD>
  19.  </TR>
  20.   <TR>
  21.      <TD>7</TD>
  22.      <TD>8</TD>
  23.  </TR>
  24.  <TR>
  25.      <TD>7</TD>
  26.      <TD>8</TD>
  27.  </TR>
  28.   <TR>
  29.      <TD>7</TD>
  30.      <TD>8</TD>
  31.  </TR>
  32.  <TR>
  33.      <TD>7</TD>
  34.      <TD>8</TD>
  35.  </TR>
  36.   <TR>
  37.      <TD>7</TD>
  38.      <TD>8</TD>
  39.  </TR>
  40.  <TR>
  41.      <TD>7</TD>
  42.      <TD>8</TD>
  43.  </TR>
  44.   <TR>
  45.      <TD>7</TD>
  46.      <TD>8</TD>
  47.  </TR>
  48.  <TR>
  49.      <TD>7</TD>
  50.      <TD>8</TD>
  51.  </TR>
  52.   <TR>
  53.      <TD>7</TD>
  54.      <TD>8</TD>
  55.  </TR>
  56.  <TR>
  57.      <TD>7</TD>
  58.      <TD>8</TD>
  59.  </TR>
  60.   <TR>
  61.      <TD>7</TD>
  62.      <TD>8</TD>
  63.  </TR>
  64.  <TR>
  65.      <TD>7</TD>
  66.      <TD>8</TD>
  67.  </TR>
  68.   <TR>
  69.      <TD>7</TD>
  70.      <TD>8</TD>
  71.  </TR>
  72.  <TR>
  73.      <TD>7</TD>
  74.      <TD>8</TD>
  75.  </TR>
  76.   <TR>
  77.      <TD>7</TD>
  78.      <TD>8</TD>
  79.  </TR>
  80.  <TR>
  81.      <TD>7</TD>
  82.      <TD>8</TD>
  83.  </TR>
  84.   <TR>
  85.      <TD>7</TD>
  86.      <TD>8</TD>
  87.  </TR>
  88.  <TR>
  89.      <TD>7</TD>
  90.      <TD>8</TD>
  91.  </TR>
  92.   <TR>
  93.      <TD>7</TD>
  94.      <TD>8</TD>
  95.  </TR>
  96.  <TR>
  97.      <TD>7</TD>
  98.      <TD>8</TD>
  99.  </TR>
  100.   <TR>
  101.      <TD>7</TD>
  102.      <TD>8</TD>
  103.  </TR>
  104.  <TR>
  105.      <TD>7</TD>
  106.      <TD>8</TD>
  107.  </TR>
  108.   <TR>
  109.      <TD>7</TD>
  110.      <TD>8</TD>
  111.  </TR>
  112.  <TR>
  113.      <TD>7</TD>
  114.      <TD>8</TD>
  115.  </TR>
  116.   <TR>
  117.      <TD>7</TD>
  118.      <TD>8</TD>
  119.  </TR>
  120.  <TR>
  121.      <TD>7</TD>
  122.      <TD>8</TD>
  123.  </TR>
  124.   <TR>
  125.      <TD>7</TD>
  126.      <TD>8</TD>
  127.  </TR>
  128.  <TR>
  129.      <TD>7</TD>
  130.      <TD>8</TD>
  131.  </TR>
  132.   <TR>
  133.      <TD>7</TD>
  134.      <TD>8</TD>
  135.  </TR>
  136.  <TR>
  137.      <TD>7</TD>
  138.      <TD>8</TD>
  139.  </TR>
  140.   <TR>
  141.      <TD>7</TD>
  142.      <TD>8</TD>
  143.  </TR>
  144.  <TR>
  145.      <TD>7</TD>
  146.      <TD>8</TD>
  147.  </TR>
  148.   <TR>
  149.      <TD>7</TD>
  150.      <TD>8</TD>
  151.  </TR>
  152.  <TR>
  153.      <TD>7</TD>
  154.      <TD>8</TD>
  155.  </TR>
  156.   <TR>
  157.      <TD>7</TD>
  158.      <TD>8</TD>
  159.  </TR>
  160.  
  161.  </TABLE>
  162. <A HREF="" id="a2" name="a2">tag2</A>
  163.  </BODY>
  164.  
In simple when I click link in left frame (i.e. link tag2 ), right frame should display tag2 on screen. And anchor's in right frame is only serve as heading's and has no target. If it is necessary javascript also I could use, like using window.scrollTo ( I am not sure) etc.
Sep 12 '07 #1
1 1796
drhowarddrfine
7,435 Recognized Expert Expert
This cannot be done using html. You need to ask on the javascript board.
Sep 12 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
2507
by: Theodore A. Jencks | last post by:
Hi All, I have a problem that is two fold. First a little about the enviroment I'm using; I am running Microsoft Windows XP with all security patches applied. I use Mozilla 1.6 for all testing before I test on IE 6 w/ all updates. I am editing my style sheet with StyleMaster 3.5.2 and am hand coding. I use Dreamweaver MX 2004 and am also hand coding. I have a problem that is easily solved by using tables however I don't want to use...
0
1864
by: Jason Rodman | last post by:
I have been working on a web app that uses IFrames for our edit screens. A main window contains static information, while an IFrame contains the editable page. I use javascript from the outer page to cause the inner page to post back, but when I turn on smart navigation, it locks up IE. I tracked it down to the actual .submit() call in javascript, then its locked up. I set a couple of hidden form elements that I use for tracking, then...
4
3033
by: Sandy.Pittendrigh | last post by:
I don't want to get into a frames discussion here. We all know they have numerous drawbacks, especially with search engine visibility. (Google, ironically, uses framesets for displaying individual news group posts). Despite the trouble they cause, it is still tempting to use frames, occasionally, for instance for machine-generated pages that might have a large number of left-side navigation links. If you do use frames in that...
10
2714
by: elibol | last post by:
Hi, Is there an event that fires when the back or forward button on a browser is pressed? I need an event to fire when someone clicks the back or forward button after an anchor has been set. Thanks so much for reading about my problem! H
8
4810
by: knoxautoguy | last post by:
This problem has consumed a lot of my time, and I'm aftraid someone will tell me that my whole approach to this objective is wrong; however, I would like to know if there is a way to do this. I have a web page divided into two major segments, with the top segment fixed and the bottom segment allowed to scroll, thus giving the look of frames without frames. I also have anchors so that users can click on a letter of the alphabet to jump...
13
2876
by: Giggle Girl | last post by:
Hi there, I am having a problem with the behavior of Firefox, where lefthand column content is not resized properly after it is "collapsed" and then "re-expanded". An online demo is available here: http://s161149005.onlinehome.us/DEMOS/FF/RESIZE_PROB/main/frameset.asp It works fine in IE 6, but in Firefox, it is broken. Specifically, when the page/frameset first loads in either browser, it looks correct. But when you click the...
18
3349
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to the image. The desired behavior is that when the pop-up is invoked, I want the underlying window to stay put. I don't have this problem when I run the code on my local computer but I do have it when I run the code on geocities.
2
6103
by: gvrajkumar | last post by:
Hi We are developing an Ajax based application. In this application the URL is fixed and as user navigates on the application we will change Anchor on the URL so that user can bookmark the url and can load the page on demand. When user refreshes the page we have no issue in the populating the page based on the anchor in URL as on load we can capture the hash(#anchor) and act accordingly.
4
8062
by: naveenmurthy | last post by:
Hello All, I have created a .mht file in following format. 1. The .mht file contains following htmls. a. MHTLinkingProblem.html b. Left.html c. Right.html d. Start.html
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9422
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10208
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8867
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5294
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.