Loading ...

Deleting a xps dcoument which is opened in a internet explorer

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  client side web development   » Deleting a xps dcoument which is opened in a internet explorer

Deleting a xps dcoument which is opened in a internet explorer

Posts under the topic: Deleting a xps dcoument which is opened in a internet explorer

Posted: 7/28/2010

Lurker 5  points  Lurker
  • Joined on: 7/23/2010
  • Posts: 1

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....


tags javascript

Posted: 7/28/2010

Professional 8495  points  Professional
  • Joined on: 5/3/2010
  • Posts: 389
  Answered

Hi @jayaprakash,

Can you try closing the document and then automatically delete() it and after that removing the node?


Page 1 of 1 (2 items)