Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Javascrit dont work

  • 5 replies
  • 1 has this problem
  • 6 views
  • Last reply by 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>

Modified by cor-el

All Replies (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>

Modified by 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???

Modified by todavy