W3C home > Mailing lists > Public > www-style@w3.org > January 2003

Re: Another view (sorry) on XBL and behaviours

From: Daniel Glazman <glazman@netscape.com>
Date: Tue, 07 Jan 2003 15:26:53 +0100
Message-ID: <3E1AE3AD.9080302@netscape.com>
To: Andrew Clover <and@doxdesk.com>
CC: www-style@w3.org, apparao@netscape.com

Andrew Clover wrote:

>  function myclick(e) {
>    alert('You clicked on a <div class="foo">!');
>  }
>
>  function binder(e) {
>    if (e.type=='bind')
>      e.target.addEventListener('click', myclick, false);
>    if (e.type=='unbind')
>      e.target.removeEventListener('click', myclick);
>  }
>
>  document.addSelectorListener('div.foo', binder);
>

That's just another way of saying

div. foo {
  onclick: "myclick";
}

isn't it ?

And that's exactly Action Sheets...

</Daniel>
Received on Tuesday, 7 January 2003 09:26:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:19 GMT