Results 1 to 6 of 6

Thread: Display Issue with Javasript Tree Menu

  1. #1
    Join Date
    Jul 2011
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Display Issue with Javasript Tree Menu

    Im using a javascript tree menu on a site, with collapsible
    and expandable links, it works perfectly offline but online,
    the icons that represent the + sign doesn display and an icon
    named folder.gif displays something else(a real folder)-ive
    checked the path to the images and everything is ok, ive also tried
    renaming the icons.

    Dont know the cause of this problem and the solution.

    The site is logoproductsnig.com

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    logoproductsnig.com/icons/plus.gif is a 404 Not Found
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2011
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks. but i checked again and the icon is there, the path is correct

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Not Found

    The requested URL /icons/plus.gif was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.28 PHP/5.2.12 Server at logoproductsnig.com Port 80
    Addresses:

    Code:
    http://logoproductsnig.com/icons/plus.gif
    and:

    Code:
    http://www.logoproductsnig.com/icons/plus.gif
    I don't know where you're looking. But that's where the code points to, and it's not there.

    There's a chance it is there but that the file has the wrong permissions set.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2011
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks, or may be it's the absence/presence of the "www".

    What kind of permission do i set for the file?

    Thanks again.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It was 404 Not Found regardless of www or not www.

    The permissions might already be set correctly, it could be some other problem. But if it is the permissions, to make a long story short, I believe for your image file you want to set its permissions at:

    644

    or as it's also known as:

    rw-r--r--

    More detail -

    Usually your ftp or other upload program takes care of permissions automatically. It's been so long since I've had to mess with them manually, frankly I forget. But once a file gets the wrong ones set, it can be tricky to change them without using chmod (available in most ftp and other upload programs, virtual terminals, and the unix command line). Just overwriting, or renaming, or deleting and replacing the file has no effect. 777 is the universal accessibility permission, but not recommended. 644 is I think what's recommended for web files (images, html, css, js, etc.). 755 for folders other than the root folder which is supposed to be 711. I got these values from:

    http://www.wpi.edu/academics/CCC/Hel.../webchmod.html

    And from what I recall, they are correct. But some hosts may require slightly different ones. You can always ask your host for help. But you can also usually look to see what the working files are set at and use their permissions/attributes as a guide. These also have equivalents in drwx (directory, read, write, execute) attributes for 'owner', 'group', and 'world'. A chart on page:

    http://support.ipswitch.com/kb/WS-19990114-EM01.htm

    shows the equivalences.
    Last edited by jscheuer1; 11-06-2011 at 12:50 AM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •