Getting a lot of errors when attempting to validate this form
Howdy. I was directed here by a member from another forum who said this is the place to ask more advanced questions, so here goes:
I'm currently working on converting my HTML pages into XHTML - getting a jump start on the 'next big thing' in web design. It's going well except for one minor problem. I have a form that uses listboxes as a navigation method and the W3C Strict XHTML 1.0 validator is spitting out a whopping 405 errors regarding this form.
Could someone take a look at my code and tell me what I'm doing wrong? It'd be greatly appreciated.
I'm currently working on converting my HTML pages into XHTML - getting a jump start on the 'next big thing' in web design.
Just to let you know, XHTML isn't the "next big thing" in web design as much as standards is. So I would put less stress into converting your site to XHTML (which is still being served as HTML anyway) and more into moving the site away from a nested table layout... essentially structuring your page a little more semantically.
But you're taking all the right steps, though... validation is a great place to start.
Alright, down to 4 errors. Yes - the forms need to have a name, that's how the javascript works.
See the form name is "nav2" and the script is like: onchange="document.location.href=document.nav2.Gen2.options[document.nav2.Gen2.selectedIndex].value"
So how do I make it stop giving errors?
As for adding actions, what should I add? I don't think that's it. The validator is just complaining about the 'name' parameter.
To rmedek - I read somewhere that HTML was becoming outdated so I decided to just switch to XHTML.
As for using tables - yeah, I've already been lectured on that. The problem is, I have 400 pages already laid out in tables and converting it to div would be a major pain.
I like tables anyway - hey, at least I'm not using FRAMES anymore! LOL. I had a whole site made with inline frames.
__________________ Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
Pretty buttons does not a great website make.
You might be better off using the bracket notation. Glenng has some good documentation about this. For the first form. You can start with 0 then the forms after that go in subsequent order, so your nav2 would be document.forms[1].Gen2. etc.