[Xsltforms-support] Reenviar: XForms trigger on svg elements
Brought to you by:
alain-couthures
From: Jorge s. <xu...@gm...> - 2019-09-23 14:29:13
|
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> <div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> <div name="quoted-content"> <div style="font-family: Verdana;font-size: 12.0px;"> <div> </div> <div> <div>Hi, </div> <div> </div> <div>I want to add a trigger to an svg on a form based on Xsltforms. For now I managed to launch the submissions with the following call from an onclick. </div> <div> </div> <div> <div>XsltForms_xmlevents.dispatch(document.getElementById("actual-trigger-id"),"DOMActivate")</div> <div> <p>This has two obvious disadvantages. First, it is not a proper XForms solution and is coupled to the framework. The second one is that at any time an update in the xsltforms may break the solution. </p> <p>Is there a "good way" to add a trigger to an svg element in XForms?</p> <p>Kind Regards, </p> <p>Jorge Sánchez </p> <p>@Alain thanks in advance, amazing work ;) </p> </div> </div> </div> </div> </div> </div> </div></div></body></html> |