- From: Sergey Shebanin <splash@rulogic.ru>
- Date: Wed, 28 Sep 2005 14:53:08 +0400
- To: www-forms@w3.org
- Message-ID: <433A7614.2010601@rulogic.ru>
Thanx, I understood how to do this in Mozilla/Firefox. It works. In IE (FormsPlayer) I can catch only standard event (defined in W3C Recommendation) with <script for="object-id" event="xforms-event" type="text/javascript"> But I still cann't catch any user defined events fired with <xforms:dispatch .../> Also when I call document.getElementById('some-xforms-trigger').fireEvent('DOMActivate') I see error message. Can anybody explain how to interact XForms and JavaScript in IE (FormsPlayer) Thanx. Allan Beaufour wrote: >>I need to messsage exchange between XForms and HTML. >>And also I need to enable scripting XForms. >>I.e. I need to execute JavaScript by XForms events and I need to >>dispatch XForms events from JavaScript. >> >> >XForms events are normal XML Events, so you can just do f.x >document.addEventListener("xforms-refresh", function(){ jsfunc(); }, false) >Sending is likewise done with createEvent() and dispatchEvent(). > >This works for Mozilla/Firefox. You might need to use <ev:listener/> for IE... >
Received on Wednesday, 28 September 2005 10:53:29 UTC