[Xsltforms-support] Can't put file to current directory
Brought to you by:
alain-couthures
From: Chester W. <ch...@de...> - 2011-03-31 05:47:32
|
Hello, I'm trying to learn xforms and have been going through some of the examples in the wiki book. The simple submit example at http://en.wikibooks.org/wiki/XForms/Submit that puts a file to the current directory does not work on either Firefox or Safari. I'm using the example verbatim (adding the xsltforms invocation at the top of the file of course) and I've tried changing the form of the filename, using action="file:./myData.xml", for example. I've also tried using a file:///absolute_pathname and that makes it worse. This example works fine with the Firefox xforms extension. I've tried the beta3 release of xsltforms, also beta3RC, and the latest build, 496. Here's the debugging output from firefox (the output on Safari is slightly less informative) 0 -> Dispatching event xforms-submit on <SPAN class="xforms-submission" id="save"/> 0 -> Dispatching event xforms-submit-serialize on <SPAN class="xforms-submission" id="save"/> 1 -> Submit put - application/xml - myData.xml - true 0 -> Access to restricted URI denied ( Why would the current directory be restricted???) I also get a popup (from Firebug perhaps?) that says: XSLTForms Exception -------------------------- Error initializing : ([object Object],[object XMLHttpRequest])@file:///Users/chet/src/xforms/reminv/build/xsltforms.js:2932 ([object Object],[object XMLHttpRequest],[object DOMException])@file:///Users/chet/src/xforms/reminv/build/xsltforms.js:2969 ()@file:///Users/chet/src/xforms/reminv/build/xsltforms.js:2916 ([object Event])@file:///Users/chet/src/xforms/reminv/build/xsltforms.js:7407 ([object HTMLSpanElement],"xforms-submit")@file:///Users/chet/src/xforms/reminv/build/xsltforms.js:7305 ([object HTMLSpanElement],[object Element],[object Event])@file:///Users/chet/src/xforms/reminv/build/xsltforms.js:3300 ([object HTMLSpanElement],[object Element],[object Event])@file:///Users/chet/src/xforms/reminv/build/xsltforms.js:3161 ([object HTMLSpanElement],[object Element],[object Event])@file:///Users/chet/src/xforms/reminv/build/xsltforms.js:3146 (-2)@file:///Users/chet/src/xforms/reminv/build/xsltforms.js:1319 TypeError req.getAllResponseHeaders() is null Thanks for your help... Chester Wood |