473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Search across frames

Hi,

I've a webpage divided into 3 frames like this
Expand|Select|Wrap|Line Numbers
  1. <frameset rows="40,*" bordercolor="white" border="1">
  2.     <frame name="banner" noresize="noresize" scrolling="no" src="1.html">
  3.     <frameset cols="240,*">
  4.         <frame name="contents" src="2.html">
  5.         <frame name="main" src="3.html">
  6.     </frameset>
  7. </frameset>
  8.  
In the top frame I've to add a search box which will highlight the terms and words present in frame with name 'main'. I'm trying to use the 'searchhi.js' which is working fine if both the content and the search box is in the same page. Please, help me out in pointing me a way to communicate across frames. I cannot use any hidden input field in 3.html as I'll be working with a lot of pages to be loaded in that 3rd frame.
Mar 21 '11 #1
2 1511
acoder
16,027 Expert Mod 8TB
To access any frame, e.g. main, from any page:
Expand|Select|Wrap|Line Numbers
  1. top.main
top takes you straight to the topmost parent. You could use parent, but if you have nested frames, you'll have to remember how many to go up.
Mar 22 '11 #2
thanks acoder, I'll try this in my code and will let you know if it worked or not.
Mar 22 '11 #3

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

Similar topics

4
by: A Web Master | last post by:
I am designing a site for a client where I have a frameset and 3 frames (all in ASP). I am creating session variables in the frameset that need to be accessed in the frames. It seams that in...
4
by: Kai Grossjohann | last post by:
I have a design where the page is divided into two frames. The top frame is just one line tall and is to contain a menu. The bottom frame is again divided into three frames (left, middle, right)....
1
by: David Logan | last post by:
Hello, I am trying to write a page that displays a PDF document in right site of the page and a navigation bar on the left side. The only way I know to do this is using frames or iFrames and I...
6
by: Tom Braun | last post by:
Hello! My first post here... I need to monitor if someone clicked on some (any) link in a subframe. Due to certain restrictions, the only place I can put some JavaScript is in the main...
2
by: tombraun | last post by:
Hello! This is my first posting here! :-) I hope you can help me... To sum it up: I have a question about the possibility to influence the execution of JavaScript in another frame. I cannot...
1
by: Ramesh Chawla | last post by:
Hi, I want to implement drag a drop kind of functionality across frames using ASP.NET(VC#). The scenario is like, 1) I want to break the screen into 3 frames with the leftmost and the...
2
by: Merrall, Graeme | last post by:
I don't think there's an easy way to do this but I thought I better ask just in case. I'm trying to come up with a way to search across a number of databases without resorting to lots of horrible...
1
by: John | last post by:
Hello, We are developing an application against an MS SQL Server 2000 database which requires that we implement full-text searching across columns in multiple tables. The research that we have...
6
by: pronerd | last post by:
Hi, I am trying to dynamically set an event handler across frames. I have no problems setting properties across frames doing something like parent.ToolMenuFrame.location.href =...
4
by: Himzi | last post by:
Hi , I am trying to create a webpage. It has 3 frames (left, middle and right). I want to be able to drag images from the left and the right frame into the middle frame. Each time i try to drag an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.