[Xsltforms-support] loading the XSLTforms applet (was: Re: obtaining XML from the user - possible?
Brought to you by:
alain-couthures
From: C. M. Sperberg-M. <cm...@bl...> - 2012-07-08 18:11:22
|
On Jul 7, 2012, at 8:06 PM, Andre Cusson wrote: > Hi C.M., > > I am not sure that this can help, but, thanks to Alain, for reading,since you get the file dialog anyway, you would not specify the file on submission, so I use: > > <xf:submission id="load"method="get"serialization="none"replace="instance"action="file:// <view-source:file:///>"> > <xf:message level="modeless"ev:event="xforms-submit-error">Submit error.</xf:message> > </xf:submission> > > > And the button is > > <xf:submit submission="load"> > <xf:label>Load</xf:label> > </xf:submit> Thank you; concrete examples are almost always helpful. When I try to use this code in a test form, however, I get messages saying "document.applets.xsltforms.readFile is not a function" (Firefox, Opera) or "Object #<HTMLAppletElement> has no method 'readFile'" (Chrome). Perhaps this means I need to do something on my server to ensure that the applet is loaded correctly? Or perhaps not: I get the same messages when I press the Load button in page http://www.hyperbase.com/library/hyperform/stratml/asset/xml/4psc.xml which I assume is correctly configured. Is there anything needed to ensure the applet loads correctly other than (1) making sure xsltforms.jar is in the same directory on the server as xsltforms.xsl and xsltforms.js? and (2) making sure the user has not configured the browser to refuse to load Java applets? -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |