Notices
Results 1 to 9 of 9

Thread: Bug in code that displays an image using a URL

  1. #1 Bug in code that displays an image using a URL 
    Forum Masters Degree
    Join Date
    Jan 2011
    Posts
    738
    There's a bug in the code that displays an image using a URL. If the *.JPG file name has an underscore (_) then the code sees that as a blank and posts a popup stating "invalid filename". Of course, the easy way around this is to rename the file but this isn't allowed on the photo server FLICKR.


    Reply With Quote  
     

  2.  
     

  3. #2  
    Forum Cosmic Wizard icewendigo's Avatar
    Join Date
    Jun 2006
    Posts
    2,148
    Just to see if I understand your (question? comment?); do you want to create a link to this image and find that the link you create isnt working when you use _ as the file name was created ?


    Reply With Quote  
     

  4. #3  
    Forum Masters Degree
    Join Date
    Jan 2011
    Posts
    738
    If I want to post an image in my thread, there is a little image icon in the toolbar. I click on that and it has an entry field where I can enter a URL. if the URL is something like "http://staticflickr.com/7463/12887491775_db2859de41_b.jpg" then I get the error popup msg, because of the underscores (_) in the filename. The code doesn't let me put the image in my thread so I am blocked long before an attempt is made to actually access the URL.
    Reply With Quote  
     

  5. #4  
    Forum Cosmic Wizard icewendigo's Avatar
    Join Date
    Jun 2006
    Posts
    2,148
    I dont know about this site nor about the other one, but out of curiosity what happens if you substitute the _ with %5F
    ?
    that is % 5 F but without spaces between (in case it appears as "_" )

    as in

    http://staticflickr.com/7463/12887491775%5Fdb2859de41%5Fb.jpg
    Reply With Quote  
     

  6. #5  
    Forum Masters Degree
    Join Date
    Jan 2011
    Posts
    738
    Quote Originally Posted by icewendigo View Post
    I dont know about this site nor about the other one, but out of curiosity what happens if you substitute the _ with _
    ?
    I'll try that . . . hold on . . .

    No - I get the same error, probably because of the percent sign (%).
    Reply With Quote  
     

  7. #6  
    Forum Cosmic Wizard icewendigo's Avatar
    Join Date
    Jun 2006
    Posts
    2,148
    ok, sorry. Someone else might be able to help.
    Reply With Quote  
     

  8. #7  
    Forum Masters Degree
    Join Date
    Jan 2011
    Posts
    738
    Quote Originally Posted by icewendigo View Post
    ok, sorry. Someone else might be able to help.
    No reason to apologize. Thanks for the assistance and ideas.
    Reply With Quote  
     

  9. #8  
    WYSIWYG Moderator marnixR's Avatar
    Join Date
    Apr 2007
    Location
    Cardiff, Wales
    Posts
    5,760
    are you sure the URL is that of the image ? placing it in the address bar doesn't seem to do anything

    what i normally do (in Chrome, don't know if other browsers have the same facility) is to right-click the image and select "copy image URL"

    i then paste it in my post surrounded by 2 img tags

    like so

    "Reality is that which, when you stop believing in it, doesn't go away." (Philip K. Dick)
    Reply With Quote  
     

  10. #9  
    Forum Masters Degree
    Join Date
    Jan 2011
    Posts
    738
    Thanks marnixR. Using the IMG tags works fine. So, the bug is in the forum code that is attempting to do the same thing.

    BTW, this is an image of Mt. Rushmore from the Canadian side:
    Reply With Quote  
     

Similar Threads

  1. A new project about science - [url]www.sciencemashup.net[/url]
    By Science Mashup in forum General Discussion
    Replies: 0
    Last Post: October 25th, 2010, 11:59 AM
  2. Replies: 0
    Last Post: March 27th, 2009, 11:46 AM
  3. [url]http://www.beyondbiology.org/[/url]
    By beyondbiology in forum Links
    Replies: 1
    Last Post: December 28th, 2008, 03:38 PM
  4. Suggesting [url]www.innovapulse.com[/url]
    By Pioner in forum General Discussion
    Replies: 1
    Last Post: September 12th, 2008, 08:53 PM
  5. Replies: 0
    Last Post: August 6th, 2008, 08:17 AM
Bookmarks
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
  •