/    Sign up×
Community /Pin to ProfileBookmark

weird folder issue

Any javascript programmers ever see this one…

I have a folder where I keep all my .js files. I have the…

script type=”text/javascript” src=”javascript/jquery.js”
/script

…all set up. [carats removed] All the right folders are made (for each test I would rename the folder and the link). It will not work if I name that folder “javascript”.

“javascr” works
“abc” works
“javascripk” works
“javascript” will not work.

When I view source and click the src=”[location]”, I get a file not found, but ONLY when the folders name is “javascript”.

So WEIRD.

Ubuntu (Karmic), Firefox, Apache 2.x, (PHP 5 and playing with jQuery if that matters, all running / testing lolcally)

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@mrhooMay 19.2010 — 'javascript' in an url is a [I]protocol[/I], like 'http'- it is used to run javascript expressions from the address bar or a hyperlink's href action.

Some servers restrict paths to unreserved strings, some don't- but to avoid any problem,

use another name for the folder.
Copy linkTweet thisAlerts:
@cookiecrispauthorMay 19.2010 — http://www.example.com/javascript should be OK to use.

ohhhhh I get it, that is sneeeeaky. ty, problem solved.
×

Success!

Help @cookiecrisp spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...