Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-20-2003, 07:36 AM #1
- Join Date
- Aug 2003
- Sydney Australia
- Thanked 0 Times in 0 Posts
XML DOM save method - "permission denied"
I've created a prototype which utilises XML files on the client. The problem is that the client needs to be able to work in a disconnected environment, thereby saving the input on the client.
The conversion of XML files is occurring in Internet Explorer, which I've read (and experienced!) that it will not allow you to use the XMLDOM.save method, since this is a violation of the security rights.
Everything I've read says that the .hta application will totally bypass the security zones, but I still keep getting a "permission denied" error. Why does this happen, when the parent can successfully execute the same save method? Is there something I've missed in the coding?
The following is the code in my parent document:
var xmlDOM = new ActiveXObject('Microsoft.XMLDOM')
xmlDOM.resolveExternals = true;
xmlDOM.preserveWhiteSpace = true;
xmlDOM.validateOnParse = false;
xmlDOM.async = false;
var Elem, Text
Elem = xmlDOM.documentElement
Text = Elem.firstChild
Text.replaceData(0, 6, '211231')
* This save works perfectly - the one in child.xml doesn't*
<td><input type="button" name="tick" value="Continue..." onclick="save_outlet44()" > </td>
src ="child.xml" APPLICATION="yes" TRUSTED="yes">
*This converts using XSLT - translates ok, but scripts within fail!*