Click to See Complete Forum and Search --> : required attribute "action" javascript and xhtml


mattkd
10-27-2003, 08:46 PM
I'm an amature (sp?) to say the least when it comes to HTML and am very inexperienced when it comes to JavaScripts.

I manage the website for the karate school I teach at and am testing out an idea for a maps section with two drop-down menus. I got a JavaScript code from http://javascript.internet.com and it seems to work fine--then I ran it through a validator. The validator came up with a few problems in the JavaScript (the page is supposed to be XHTML Transitional) including one that said this:

required attribute "action" not specified (explain...).
<form name="menufrm">

What sort of action attribute do I need for this? The webpage is http://www.minterkarate.com/maps/index.html The line in question is labeled "Line 82, Column 20" by the validator.

Please let me know what I should do or if there is any more information I should give.

Thanks

AdamGundry
10-28-2003, 02:35 AM
You have a greater problem than that, specifically that your page is not usable by the 13% of so of web users with Javascript disabled. You should use a server-side script (in a language such as PHP, Perl or ASP) to do this.

If you insist on using JS, however, you should be able to use a form like this:

<form name="menufrm" action="" onsubmit="return false">

Adam