/    Sign up×
Community /Pin to ProfileBookmark

problem loading another frame

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.location.href = “04.htm”

doesn’t work.

In 02.htm I specify (note in href= the addition of sub

<a href=”sub3.htm” target=”_L”>load 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.
ps i’m a newbie, don’t know how to put into php etc

<! 00.htm

<HTML>
<HEAD><TITLE>&nbsp</TITLE></HEAD>
<BODY> Opening screen _L </BODY>
</HTML>

<! 01.htm

<HTML>
<FRAMESET COLS=”82%,*”>
<FRAME NAME=”_L” SRC=”00.htm”>
<FRAME NAME=”_
R” SRC=”02.htm”>
</FRAMESET>
</HTML>

<! 02.htm

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

<a href=”03.htm” target=”_L”>load 03.htm into _L</a>

</BODY>
</HTML>

<! 03.htm

<HTML>
<HEAD><TITLE>test</TITLE><SCRIPT>

parent._R.location.href = “04.htm”;

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

<! 04.htm

<HTML>
<HEAD><TITLE>&nbsp</TITLE></HEAD>
<BODY> This is 04.htm in _R loaded from _L </BODY>
</HTML>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisApr 04.2008 — The underscore character is not valid for the first character of a name in HTML according to the W3C. Perhaps that is the problem.
×

Success!

Help @wmbrae spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...