2 Replies Latest reply on Sep 11, 2008 11:06 AM by Bernd Alheit

    OPEN A FILE

      Hi, I need help with this?

      I need to create a javascript that open a file with different root.

      When I created a button with the button tool I give this action to the button:

      Mouse Up
      Open File
      File: M:\ALL\Doc\Doc\CMOH\X.pdf

      and with this action it returns to the file without caring the letter of the root in this case "M".

      I tried with this run javascript,

      app.openDoc('/M/ALL/Doc/Doc/CMOH/X.pdf'); this.closeDoc();

      but only works when the letter of the rood is the same if is different it dosen't work, and I try with this but neither it work.

      app.openDoc('../../CMOH/X.pdf');

      Could you help me?