RE: [Widex] Updated Widex framework draft

"Jin Yu" <jyu@openxup.org> Sat, 03 June 2006 01:20 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1FmKp0-0008ST-OK; Fri, 02 Jun 2006 21:20:58 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1FmKoz-0008SO-Dc for widex@ietf.org; Fri, 02 Jun 2006 21:20:57 -0400
Received: from smtp104.sbc.mail.mud.yahoo.com ([68.142.198.203]) by ietf-mx.ietf.org with smtp (Exim 4.43) id 1FmKow-0005cV-Vi for widex@ietf.org; Fri, 02 Jun 2006 21:20:57 -0400
Received: (qmail 22839 invoked from network); 3 Jun 2006 01:20:54 -0000
Received: from unknown (HELO 3150hw) (jinyu1@sbcglobal.net@64.186.173.202 with login) by smtp104.sbc.mail.mud.yahoo.com with SMTP; 3 Jun 2006 01:20:53 -0000
From: Jin Yu <jyu@openxup.org>
To: Vlad.Stirbu@nokia.com, widex@ietf.org
Subject: RE: [Widex] Updated Widex framework draft
Date: Fri, 02 Jun 2006 18:20:45 -0700
Organization: OpenXUP.org
Message-ID: <001d01c686ab$f18124a0$1e0aa8c0@martsbs.local>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
In-Reply-To: <1C1F3D15859526459B4DD0A7A9B2268B0223D7FB@trebe101.NOE.Nokia.com>
Thread-Index: AcaEpb8YEiThetIGRVumagg6M26dzgAY6yWw
X-Spam-Score: 0.0 (/)
X-Scan-Signature: f60d0f7806b0c40781eee6b9cd0b2135
Cc:
X-BeenThere: widex@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Working list for the WIDEX working group at IETF <widex.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/widex>, <mailto:widex-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/widex>
List-Post: <mailto:widex@ietf.org>
List-Help: <mailto:widex-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/widex>, <mailto:widex-request@ietf.org?subject=subscribe>
Errors-To: widex-bounces@ietf.org

Hi,

In the current draft, there are two ways to attach event listeners to a node in
the DOM tree: at programming level using DOM3's EventTarget interface, and at
document level using XML events and ad-hoc syntax.

By "programming level", I assume what it means is for the application code to
use the DOM3 EventTarget API in the virtual view / DOM at the server side (not
the real view / DOM at the renderer side); and then those API calls get
serialized into WO.Selector messages and delivered to the renderer.

DOM3 uses the term "programming level" because it doesn't have remote events in
mind. "Programming" means using script to attach listeners to nodes on the
client side. For us, I think what's important is WO.Selector messages, and how
the messages are generated is not a big concern. Of course, we could mention
that one possibility is for the server side toolkit to offer DOM3' EventTarget
API to operate on the virtual view.

So I would re-categorize the ways to attach event listeners to a DOM node -
inline (within UI DOM tree) or external (outside of UI DOM tree):

- inline listener specification

This includes ad-hoc syntax from various UI languages, e.g. HTML' onClick
attribute. In addition, one could use the global attributes from XML Events if
the hosting UI language supports them. In this category, WO.Update messages
should be used to maintain the listeners.

- external listener specification

This involves using WO.Selector messages to add / remove / update event
listeners in the renderer. The messages would carry the generic <listener>
element from XML Events. For example:

<addEventListener>
  <listener id="ls1" event="sul:mouse-click" observer="aCircle"/>
</addEventListener>

<removeEventListener>
  ...
</removeEventListener>

The "handler", "phase", and "propagate" attributes of the listener element may
not be relevant to network event delivery, but we can worry about that later in
the Message Formats draft.

The benefit of using external specification is that it's more flexible and
reusable (just like the CSS case).

Regards,

Jin
________________________________________
Jin Yu
OpenXUP.org

> From: Vlad.Stirbu@nokia.com [mailto:Vlad.Stirbu@nokia.com] 
> Sent: Wednesday, May 31, 2006 4:31 AM
> To: widex@ietf.org
> Subject: [Widex] Updated Widex framework draft
>
> Hi, 
> Updated version of the Widex framework draft available at 
> http://www.kolumbus.fi/vlad.stirbu/draft-stirbu-widex-framework-01.txt. 
> It will be available shortly also in the IETF drafts repository.
> 
> Vlad


_______________________________________________
Widex mailing list
Widex@ietf.org
https://www1.ietf.org/mailman/listinfo/widex