Posted: 7/28/2010
hi all,
I have developed an tree view using xml and xsl . Now based on the node selection the document attached to the node will be displayed on the right pane and when I am deleting that particular node using javascript I got an "error like permission denied " as the xps document is opened on the right pane .
Here I want just to delete that node along with attached document .
Actually My context is like using only xml, xslt and javascript with html page.
code:
axObject = new ActiveXObject("Scripting.FileSystemObject"); file = axObject.GetFile(filename); file.Delete();--- to delete the file on the local system
c.parentNode.removeChild(c);--- to delete node on the xml file
please give me an idea on how I could delete it....
Hi @jayaprakash,
Can you try closing the document and then automatically delete() it and after that removing the node?