Forums

This topic is locked

DMX2004 doesn't do proper XHTML form attributes

Posted 20 years ago
1
has voted
20 years ago Chris Charlton posted:
I don't know why I never noticed before, but DMX2004 (and DMX) don't do entirely proper XHTML <i>attributes</i> for "checked" and "selected" in dropdowns (menu/lists) and checkboxes nor radiobuttons. Infact, the DW code doesn't even add a space before "SELECTED" or "CHECKED." Example of DW's code:
<pre id=code><font face=courier size=2 id=code>&lt;select name="someSelectMenu"&gt;
&lt;option value="1"SELECTED&gt;some label&lt;/option&gt;
&lt;/select&gt;</font id=code></pre id=code>

The proper XHTML way is all attributes <u>must</u> be a name-value pair and enclosed in quotes and lowercase! Example proper XHTML way...
<pre id=code><font face=courier size=2 id=code>&lt;select name="someSelectMenu"&gt;
&lt;option value="1" selected="selected"&gt;some label&lt;/option&gt;
&lt;/select&gt;</font id=code></pre id=code>

And of course, checked would be...
<pre id=code><font face=courier size=2 id=code>... checked="checked" ...</font id=code></pre id=code>



So everyone, make sure you tweak the code so your page(s) are valid XHTML. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>

Replies

Replied 20 years ago
20 years ago Dave Thomas replied:
nice tip

regards

Dave Thomas
<b>DMX Zone Manager</b>
Replied 20 years ago
20 years ago Chris Charlton replied:
Maybe I was dreaming, but I can't remember. Shortly after posting this tip/issue, I read an ad or a link that was a DW extension for valid dropdown boxes, I assume it was this issue I posted.

P.S.&gt; I'll make an FAQ about this.

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>

Reply to this topic