Hi there.

I'm having a small issue with including various files into some of my main files. This issue started when I decided to organize my directory structure.

My old structure:

/{root}
    [application]
        [css]
        [FF]
        [images]
        [install]
        [js]
        [validation]

So in this structure, FF (Firefox) is where the main application files are. So if I wanted to access "common.css" in the [css] folder, the source URL would be "../css/common.css"

My new structure (changes highlighted in red):

/{root}
    [application]
        [FF]
            [css]
            [images]
            [install]
        [js]
        [validation]

[B][U]Example #1[/U][/B]
This is where things get weird. Say I want to access the same file (common.css) from FF. The url would now be "./css/common.css" right?

[B][U]Example #2[/U][/B]
Also, say I want to access "tabClick.js" in the [js] directory from the [install] directory. The url would then be "../../js/tabClick.js" correct?

Examples 1 & 2 are not working for me. Am I doing anything wrong with the URLs?

No because ../ is up ONE DIR and ./ is same DIR

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.