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 6 of 6
  1. #1
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,835
    Thanks
    21
    Thanked 157 Times in 148 Posts

    Make Firefox see an image w/local address?

    How come I can't get an image to load if I do something like this is Firefox:
    PHP Code:
    <img src='C:\Documents and Settings\Name\Desktop\Media Moguls site\aplus2.jpg'
    How do I have to code something to make Firefox recognize an image with a local address?

    I don;t have any problems in IE....

    Thanks.


    Edit: Is it because of all the spaces in the file path and name?
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ …Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

  • #2
    Regular Coder
    Join Date
    May 2004
    Location
    Berkeley, California Age: 15
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yea the spaces in the file names is a possibility..

    If I'm not mistaken you shouldn't be using backslashes for the path, instead use forward slashes like everything else.. ("/" instead of "\")

    Not sure though, HTH
    Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
    The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
    Pretty buttons does not a great website make.

  • #3
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    You could always try "%20" instead of each space.

    It's usually easier for me, when I need to test locally, to open the file through Firefox and copy/paste the location just to make sure the filename is the correct path.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    this should work
    Code:
    <img src="file:///C|/Documents%20and%20Settings/Name/Desktop/Media%20Moguls%20site/aplus2.jpg">

  • #5
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,835
    Thanks
    21
    Thanked 157 Times in 148 Posts
    I'll give it a shot guys and see if your ideas work...Thanks!
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ …Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

  • #6
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello, I get this bug to, and this is how to resolve it:

    In Firefox, type in the location bar:

    about:config

    Type in the text field security.checkloaduri and double click to set the value to false.

    Restart Firefox and load your page. If you included your pictures with file:///C:/folder/pic.jpg, it will work


  •  

    Posting Permissions

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