www.webdeveloper.com
Results 1 to 4 of 4

Thread: File name "mastercard" not allowed ?

  1. #1
    Join Date
    Feb 2009
    Posts
    2

    File name "mastercard" not allowed ?

    Hi,

    Just learning Javascript

    Wrote a little script that creates an image containing both VISA and MasterCard logos.
    When one of the logos is clicked on, a new tab opens with only that logo visible
    Interestingly, one of the logo filenames was "mastercard.png"
    Everytime I tried to use that name, the script would fail and the file would be "404 not found".
    The use of ANY other names for the file such as:
    "dog.png"
    "amastercard.png"
    "master_card.png"
    "Logo_mastercard.png"
    etc.
    worked OK.
    BUT NOT "mastercard.png"

    Oh, and "VISA.png" worked fine too..

    Is there any list of such forbidden file names that beginners like me should know about ?

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    There is no such restriction. Check that the image name and path are correct. Upper and lowercase characters are different!

  3. #3
    Join Date
    Feb 2009
    Posts
    2
    Quote Originally Posted by Fang View Post
    There is no such restriction. Check that the image name and path are correct. Upper and lowercase characters are different!
    That's why it's so strange, and why I'm confused

    I did make sure that path and case were correct
    And in the example of "amastercard.png", all I did was add and remove the "a", to test back and forth.
    Even wrote a perl script to automate the process.
    All I had do was enter the new name and it would make the changes and run the script
    And it didn't matter what other name I entered, it would ONLY fail when the name was "mastercard"
    Even did a sequential test from "master" to "masterc" to masterca" to mastercar" to "mastercard" to mastercards".
    And the only one that failed that series was..
    "mastercard".

    Totally crazy and random.

  4. #4
    Join Date
    Apr 2006
    Location
    Houston
    Posts
    1,374
    Fang is wrong.

    Mastercard is the secret organization which has been funding the Mozilla, Microsoft, and W3C organizations for the last 5 years. They do not permit their name to be used in trivial things such as "graphic" image file names. It is seen as copyright infringement.

    Expect a visit tonight from the copyright infringement ninja enforcement squad. http://blog.globalgiving.com/wp-cont...8/02/ninja.jpg


    [EDIT]
    Look for a variable or function you are using that is already called "mastercard"
    [/EDIT]
    Last edited by slaughters; 02-18-2009 at 01:06 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles