Path - Site Root vs. Document Relative

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Path - Site Root vs. Document Relative

    I am using a javascript that will be implemented on various folder levels
    within my site. For the Javascript to work on all pages at all levels, I need
    to use siteroot relative paths rather than document relative.

    Dreamweaver does an excellent job of creating all of this code for me but when
    I am working with code myself, how do I express in the code that my paths are
    relative to the site root and not the specific document.

    Please help me quick. I'm trying to finish this up tonite. Thank you,

    Shawn

    voxmaris Guest

  2. Similar Questions and Discussions

    1. site root relative links
      Hi I am trying to allow users to use Contribute 3 to edit some navigation which appears on the right side of their pages. The problem is that...
    2. Making links relative to site root
      we just moved from 3.0 to 3.1 and are having this same problem now, which didn't seem to be there in 3.0. not only are we now ending up with ../../...
    3. Where do I set Relative to Document/to Root? FW? or DW?
      Exporting FW nav bars, need to set to relative to document, i cant find the setting anywhere. Do i have to do it for each one? starting to...
    4. document relative/site root relative linking
      It used to be that DW had a much, much better memory of what your last selection was, re: root v. document. MX now seems to get confused much more...
    5. Site relative or document relative links prob.
      Hi everyone, I have currently developed a new site within a sub directory of a site. I have used document relative links to test the site online...
  3. #2

    Default Re: Path - Site Root vs. Document Relative

    forward slash, and then the folder structure, and then the file.


    For an .htm page...
    /thefolder/thefile.htm

    or if it is deeper in folders...
    /folder1/folder2/thefile.htm


    --
    Regards,
    ...Trent Pastrana
    [url]www.fourlevel.com[/url]

    Dreamweaver Designer Tools
    iFrameSuite | MiniMenus | Scroller Packages | More...
    -----------------------------





    "voxmaris" <webforumsuser@macromedia.com> wrote in message
    news:dd8jsc$25l$1@forums.macromedia.com...
    >I am using a javascript that will be implemented on various folder levels
    > within my site. For the Javascript to work on all pages at all levels, I
    > need
    > to use siteroot relative paths rather than document relative.
    >
    > Dreamweaver does an excellent job of creating all of this code for me but
    > when
    > I am working with code myself, how do I express in the code that my paths
    > are
    > relative to the site root and not the specific document.
    >
    > Please help me quick. I'm trying to finish this up tonite. Thank you,
    >
    > Shawn
    >

    T.Pastrana - 4Level 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