/    Sign up×
Community /Pin to ProfileBookmark

Desperate help with linkage in frames…

Hi all, I am in need of assistance.

I am maintaining a website, and I have made it so that the navigation bar is to the left of the page, and the contents of each page are in frames in the middle.
Now, whenever I click on a navigation link, it changes the frame ok, but it also refreshes the whole page (as if it is also taking me to the next page).
All I want is for the nav links to change the frame…

Is this possible?

Thanks in advance,
Rafi

to post a comment
HTML

9 Comments(s)

Copy linkTweet thisAlerts:
@Mr_JJul 30.2005 — Can you post your url or the code for the links?

Also give the names of your frames
Copy linkTweet thisAlerts:
@tralalalaauthorJul 30.2005 — OK here are how the links are: <a href="homeframe.html> (that is the frame I want, but it opens in the whole page).

names of frames: homeframe.html, contactframe.html, coursesframe.html,staffframe.html.


Thanks
Copy linkTweet thisAlerts:
@NogDogJul 30.2005 — When you define your frame elements, give each a unique name:
<i>
</i>&lt;frame name="main" src="homeframe.html"&gt;

When you want a link to display in that frame, use the target attribute:
<i>
</i>&lt;a href="another_page.html" target="main"&gt;Another Page&lt;/a&gt;
Copy linkTweet thisAlerts:
@tralalalaauthorJul 30.2005 — So I put <frame name....> inside the HTML doc which will be in the frame yeah?


Because I use the <iframe> tag for it.. ?
Copy linkTweet thisAlerts:
@tralalalaauthorJul 30.2005 — Nope it doesn't seem to work the way I did it..

Can you be more descriptive as of what I do?

Each frame has it's filename (e.g homeframe.html, coursesframe.html etc.).

I have a page called home.html which is the startpage, and in fact I want it to be the only page (because all the others will be in the frames...).

In hom.html I have links on the navbar, and I use <iframe> for putting in the content of the page.

What do I do to make it so as all the nabar links will open inside that one frame in home.html?


Thanks
Copy linkTweet thisAlerts:
@NogDogJul 30.2005 — Same thing, just put the name in the iframe:
[code=html]
<iframe name="main_frame" src="some_page.html"></iframe>
<p><a href="another_page.html" target="main_frame">Another Page</a></p>
[/code]
Copy linkTweet thisAlerts:
@tralalalaauthorJul 30.2005 — Superb, it worked!! Thanks so much for your help ? ?


Rafi
Copy linkTweet thisAlerts:
@tribuilonggoJul 30.2005 — i think its possible..hmm..can i ask what are using for making a web is it front page,dreamweaver or etc. maybe i can help
Hi all, I am in need of assistance.


I am maintaining a website, and I have made it so that the navigation bar is to the left of the page, and the contents of each page are in frames in the middle.

Now, whenever I click on a navigation link, it changes the frame ok, but it also refreshes the whole page (as if it is also taking me to the next page).

All I want is for the nav links to change the frame...

Is this possible?


Thanks in advance,

Rafi[/QUOTE]
Copy linkTweet thisAlerts:
@tralalalaauthorJul 30.2005 — Thanks for your offer tribuilonggo, but NogDog has already managed to give me the answer for my problem ?


Thanks anyway though ?
×

Success!

Help @tralalala 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.29,
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,
)...