Including External Files

Reply

Join Date: Sep 2008
Posts: 46
Reputation: Zurompeta is an unknown quantity at this point 
Solved Threads: 0
Zurompeta Zurompeta is offline Offline
Light Poster

Including External Files

 
0
  #1
Jun 24th, 2009
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:
  1. /{root}
  2. [application]
  3. [css]
  4. [FF]
  5. [images]
  6. [install]
  7. [js]
  8. [validation]
  9.  
  10. 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]

Example #1
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?

Example #2
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?
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 252
Reputation: samarudge is an unknown quantity at this point 
Solved Threads: 20
samarudge samarudge is offline Offline
Posting Whiz in Training

Re: Including External Files

 
0
  #2
Jun 24th, 2009
No because ../ is up ONE DIR and ./ is same DIR
My Blog, Life and everything that matters to me - SamRudge.co.uk

2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC