W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2005

[whatwg] Menus, fallback, and backwards compatibility: ideas wanted

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 14 Dec 2005 22:11:55 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0512142146350.7669@dhalsim.dreamhost.com>
On Wed, 14 Dec 2005, Ian Hickson wrote:
>    <menu type="commands">
>     <select>
>      <option/>
>      <option/>
>      <option/>
>     </select>
>     <input type="submit">
>    </menu>

How about:

   <form action="redirect.cgi">
    <menu type="commands">
     <menu label="Select site...">
      <select name="goto"
              onchange="if (this.options[this.selectedIndex].value)
                          location = this.options[this.selectedIndex].value">
       <option value="" selected="selected"> Select site: </option>
       <option value="http://www.apple.com/"> Apple </option>
       <option value="http://www.mozilla.org/"> Mozilla </option>
       <option value="http://www.opera.com/"> Opera </option>
      <span><input type="submit" value="Go"></span>

The outer menu makes the toolbar, the inner menu is a drop-down button on 
that toolbar. (Well, semantically it's just saying that there's a set of 
commands, consisting of a nested set of commands, which allows things like 
the Ribbon effect for expanding and/or contracting the UI on the fly.)

The <span></span> hides the <input> from the <menu>. The value="" hides 
that <option> from the menu.

Is this too ugly?

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 14 December 2005 14:11:55 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:44 UTC