Hi Martin,
For instance with:
<xf:trigger>
<xf:label>Produce error</xf:label>
<xf:action event="DOMActivate" type="javascript">
callingFunctionThatDoesntExist()
</xf:action>
</xf:trigger>
Click on the button, and in the dialog you'll see the following: "Exception in client-side code. Message: callingFunctionThatDoesntExist is not defined".
And of course, it could happen because of a bug in Orbeon Forms, where based on what the server tells us, we try to do a change to the DOM on the browser, but somehow fail to do so for some unforeseen reason.
Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet