This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Mozilla XML > October 2005 > XForms and XML Events - Anyone tried it?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author XForms and XML Events - Anyone tried it?
Aurelian

2005-10-14, 6:46 pm

Here are two examples from Steven Pemberton's XML Events for HTML
Authors. (http://www.w3.org/MarkUp/2004/xmlev...uthors#listener)

Version 1:
<script ev:observer="button" ev:event="DOMActivate" type="text/javascript">
validate();
</script>

Version 2:
<ev:listener observer="button" handler="#validator" event="DOMActivate"/>
....
<script id="validator" type="text/javascript">
validate();
</script>

This syntax occurs in almost all XML Events materials I've read so far.

Unfortunately all Mozilla versions I've tried so far (including
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051013
Firefox/1.6a1 built yesterday) seem oblivious to the XML event notation.
It seems to ignore the event attributes and executes the script when the
page is loaded (as opposed to firing the handler when the event occurs).

Any clues?

Best Regards,
Aurelian Penciu
Martin Honnen

2005-10-15, 6:24 pm



Aurelian wrote:

> Here are two examples from Steven Pemberton's XML Events for HTML
> Authors.
> (http://www.w3.org/MarkUp/2004/xmlev...uthors#listener)


Well that clearly says

"Note that there is no markup language yet that allows you to write
exactly this: these examples just show what the equivalent markup would
be, in order to explain the concepts."

and then at the end

"As mentioned above, presently there is no version of XHTML that
supports XML Events with scripting; XHTML2 is in preparation. XForms
uses XML Events (though with its own <action> element rather than
<script> );"

so I don't think any XForms support means the XHTML 1.0 or 1.1 <script>
element necessarily understands the attributes in the XML events namespace.


--

Martin Honnen
http://JavaScript.FAQTs.com/
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews