Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Mar 2011
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Images not displaying in Google Chrome

    Hi All,

    I have an html page for displaying images, but one of image in that page is not displaying in google chrome but all other browsers like firefox,opera is displaying the images correctly.
    The code is like <img src="image/angels/Alena\'s Angels Flyer_t.jpg"/>, i think that may be due to escaping(\) ( we can not change the image name ) , but the image issues is only in chrome . If anyone knows the solution please help me Thanks in advance...

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,855
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    "image/angels/Alena\'s Angels Flyer_t.jpg"
    You don't need that backslash there.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    Mar 2011
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi abduraooft,

    Thank you for the quick reply, but this code is working correctly in firefox and opera. We can not remove the backslash '\' in that image name because that name is created dynamically. Is there any other way to fix the issue ?

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,855
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    because that name is created dynamically.
    You might need to remove the slashes from the image name using functions like stripslashes()
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    New Coder
    Join Date
    Mar 2012
    Location
    Tulsa, OK
    Posts
    31
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by shanil View Post
    Hi abduraooft,

    Thank you for the quick reply, but this code is working correctly in firefox and opera. We can not remove the backslash '\' in that image name because that name is created dynamically. Is there any other way to fix the issue ?
    To ensure cross browser compatibility, I would remove the apostrophe. It will cause more of a headache than it is worth. Although you said you can't change it... try your best if you can :-\

  • #6
    New Coder
    Join Date
    Mar 2011
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    You might need to remove the slashes from the image name using functions like stripslashes()
    Ok.. Thank you i will try to do something like that..

  • #7
    New Coder
    Join Date
    Mar 2011
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by telekovar View Post
    To ensure cross browser compatibility, I would remove the apostrophe. It will cause more of a headache than it is worth. Although you said you can't change it... try your best if you can :-\
    Hi telekovar,

    Thanks for the reply , i can not change the apostrophe because it is the name of the image that we upload

  • #8
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    change the name of the image and upload the version without the apostrophe, then link to that.

  • #9
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    832
    Thanks
    10
    Thanked 79 Times in 77 Posts
    Folders and file names should not have whitespace. You've used a compound name for image and some browsers will not put the space entity and continue to load image. They will just stop at the first space in the path.

    Also, if the delimiter is actually put in the HTML file's image tag, problems will arise.
    ☠ ☠RON☠ ☠


  •  

    Tags for this Thread

    Posting Permissions

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