/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Frameset Refresh Problem

Dear Users,

I am very new to this forum and this is my first post. So I hope I can state the problem clearly.

I have a 2-frame frameset in one html index.

For Ex.:

[I]<<
INDEX.HTML

<frame src=”index1.html” name=”LeftMenuFrame”>
<frame src=”index2.html” name=”RightContentFrame”>

>>[/I]

In this situation LeftMenuFrame displays INDEX1.html and RightContentFrame displays INDEX2.html.

Well, now let say a link in the INDEX1.html aims “RightContentFrame”

For Ex.:

[I]<<
INDEX1.HTML

<a href=”CONTENT.html” target=”RightContentFrame”>

>>[/I]

If click on the link in INDEX1.html, LeftMenuFrame will still be displaying INDEX1.html but RightContentFrame will be displaying CONTENT.html.

Everything is OK until now.

Here, when I refresh the page, it refreshes both frames in the frameset. I am happy with the LeftMenuFrame becuse there should always be a navigation menu there. But the RightContentFrame refreshes itself only with the very last content it was showing.

For Ex.:

[I]If I click to link in INDEX1.HTML
Then
After Refresh, LeftMenuFrame is reloading INDEX1.html but RightContentFrame is reloading CONTENT.html.[/I]

??What I want is, make INDEX.HTML return to its default situation after refreshing the index. LeftMenuFrame should display INDEX1.HTML and RightContentFrame should display INDEX2.HTML??

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@tracknutJun 18.2009 — It's clear what you want to do (redefine the browser refresh function to be a "go home" function) but I'd recommend re-thinking this idea. It is considered bad web practice to deviate from "normal browser functionality" and your users are not going to expect that when they hit the refresh button, they will go to your home page. Much better to just include a "home" link in your index1.html navigation menu.

Dave
Copy linkTweet thisAlerts:
@FlashbondauthorJun 18.2009 — Well... In fact I have a button like this.

Probably you may be right. I never thought like this. Maybe the visitors will just want to refresh the actual pages.

But my navigation menu consists of .swf animation. So it reloads itself to its first scene.

I think it will be visually better to make also RightContentFrame return to its default (first) state.
×

Success!

Help @Flashbond 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...