[thelist] Simple navigation Menu form question

rudy r937 at interlog.com
Mon Aug 6 09:15:52 CDT 2001


> Aside from the fact that it won't validate
> (<form> is missing an ACTION), are there any flaws in it?

hi eric

you can have form elements without a <form> tag and they will validate --
xhtml strict, too, which surprised the heck out of me, seeing as how strict
is all about proper structure...

> Are there good reasons NOT to do this?

oh, yes, there is one really good reason not to do it

it will not work if the browser does not support javascript or has it
turned off

if you believe internet stats (sorry, don't gots any myself, i am just
repeating what i hear from time to time), this is anywhere from 5 to 20% of
all surfers

your javascript looks okay, but you really must provide alternate
navigation

i use a drop down for navigation on my site too, but it isn't javascript,
it's a real form with a real submit button (although it's named "go"
instead) and it submits to a server script that sends back the selected
page, so in that sense it is pretty bullet-proof, although there are people
who will argue that dropdowns were never intended for navigation


rudy
http://rudy.ca/





More information about the thelist mailing list