Object loads on some phones and on others it does not load

0

Good afternoon, my site is with the object below on line 12965:

  <script>
  var _cFieldFrame = document.getElementById("customFieldFrame_67");
  _cFieldFrame.src = "//widgets.jotform.io/imagePicker/?qid=67&ref=" + encodeURIComponent(window.location.protocol + "//" + window.location.host);
  _cFieldFrame.addClassName("custom-field-frame-rendered");
            </script>

But this object loads on some cell phones, and on others it does not load, can you help me?

The image below shows the print of a cell phone that uploaded the image properly

Theimagebelowshowstheprintofacellthatdidnotloadtheobject

    
asked by anonymous 14.01.2017 / 17:43

1 answer

0

The addClassName function does not exist natively in JavaScript, in DOM you have to set the .className property.

I believe that what you want would be something like:

<script>
var _cFieldFrame = document.getElementById("customFieldFrame_67");

_cFieldFrame.src = "//widgets.jotform.io/imagePicker/?qid=67&ref=" + encodeURIComponent(window.location.protocol + "//" + window.location.host);
_cFieldFrame.className += " custom-field-frame-rendered";
</script>
    
14.01.2017 / 20:42