File Location on CD

Discussion in 'Mac Programming' started by brekpaen, Dec 11, 2007.

  1. brekpaen macrumors newbie

    Joined:
    Dec 11, 2007
    #1
    I hope this is the proper location for this question please redirect me if not.


    I am trying to generate a CD-Rom from a PC and have it work on a MAC. The CD is rather simple just one HTML file with about 20 images and links to pages displaying the images. I want it to run off of the CD-ROM.
    It works fine on a PC but on a MAC it will only load the page and frames and not any of the images but when I drag all of the filesto the desktop it works just fine. I have all the images placed in a subfolder ("images") so I call them via images/file.jpg in the HTML.
    Why does it work on the Desktop but not when its on the CD? Any help would be greatly appreciated. Thanks.
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    The most common cause of issues like these is not using 100% relative paths. By relative path I mean a path that doesn't start with a protocol, but rather one that is relative to the current directory. Examples:

    Absolute path (Mac OS):
    file://Volumes/Disc 1/images/file.jpg

    Absolute path (Windows):
    file://F:\images/file.jpg

    Relative path:
    images/file.jpg

    Relative path to a file in a directory above the current one:
    ../directory/file.ext
     
  3. brekpaen thread starter macrumors newbie

    Joined:
    Dec 11, 2007
    #3
    File Location on CD

    My code is just lines like these for 20 different images- and one centered image all have just this relative code.

    <a href="images/ravel.html"><img src="images/ravel.jpg">

    I just have one HTML file sitting next to a folder titled "images" with all the images and other html files. None of the images load on the CD but do when placed on desktop. I don't have access to a MAC so I cant figure out what path it thinks its looking for when they are on the CD.

    What would change when files are dragged to the desktop?
     
  4. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #4
    That is very, very strange. In theory, nothing should change when the files in question are dragged to the Desktop - if they don't work on the CD they shouldn't work on the Desktop either. I have no idea what the problem is. :confused:
     
  5. brekpaen thread starter macrumors newbie

    Joined:
    Dec 11, 2007
    #5
    well thats discouraging:(. Thanks for trying, any ideas on where I should go with this question and who might know?
     
  6. Eraserhead macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #6
    If you can get hold of a copy of Toast for Mac, it can probably handle this automatically, with a Mac+PC CD...
     
  7. techgeek macrumors member

    Joined:
    Jun 11, 2004
    Location:
    UK
    #7
    I'll bet it's something to do with case sensitivity in the path/filename on the CD that is being ignored on the HDD.
    Maybe windows is ignoring the case while the Mac is not.
     

Share This Page