LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 06-26-2005, 11:59 AM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
Help on an HTML project


I've been maintaining the local church's website, and it was designed in FrontPage. I'm working on writing it in correct HTML, to allow for other browser's access. I have it set up so that a frame works as the navigation bar, and the content opens in another frame, kinda like this
Quote:
-----------------|
-----------------|
-----------------|
navigation----| content
-----------------|
-----------------|
-----------------|
-----------------|
you can see what I mean here www.stahfp.org/test.html
whenever I click on one of the navigation buttons, it opens in a new window. The link line reads
Code:
<a href="pg2.html" target="content"><img src="_images/pcs&cbt.jpg" border="0"></a><p></p>
I have a feeling the 'target="content"' part is what makes it open in a new window. Is there any way to have it open the page in the 'content' frame, without opening a new window?

Last edited by microsoft/linux; 06-26-2005 at 12:02 PM.
 
Old 06-26-2005, 12:18 PM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Is the frame called "content". The name behind the 'target=' should be the frame's name. If this is the name, are you sure it's not reserved for something else? You might want to try a different name.
 
Old 06-26-2005, 12:18 PM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
for some reason the content.html page is not functioning correctly, but if you go to www.stahfp.org/test.html you will get the gist of what I'm trying to say
 
Old 06-26-2005, 12:18 PM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
It seems to be working correctly for me

Oh, except the first link in the navigation.

Last edited by phil.d.g; 06-26-2005 at 12:21 PM.
 
Old 06-26-2005, 12:19 PM   #5
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
yes, the frame is called content. I don't know if it's reserved for something else. I'll see what happens when I change it
 
Old 06-26-2005, 12:21 PM   #6
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
changing the frame name does not affect it. It still opens the page linked to in a new window. Other thoughts?
 
Old 06-26-2005, 12:23 PM   #7
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
which browser are you using? by first link, do you mean the first time you press the button, or the "home" button. There is nothing uploaded, so most of those links won't have any content, and it will not be able to find what it's looking for.
 
Old 06-26-2005, 12:23 PM   #8
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
what happens if you remove the target attribute altogether, I have been designing a website myself and never bothered with the target attribute and the default behaviour is what I expected, the link to open the page in the content frame, which I have called 'main' on my site
 
Old 06-26-2005, 12:24 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
For me it work correctly, but there's no file that should be opened. Create temporary, blank ones and test it.
 
Old 06-26-2005, 12:25 PM   #10
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
when I tried that it opened the page in the frame where the navigation1.html file it. I'll play w/ that some more, but that didn't seem to work for me
 
Old 06-26-2005, 12:29 PM   #11
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
removing the
Code:
target="content"
opened the page in the space where the navigation bar is

Last edited by microsoft/linux; 06-26-2005 at 12:39 PM.
 
Old 06-26-2005, 12:30 PM   #12
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
for those of you for who it's working correctly, can you tell me what happened?
 
Old 06-26-2005, 12:33 PM   #13
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172
Blog Entries: 1

Rep: Reputation: 30
your main frame, where the content is, is called: "content"
remove the .html, and simply do target="content"
 
Old 06-26-2005, 12:34 PM   #14
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Quote:
Originally posted by microsoft/linux
removing the
Code:
target="content.html"
opened the page in the space where the navigation bar is
Was that the line you had in there? Or the one from your first post. There's a difference between content as frame name and content.html
 
Old 06-26-2005, 12:37 PM   #15
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
that's how it reads. If you see the source for www.stahfp.org/navigation1.html you'll see the link sources. test.html just get's the files navigation.html and content.html and is supposed to put them in the correct frames
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge Of Html Files Into A Single Html (or Pdf) fiomba Linux - Software 10 05-11-2018 11:28 AM
how to convert text(html) back to html. d1l2w3 Linux - Software 4 04-08-2005 08:16 PM
Beginning a big project - Need an Good Project Manager gamehack Programming 3 01-15-2004 11:49 AM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 05:06 AM
Cannot see Open GL project in KDevelop project wizard SparceMatrix Programming 2 08-07-2002 11:14 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration