Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

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

  • 7 réponses
  • 2 ont ce problème
  • 1 vue
  • Dernière réponse par 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.

Solution choisie

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

Lire cette réponse dans son contexte 👍 0

Toutes les réponses (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.

Modifié le par amorphis

more options

Solution choisie

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.

Modifié le par amorphis