Container for inline JavaScript content. It does not support nesting of handlers.
Attribute | Description | Type | Default | Options | Use |
---|---|---|---|---|---|
id | The identifier that a listener element must reference in order to bind to this handler | xs:ID | required | ||
type | Content type of the handler. For this release the type must be 'text/javascript'. | xs:string | required |
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
xmlns:mcs="http://www.volantis.com/xmlns/2006/01/xdime/mcs"
xmlns:event="http://www.w3.org/2001/xml-events">
<head>
<title>Welcome to XDIME Events</title>
</head>
<body>
<mcs:handler id="handler" type="text/javascript">alert('hello')</mcs:handler>
<event:listener observer="p" handler="#handler" event="click"/>
<p id="p">Click me!</p>
</body>
</html>