Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

Firefox v21 can't find files if in *.htm file used "windows style" path slashes to java scripts (on Unix hosting with apache)

  • 7 odpovědí
  • 2 mají tento problém
  • 1 zobrazení
  • Poslední odpověď od amorphis

more options

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.

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.

Zvolené řešení

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).

Přečíst dotaz v kontextu 👍 0

Všechny odpovědi (7)

more options

Are you talking about backslash \ vs. a slash / ??

more options

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.

Upravil uživatel amorphis dne

more options

Zvolené řešení

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).

more options

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?

more options

Sorry, I don't recall that Firefox ever worked with backslashes - all the way back to the early versions of Phoenix in 2002.

more options

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.

more options

Thanks. I will tell developer to fix back slashes in sripts path.

Upravil uživatel amorphis dne