[Xsltforms-support] Best way of using an Instance from Javascript
Brought to you by:
alain-couthures
From: William V. <wve...@vi...> - 2013-09-19 23:33:54
|
Hi XForms geeks! I'm need to access an XForms instance from my Javascript code. I see there are several approaches mentioned on this mailing list before: - Submission to a Javascript function - xf:load with javascript:function on the resource attribute - onclick event on a plain HTML button For the last two, this code used to work for getting an instance as a Javascript Object: var model = window.document.getElementById("modelid"); var doc = model.getInstanceDocument("instanceid") On the last updates of XSLTForms, this code doesn't work anymore. I think the right way of doing it is with a submission to javascript:function() but there aren't examples available. Could somebody share an example or links to the code with the right way of doing it? Thanks, William David Velásquez Director de I+D Visión Tecnológica S.A.S. Tel: (4) 444 7292 Cel: 313 743 54 11 wve...@vi... Follow me: @williamda |