site.getLocalPathToFiles() even when no files are open?

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

  1. #1

    Default site.getLocalPathToFiles() even when no files are open?

    Hi all,

    i want to use the site.getLocalPathToFiles(); function but the only problem
    is one of the sites files needs to be open for it to work, what i want to do
    is have the site open in the site-panel on the left but not need any files
    to be open is this even possible?
    for example say the user had just created a site using the site definition
    diaglog box but hasnt added any files yet, i want to retreive the local
    path the the site, do i really need to have a file open for this to work?

    thanks in advance,

    Byron

    [url]http://byron-adams.com[/url]


    Byron Adams Guest

  2. Similar Questions and Discussions

    1. pdf files uploaded onto a web site won't open correctly.
      I'm currently building a web site for a construction company. There are some forms/documents that they want clients to be able to download. These...
    2. site.getLocalPathToFiles() doesnt update when site.setCurrentSite() is called
      hi, i've been having issues with site.getLocalPathToFiles() getting the wrong sites path can anyone else confirm this? this is what im trying to...
    3. #25886 [Bgs]: failed to open stream: Too many open files in Unknown on line 0
      ID: 25886 User updated by: padair at pntsi dot ca Reported By: padair at pntsi dot ca Status: Bogus Bug Type: ...
    4. #25886 [Opn->Bgs]: failed to open stream: Too many open files in Unknown on line 0
      ID: 25886 Updated by: sniper@php.net Reported By: padair at pntsi dot ca -Status: Open +Status: ...
    5. #25886 [NEW]: failed to open stream: Too many open files in Unknown on line 0
      From: padair at pntsi dot ca Operating system: Solaris 8 PHP version: 4.3.3 PHP Bug Type: *General Issues Bug description: ...
  3. #2

    Default Re: site.getLocalPathToFiles() even when no files are open?

    > i want to use the site.getLocalPathToFiles(); function but the only problem
    > is one of the sites files needs to be open for it to work, what i want to do
    > is have the site open in the site-panel on the left but not need any files to
    > be open is this even possible?
    Just tried in a command.
    No need to have a file open.

    function initializeUI() {
    alert(site.getLocalPathToFiles());
    }


    Phil Guest

  4. #3

    Default Re: site.getLocalPathToFiles() even when no files are open?

    Well would there be any reason that its not working here? because mine only
    works if i have one of the files in the site open...
    maybe im putting it in the wrong place or somthing sorry im new dw extension
    dev heres my command (simplfied) :

    <!-- MENU-LOCATION=NONE -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
    />
    <title>my extension</title>

    <script>
    function clickIt() {
    alert();
    }
    </script>
    </head>
    <body>
    <form >
    <input type="button" value="<>" onClick="clickIt();"/>
    </form>
    </body>
    </html>

    Thanks for taking the time to help me btw =)


    > Just tried in a command.
    > No need to have a file open.
    >
    > function initializeUI() {
    > alert(site.getLocalPathToFiles());
    > }
    >

    Byron Adams Guest

  5. #4

    Default Re: site.getLocalPathToFiles() even when no files are open?

    Sorry, in the prior example i left out the call to the function
    (site.getLocalPathToFiles()) but regardless it doesnt work.

    just wanted to make sure you didnt think that was why it wasnt working



    Byron Adams Guest

  6. #5

    Default Re: site.getLocalPathToFiles() even when no files are open?

    > Sorry, in the prior example i left out the call to the function
    > (site.getLocalPathToFiles()) but regardless it doesnt work.
    >
    > just wanted to make sure you didnt think that was why it wasnt working
    Tried your code, without <!-- MENU-LOCATION=NONE -->

    It works perfectly here.

    If you have 'menu-location=none', I suppose you call your command from an other
    place.
    Maybe the problem is in this other place.


    Phil Guest

  7. #6

    Default Re: site.getLocalPathToFiles() even when no files are open?

    Ok thanks,
    that helps because now i know that the issue is somthing else in my
    extension (i tried it without 'menu-location=none') still didnt work...

    is there any issue that anyones aware of that could be causing this? because
    it does actually work if i have file open... this is quiet weird.... its got
    me stumped but the thing that worries me mostly is that im working to a
    deadline so this is quiet an urgent issue

    maybe some guru would be interested in having a look at my code and pointing
    out what i need to fix?

    any help is much appreciated, thanks for your help so far Phil




    Byron Adams Guest

  8. #7

    Default Re: site.getLocalPathToFiles() even when no files are open?

    Ok, i've discovered somthing else...

    It does actually work if no files are open but if i have a file open that
    isnt part of the current site (some random html file)
    then it just returns nothing, is there a way i can close all currently open
    documents?

    Thanks in advance

    Byron


    Byron Adams 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