Hello Robert,
 
The URI for the event namespace starts with "http://" not "https://".
 
Please find attached a working test case
 
--Alain 
Le 28/11/2022 17:23 CET, Robert Kirkpatrick <[email protected]> a écrit :
 
 
Hello list,
 
The basic test here-attached fails to trap the event and run the JScript.
Using v1.6 via chrome.
TIA for any help.
Robert.
_______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
<?xml-stylesheet href="xsl/xsltforms.xsl" type="text/xsl"?>
<html xmlns:ht="http://www.w3.org/1999/xhtml"; xmlns:xf="http://www.w3.org/2002/xforms"; xmlns:ev="http://www.w3.org/2001/xml-events";>
  <ht:head>
    <xf:model>
      <xf:setfocus control="trigid" ev:event="xforms-ready"/>
    </xf:model>
    <ht:script type="text/javascript">function test() { alert('Focus in') }</ht:script>
  </ht:head>
  <body xmlns="http://www.w3.org/1999/xhtml";>
    <div>
      <xf:trigger id="trigid">
        <xf:label>test</xf:label>
        <xf:action ev:event="DOMFocusIn">
          <xf:load resource="javascript:test()" />
        </xf:action>
      </xf:trigger>
    </div>
  </body>
</html>
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to