当名称与当前子目录发生冲突时,获取父目录子目录的路径

I'm not sure if there's something wrong with me or my system setup, or if there's really a problem in doing this.

I'm dealing with the following two directories on my server:

www/js/tiny_mce

www/nimda/js

When I'm in the nimda folder, I just use js/xyz.js to refer to something in the current directory's js folder. But how to refer to www/js/tiny_mce from within nimda? When I use ../js/tiny_mce/ it doesn't resolve. In fact, Firebug tells me:

"NetworkError: 404 Not Found - http://.../nimda/js/tiny_mce/tiny_mce.js"

But I used the ../ prefix, I wasn't trying to refer to js from within nimda! Is there something wrong with having folders with the same name in the current directory as well as the parent directory?

I have a whole bunch of other files in www/js/ which are being resolved fine with ../js from within nimda, but they have no problems and Firebug doesn't complain.

I then decided to go absolute, and tried:

<script type="text/javascript" src="http://mydomain/js/tiny_mce/jquery.tinymce.js"></script>

Strangely, the network error still insists that I'm referring to the js directory within nimda!

"NetworkError: 404 Not Found - http://mydomain/nimda/js/tiny_mce/tiny_mce.js"

What's wrong?