
Firefox v21 can't find files if in *.htm file used "windows style" path slashes to java scripts (on Unix hosting with apache)
Hi. I find a strange behaviour of Firefox v21. If in *.htm file used "windows" path slashes to java scripts (on Unix hosting with apache). Firefox says 404 but other browsers (like Opera, Chrome, IE10) correctly works with this.
Kiválasztott megoldás
You need to use forward slashes in links to make them work properly in Firefox, otherwise Firefox will escape them as %5C as you can see if you would hover them in case of a real link (this is of course not possible in this case).
Válasz olvasása eredeti szövegkörnyezetben 👍 0Összes válasz (7)
Are you talking about backslash \ vs. a slash / ??
Yes.
<title>SearchBox</title>
<script src="JS\CountryList.js"></script> <script src="JS\DestinationList.js"></script> <script src="JS\NationalityList.js"></script> <script src="JS\RoomJavascript.js"></script> <script src="JS\Date.js"></script> <script src="JS\CommonJS.js"></script>
In this case (if .htm file on Unix hosting) Firefox can't find scrips. Other browsers (Opera, IE10, Chrome) can.
Módosította: amorphis,
Kiválasztott megoldás
You need to use forward slashes in links to make them work properly in Firefox, otherwise Firefox will escape them as %5C as you can see if you would hover them in case of a real link (this is of course not possible in this case).
I think that i previous versions of Firefox browser can correctly work with back slashes. Only now we receiving questions from customers about errors in module work. How about other browsers? Why they correctly works with back slashes in path?
Sorry, I don't recall that Firefox ever worked with backslashes - all the way back to the early versions of Phoenix in 2002.
Hi amorphis, you wrote:
I think that i previous versions of Firefox browser can correctly work with back slashes.
No. Otherwise the "Slashy" extension wouldn't have been needed in 2004 for version 0.8 of Firefox (https://addons.mozilla.org/firefox/ad.../slashy/).
There really is no choice but to fix the links. It won't take long and then you won't have to worry about losing visitors.
Thanks. I will tell developer to fix back slashes in sripts path.
Módosította: amorphis,