Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Non-Newbie: How to achieve "valid" frames?

Reply
Thread Tools

Non-Newbie: How to achieve "valid" frames?

 
 
enickma
Guest
Posts: n/a
 
      10-26-2004
Hi guys,

I'm currently playing with a covers band and they want a new web site. One
of the members asked if I could "make the menu stay at the top the whole
time". So, I'm using frames. Hey, it's a band web site, not a corporate one.

Anyway, I wanted to try and hand-code the frames but when I went to validate
it, it claimed that there's no "frameborder" attribute for frameset [which
is false because it's mentioned here:
http://www.w3.org/TR/REC-html40/pres...f-frameborder]

And it also mentions that the "border" attribute is not a valid attribute
[which is fair enough]. Anyway, I want to make the frames seem transparent
so people don't realize they're being used. What's a valid way of getting
rid of their borders?

Thanks in advance,

Nick.


 
Reply With Quote
 
 
 
 
The Doormouse
Guest
Posts: n/a
 
      10-26-2004
"enickma" <> wrote:

> What's a valid way of getting
> rid of their borders?


Copying the menu to the top of each and every page so that you do not need
to use frames will work.

Doh! *facepalm*

The Doormouse

--
The Doormouse cannot be reached by e-mail without her permission.
 
Reply With Quote
 
 
 
 
Dan Abrey
Guest
Posts: n/a
 
      10-26-2004

"enickma" <> wrote in message
news:fOAfd.1200$%...
> Hi guys,
>
> I'm currently playing with a covers band and they want a new web site. One
> of the members asked if I could "make the menu stay at the top the whole
> time". So, I'm using frames. Hey, it's a band web site, not a corporate

one.
>
> Anyway, I wanted to try and hand-code the frames but when I went to

validate
> it, it claimed that there's no "frameborder" attribute for frameset [which
> is false because it's mentioned here:
> http://www.w3.org/TR/REC-html40/pres...f-frameborder]
>
> And it also mentions that the "border" attribute is not a valid attribute
> [which is fair enough]. Anyway, I want to make the frames seem transparent
> so people don't realize they're being used. What's a valid way of getting
> rid of their borders?
>
> Thanks in advance,
>
> Nick.


If you just used the menu at the top of the page each time, it wouldn't not
"stay at the top the whole time". HTML rarely sprouts legs and gallops down
the page.

Either copy and paste as Doormouse said or use SSI or a dynamic language to
include it in each page.



 
Reply With Quote
 
Travis Newbury
Guest
Posts: n/a
 
      10-27-2004
In article <fOAfd.1200$%>,
says...
> I'm currently playing with a covers band and they want a new web site. One
> of the members asked if I could "make the menu stay at the top the whole
> time". So, I'm using frames. Hey, it's a band web site, not a corporate one.


Why do you need frames to keep the menu at the top all the time?
--
-=*Tn*=-
 
Reply With Quote
 
Starshine Moonbeam
Guest
Posts: n/a
 
      10-27-2004
In article <fOAfd.1200$%>, enickma
() dropped a +5 bundle of words...

> Hi guys,
>
> I'm currently playing with a covers band and they want a new web site. One
> of the members asked if I could "make the menu stay at the top the whole
> time". So, I'm using frames. Hey, it's a band web site, not a corporate one.


Frames won't help you for that. Do what doormouse recommended.

>
> Anyway, I wanted to try and hand-code the frames but when I went to validate
> it, it claimed that there's no "frameborder" attribute for frameset [which
> is false because it's mentioned here:
> http://www.w3.org/TR/REC-html40/pres...f-frameborder]
>
> And it also mentions that the "border" attribute is not a valid attribute
> [which is fair enough]. Anyway, I want to make the frames seem transparent
> so people don't realize they're being used. What's a valid way of getting
> rid of their borders?


<frameset rows(or cols)="xx,n%,*" frameborder="no" border="0">
<frame src="whatever.html" name="whatever" frameborder="no" />
</frameset>

There's still gonna be a line where the frame borders are though, sorry.

