473,407 Members | 2,326 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,407 software developers and data experts.

Avoid loading a particular frame in a frameset

Hi

I have 2 frames in a main frameset. frame1 (top) ,frame2 (bottom)

In top frame (frame1) i have my text box where i enter my search
string. Also I am calling onLoad in
<body onLoad="loadXML()"which loads a 8MB XML data in a DOM object
like,

<html>
<head>
<script type="text/javascript">
function loadXML()
{
//load the xml data in a DOM object.
}
</script>
</head>

<body onLoad="loadXML()">
</body>
</html>

Now based on the data and the string available in frame1, i will
display my search results in bottom frame (frame2).

What I want is, once I load the whole frameset for the first time,
even when I "refresh/reload" the main frameset html page, the frame1
should not be refreshed or atleast the xml data should not be loaded
again (as the size of the xml data is 8MB and will never change). So
how to achieve this?

Thanks
Ravikiran

Mar 5 '07 #1
2 1682
ASM
kr********@gmail.com a écrit :
I have 2 frames in a main frameset. frame1 (top) ,frame2 (bottom)

In top frame (frame1) i have my text box where i enter my search
string. Also I am calling onLoad in
<body onLoad="loadXML()"which loads a 8MB XML data in a DOM object
What I want is, once I load the whole frameset for the first time,
even when I "refresh/reload" the main frameset html page, the frame1
should not be refreshed or atleast the xml data should not be loaded
again (as the size of the xml data is 8MB and will never change).
why wouldn't you load a "normal" html (xhtml) page in your datas-frame ?
the "DOM object" will be there (in hidden if you like)
with a little luck it will be in cache on next refresh ?

you can also use an external JS file if you prefer

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Mar 5 '07 #2
On Mon, 05 Mar 2007 12:27:06 +0100, <kr********@gmail.comwrote:
Hi

I have 2 frames in a main frameset. frame1 (top) ,frame2 (bottom)

In top frame (frame1) i have my text box where i enter my search
string. Also I am calling onLoad in
<body onLoad="loadXML()"which loads a 8MB XML data in a DOM object
like,

<html>
<head>
<script type="text/javascript">
function loadXML()
{
//load the xml data in a DOM object.
}
</script>
</head>

<body onLoad="loadXML()">
</body>
</html>

Now based on the data and the string available in frame1, i will
display my search results in bottom frame (frame2).

What I want is, once I load the whole frameset for the first time,
even when I "refresh/reload" the main frameset html page, the frame1
should not be refreshed or atleast the xml data should not be loaded
again (as the size of the xml data is 8MB and will never change). So
how to achieve this?

Thanks
Ravikiran
Why on earth would you want to push 8MB of data to the user? I do hope
they aren't on dial-up!

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Mar 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Fotozine | last post by:
well, after several months of learning, writing and developing my site, (and colecting hunderts of users in few days) one person have "included" my whole site under his domain. in frameset: ...
2
by: Mike | last post by:
I have a typical two frame frameset. Menu frame on the left, load content on the right frame. Lately I have been having problems in that sometimes menu links will open a new window instead of...
1
by: RichardM | last post by:
I have the following HTML page (see bottom of message) that consists of a frame with two windows. The top window is always the menu, and the bottom window is by default a document named...
10
by: John Ortt | last post by:
Hi Everyone, I have created a Javascript menu for my site which uses frames. The first stage loads fine but I want two drill down menus ("About Me Menu" and "Projects Menu"). The pages load...
1
by: Jessica Weiner | last post by:
I have a website with the company logo on top. Underneath the logo there is a menu which has links. When the user clicks on a link, I want to be able to take them to that page without having to...
9
by: Alexandra | last post by:
Not sure why none of these permutations are working. I appreciate a second set of eyes! .... <form id="form1" name="form1" > .... <input name="Submit1" type="submit" tabindex="10"...
6
by: centre507 | last post by:
Hi, I have three frames, top, middle and bottom. Main page has website link and I want those website content to be shown inside of middle frame while clicking links inside of top frame. ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.