HighDots Forums  

Jump menu not valid XHTML?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Jump menu not valid XHTML? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruce Kratofil
 
Posts: n/a

Default Jump menu not valid XHTML? - 07-15-2004 , 02:05 PM






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/

Reply With Quote
  #2  
Old   
Kindler Chase
 
Posts: n/a

Default Re: Jump menu not valid XHTML? - 07-15-2004 , 02:47 PM






Bruce Kratofil wrote:
Quote:
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/
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>


--
kindler chase
http://www.ncubed.com
Home of SuperInvoice: The Online Invoicing Application.
Organize your billing process and impress your clients.

news://news.ncubed.com/support
n3 Support Group




Reply With Quote
  #3  
Old   
Bruce Kratofil
 
Posts: n/a

Default Re: Jump menu not valid XHTML? - 07-15-2004 , 02:54 PM



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:
Quote:
Bruce Kratofil wrote:

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/


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



Reply With Quote
  #4  
Old   
Gary White
 
Posts: n/a

Default Re: Jump menu not valid XHTML? - 07-15-2004 , 03:15 PM



Kindler Chase wrote:

Quote:
form action="yourPage.htm" name="form1" id="form1" method="post"

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


Reply With Quote
  #5  
Old   
Kindler Chase
 
Posts: n/a

Default Re: Jump menu not valid XHTML? - 07-15-2004 , 03:39 PM



Gary White wrote:
Quote:
Kindler Chase wrote:

form action="yourPage.htm" name="form1" id="form1" method="post"


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
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?

--
kindler chase
http://www.ncubed.com
Home of SuperInvoice: The Online Invoicing Application.
Organize your billing process and impress your clients.

news://news.ncubed.com/support
n3 Support Group




Reply With Quote
  #6  
Old   
Mick White
 
Posts: n/a

Default Re: Jump menu not valid XHTML? - 07-15-2004 , 04:57 PM



<form name="form1" id="form1" action="">

Mick

Bruce Kratofil wrote:

Quote:
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/

Reply With Quote
  #7  
Old   
Gary White
 
Posts: n/a

Default Re: Jump menu not valid XHTML? - 07-15-2004 , 05:06 PM



Kindler Chase wrote:

Quote:
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?

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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.