Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

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

Javascrit dont work

  • 5 réponses
  • 1 a ce problème
  • 9 vues
  • Dernière réponse par todavy

more options

This javascript to embedd a survey from polldaddy (now crowdsignal.com) does not work in Firefox (but in other browsers):

<script type="text/javascript" charset="utf-8" src="https://secure.polldaddy.com/p/10179279.js"></script>
<noscript><a href="https://poll.fm/10179279">Question nr 1</a></noscript>
This javascript to embedd a survey from polldaddy (now crowdsignal.com) does not work in Firefox (but in other browsers): <pre><nowiki><script type="text/javascript" charset="utf-8" src="https://secure.polldaddy.com/p/10179279.js"></script> <noscript><a href="https://poll.fm/10179279">Question nr 1</a></noscript></nowiki></pre>

Modifié le par cor-el

Toutes les réponses (5)

more options

Did you check the Web Console for error messages?

more options

I used a script in Firefox's Web Console to inject the poll into a sample page.

var s=document.createElement('script'); s.setAttribute('src', 'https://secure.polldaddy.com/p/10179279.js'); document.body.appendChild(s);

First try:

Oops, private window has Tracking Protection enabled. Made an exception.

Second try:

  • A call to document.write() from an asynchronously-loaded external script was ignored. 10179279.js:67:14032
  • TypeError: _$(...) is null[Learn More] 10179279.js:67:14276

Okay, there's a script error. Maybe this is due to the way I injected it? Anyway, I don't have any solution for you at this point. Maybe you could check for errors in the Web Console on your actual page.

more options

Thanks for quick answer! Yes there is one error in the consol and its "The resource at “https://secure.polldaddy.com/p/10179279.js” was blocked because content blocking is enabled. ".

But when I embed the code for a survey instead of a poll from Polldaddy it works (see below). Is there a way to make the first code work for everyone with Firefox without changing the FW settings?

Code for survey:

<div class="pd-embed" id="pd_1543611763"></div>
<script type="text/javascript">
  var _polldaddy = [] || _polldaddy;

  _polldaddy.push( {
    type: "iframe",
    auto: "1",
    domain: "webmaster2000tv.survey.fm",
    id: "favorit%C3%A5rstid",
    placeholder: "pd_1543611763"
  } );

  (function(d,c,j){if(!document.getElementById(j)){var pd=d.createElement(c),s;pd.id=j;pd.src=('https:'==document.location.protocol)?'https://polldaddy.com/survey.js':'http://i0.poll.fm/survey.js';s=document.getElementsByTagName(c)[0];s.parentNode.insertBefore(pd,s);}}(document,'script','pd-embed'));
</script>

Modifié le par cor-el

more options

Apparently the polldaddy.com site is on the list of sites blocked by Tracking Protection. However, even when I unblocked it, there was a problem with the poll in my test. How about you? See: What happened to Tracking Protection?.

more options

Works here after unblocking the tracking protection (FW 63.0.3 (64-bit)). It works in Edge, Chrome and old IE.

But now something happened! After clicking the "Reset standard setting" in FW and restarting the program, it suddenly works, even though there is a block in "block all trackers" (standard setting). :/

I guess it's solved but I don't know what is the diffrence now!? Did I have some other setting before???

Modifié le par todavy