How to get the path of an object .htm file?

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default How to get the path of an object .htm file?

    Hi, I'm creating a custom Objects group, and need to keep some user-defined
    settings in a .txt file. I want to keep this file in the same folder where the
    ..htm files are, ... \Configuration\objects\myObject\ but can't get the path
    for this folder. Depending on the OS & configuration, DW may install my
    files in a different folder on each system - I want to detect where this folder
    is. How to do this? dreamweaver.getConfigurationPath() returns the common
    folder under \Program Files\ ... - this is not where my files are installed. I
    would use this folder to store my .txt file, but on 2000/XP systems restricted
    users usually do not have write access for \Program Files\ and anything below.
    document.location, this.location etc. return 'undefined' Please help! Thanks

    harpo_ Guest

  2. Similar Questions and Discussions

    1. Object On A Path
      I am trying to create this effect, particularly the arrows in the center. ...
    2. relative path to local shared object
      Is it possible to force Flash to create and access a local shared object in the same directory as the Flash movie that will be using it instead of...
    3. attach some object to a path like a text
      Please help immediatly, how can ý attach some object to a path like a text. ex. I draw apath and it is closed, maybe square. and ý want a lot of...
    4. Illustrator10 Grid (object/path) Converted to Selection in Photoshop07
      Have a look at Greg Paret's excellent "Grids" plugin for Photoshop <http://www.users.cloud9.net/~gparet/photoshop>. Problem solved. And, Just...
    5. Virtual Path from a class Object
      An object resides in memory. As such, there is no path, virtual or otherwise to it. -- HTH, Kevin Spencer Microsoft MVP ..Net Developer...
  3. #2

    Default Re: How to get the path of an object .htm file?

    harpo_ wrote:
    > is. How to do this? dreamweaver.getConfigurationPath() returns the common
    > folder under \Program Files\ ... - this is not where my files are installed.
    You are correct that that mehod will give you a program files path,
    however, because DW has to work with multiple configuration folder
    locations, its function also need to be multi config folder aware. That
    is, if you use:
    var path = dw.getConfigurationPath() + '/Objects/myObject/settings.txt';
    var mySettings = DWfile.read(path);

    it will get you to the right info.


    --
    Danilo Celic
    | Extending Knowledge, Daily [url]http://CommunityMX.com/[/url]
    danilocelic *TMM* Guest

  4. #3

    Default Re: How to get the path of an object .htm file?

    [url]http://www.macromedia.com/support/programs/self/dreamweaver.html[/url]

    simply
    zhibo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139