473,804 Members | 3,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem loading another frame

3 New Member
i'm a total newbie, been at this for 3 days.

The sample below works. It consists of 4 separate htm files.

Lauch 01.htm creates 2 frames _L, _R and _R has a link which when pressed will load 03.htm into _L and 03.htm will load 04.htm into _R.

When all files are in the same directory it works
When 03.htm is stored in a sub-directory (called sub) below the other files, the load

parent._R.locat ion.href = "04.htm"

doesn't work.
In 02.htm I specify (note in href= the addition of sub\

<a href="sub\03.ht m" target="_L">loa d 03.htm into _L</a>

and when you click on the link load 03.htm into _L it loads 03.htm just fine but the script in the header doen't work.
Can anyone help?
Thanks.


<! 00.htm

[HTML]<HTML>
<HEAD><TITLE>&n bsp</TITLE></HEAD>
<BODY> Opening screen _L </BODY>
</HTML>
[/HTML]
<! 01.htm

[HTML]<HTML>
<FRAMESET COLS="82%,*">
<FRAME NAME="_L" SRC="00.htm">
<FRAME NAME="_R" SRC="02.htm">
</FRAMESET>
</HTML>
[/HTML]
<! 02.htm

[HTML]<HTML>
<HEAD><TITLE>02 </TITLE></HEAD>
<BODY>

<a href="03.htm" target="_L">loa d 03.htm into _L</a>

</BODY>
</HTML>
[/HTML]

<! 03.htm

[HTML]<HTML>
<HEAD><TITLE>te st</TITLE><SCRIPT>

parent._R.locat ion.href = "04.htm";

</SCRIPT></HEAD>
<BODY> Load 04.htm into _R </BODY>
</HTML>
[/HTML]

<! 04.htm

[HTML]<HTML>
<HEAD><TITLE>&n bsp</TITLE></HEAD>
<BODY> This is 04.htm in _R loaded from _L </BODY>
</HTML>[/HTML]
Apr 4 '08 #1
3 1125
hsriat
1,654 Recognized Expert Top Contributor
Back slashes are not used here.
Replace sub\ with sub/


Harpreet
Apr 4 '08 #2
wmbrae
3 New Member
Back slashes are not used here.
Replace sub\ with sub/
Harpreet
Thanks to acoder for cleaning up my post.

Thanks to Harpereet for your response.
I didn't uderstand it at first, but I tried it out.

in 02.htm, the \ worked in
<a href="sub\03.ht m" target="_L">loa d 03.htm into _L</a>
but based on the response, I changed it to
<a href="sub/03.htm" target="_L">loa d 03.htm into _L</a>
it worked also but with the same result the load _R didn't work.

the big difference was in 03.htm, where i changed

parent._R.locat ion.href = "04.htm";

to

parent._R.locat ion.href = "c:/04.htm";

the page was loaded.

Thank-you
Apr 4 '08 #3
hsriat
1,654 Recognized Expert Top Contributor
Try parent._R.src = "04.htm";
or parent.frames['_R'].src = "04.htm";

And one more thing. Its &nbsp; not &nbsp (don't forget the semi-colon in the end)

Regards,
Harpreet
Apr 4 '08 #4

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

Similar topics

0
1650
by: flupke | last post by:
Hi, i need to develop a gui which will load several "windows" depending on what the users selects in the menu and i thought i could accomplish this with panels. What i'm trying to do to test this is load an initial panel and then when the user hits a button load a second panel. This doesn't seem to work. 1. what's the appropriate way of switching panels? 2. the loadNewPanel function seem wrong. I always get loading panel two".
1
1637
by: Alex Hunter | last post by:
is there a way to make one frame on a page load completely before the other frame starts loading?
13
5034
by: elad | last post by:
Hi The Menu doesn't work properly when I have 2 frame and the Menu popup frame=document target frame, when I choose item in the menu the doc opened and the menu get stuck. Here is the code I'm using: FrameSet ------------------------------------------------------- <html>
4
3850
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following beautiful script "http://javascript.internet.com/navigation/toolbar-menu.html". It works like a charm. I made my webpage in frames, where the nav-frame shows the menubar, so whenever I click a link in the menubar, it opens in the frame below. But...
1
1290
by: Brandon | last post by:
A newbie question for you all: Suppose you have a webpage with two frames: a main frame, and a second frame. You have several hyperlinks to other websites in the second frame. What you want is this: when someone clicks one of the hyperlinks in the second frame, the website that it points to will appear in the main frame. Well, for most hyperlinks, this is easy. You just include the string
2
1148
by: Don | last post by:
From within the "main" frame, using JS, I'm trying to copy a couple variables and arrays from the "header" frame into the "main" frame. I've incorporated a couple "alert" statements to test the resulting data, and find that sometimes it's good and sometimes it's "undefined". I'm thinking this is a timing issue between the time the variables and arrays are resolved in the "header" frame, and the time they are referenced in the "main" frame....
13
2879
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...
0
9710
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
9589
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
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10329
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
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7626
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6858
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();...
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3000
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.