(This space reserved for the inevitable 'don't use frames' response.)

>
> Thanks in advance,
>
> Nick.



--
Starshine Moonbeam
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM







 
Reply With Quote
 
Nik Coughin
Guest
Posts: n/a
 
      10-27-2004
enickma wrote:
> Hi guys,
>
> I'm currently playing with a covers band and they want a new web
> site. One of the members asked if I could "make the menu stay at the
> top the whole time". So, I'm using frames. Hey, it's a band web site,
> not a corporate one.


Staying at the top the whole time:

http://devnull.tagsoup.com/fixed/horizontal.html


 
Reply With Quote
 
Neal
Guest
Posts: n/a
 
      10-27-2004
On Tue, 26 Oct 2004 23:08:59 GMT, enickma <> wrote:

> Hi guys,
>
> I'm currently playing with a covers band and they want a new web site.
> One
> of the members asked if I could "make the menu stay at the top the whole
> time". So, I'm using frames. Hey, it's a band web site, not a corporate
> one.


Hey, you wanna make money? It's a corporate site.

Don't use the frames. They suck. Everyone will throw live bait at you.

Trust me, I'm in a rock band. I KNOW.

My first site, I did it in frames. Boy did I ever learn. I redesigned it
the hard way, pasting the navigation in on every page. Pain in the ass.

I now am developing a new design for this page where I can do half the
work, thanks to PHP.

(Gee, I'm a regular PHP spokesperson lately. You'd think it was PCP...)
 
Reply With Quote
 
enickma
Guest
Posts: n/a
 
      10-27-2004
> Why do you need frames to keep the menu at the top all the time?

The idea was so that it would not scroll with the page. Sorry, maybe I
should've made that clearer... unless these were smartarse posts to avoid
answering the question?

Nick.


 
Reply With Quote
 
enickma
Guest
Posts: n/a
 
      10-27-2004
> <frameset rows(or cols)="xx,n%,*" frameborder="no" border="0">
> <frame src="whatever.html" name="whatever" frameborder="no" />
> </frameset>
>
> There's still gonna be a line where the frame borders are though, sorry.


Unfortunately, that code is considered "invalid" by W3C. That's what I was
asking about. Is there another way to hide the borders?

Honestly though, all you need in your code example is the frameborder="0"
and border="0" for the <frameset> element - not for the <frame> element.
Still invalid either way.

Thanks, though.


 
Reply With Quote
 
Starshine Moonbeam
Guest
Posts: n/a
 
      10-27-2004
In article <VUGfd.267$>, enickma
() dropped a +5 bundle of words...

> > <frameset rows(or cols)="xx,n%,*" frameborder="no" border="0">
> > <frame src="whatever.html" name="whatever" frameborder="no" />
> > </frameset>
> >
> > There's still gonna be a line where the frame borders are though, sorry.

>
> Unfortunately, that code is considered "invalid" by W3C.


http://www.w3.org/TR/html401/present/frames.html
http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd


> That's what I was
> asking about. Is there another way to hide the borders?


Yes.

<frameset rows="xx,n%,*" frameborder="no" border="0">
<frame src="whatever.html" name="whatever" />
</frameset>


>
> Honestly though, all you need in your code example is the frameborder="0"
> and border="0" for the <frameset> element - not for the <frame> element.
> Still invalid either way.


I know. You can apply frameborder="0" to a single frame. Why you'd want
to do that, I don't know. Aesthetics, maybe.

>
> Thanks, though.
>


No prob. Glad to help.


--
Starshine Moonbeam
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM







 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does QOS on an 828 or 837 actually achieve anything? John Rennie Cisco 4 08-26-2005 04:49 PM
Is it so difficult to achieve? AM Cisco 8 01-08-2005 08:21 PM
How to Achieve Wireless Security? Anton Wireless Networking 7 11-10-2004 07:04 AM
How can I achieve Rowspan capabilities using the ASP:Repeater control Eric ASP .Net 4 01-09-2004 07:46 PM
Exact error of what I'm trying to achieve J ASP .Net 1 08-20-2003 12:45 PM



Advertisments