Jump menu not valid XHTML?

message from Bruce Kratofil on 15 Jul 2004
I have a couple of working jump menus, made with Dreamweaver MX's
Insert, Form, Jump menu command

Later, going to the W3C's HTML validator and checking the page, I'm told

required attribute "action" not specified

and the code generated by DW is

<form name="form1" id="form1">
<select name="rtmenu" onchange="MM_jumpMenu('parent',this,0)">
<option value="rt/index.html" .................

Question -- is there a way to make these jump menus valid XHTML?

Should a action="post" be put in? Or should you do away with jump menus
when doing XHTML pages/
 
Kindler Chase replied to Bruce Kratofil on 15 Jul 2004
Add a method and action and you should be OK - the action will be ignored
when using the MM_jumpMenu, granted the user does not have JS disabled:

<form action="yourPage.htm" name="form1" id="form1" method="post">
......
</form>
 
Gary White replied to Kindler Chase on 15 Jul 2004
The problem with the above is that it will generate an error for the
non-JavaScript enabled browser because you cannot use the POST method to
post to a .html page. If you change it to GET, it still won't work, but
at least you won't get an ugly error page.

Gary
 
Kindler Chase replied to Gary White on 15 Jul 2004
Is this just for non-JS enabled browsers? When I do this in IE6 on win2k, no
errors are generated. Or are there specific browsers this doesn't work with?
 
Gary White replied to Kindler Chase on 15 Jul 2004
If you turn off JavaScript so that the page actually gets POSTed to the
.html file, it should generate a "Method Not Allowed" error. The error
will be a server error, so the browser shouldn't make any difference. If
JavaScript is enabled, then the form will never be POSTed, so the error
won't occur.

Actually, now that I think about it, since there is no submit button,
the form probably won't be posted anyway, so it may not be anything to
worry about.

Never mind ... I'll go sit in the corner. ;-)

Gary
 
Bruce Kratofil replied to Kindler Chase on 15 Jul 2004
Thanks --

I wasn't sure what would happen putting a method=post there -- now I'll
figure out what to do with the non Javascript people.

Kindler Chase wrote:
 

Archived message: Jump menu not valid XHTML? (Macromedia Dreamweaver)