Javascript code not loading
-
Hello,
I am trying to use this plugin to display the Wufoo form that I have created.
I am using the following Javascript embed code (provided by Wufoo):
<div id="wufoo-m7x3q1"> Fill out my <a href="https://stpetebagelco.wufoo.com/forms/m7x3q1">online form</a>. </div> <script type="text/javascript">var m7x3q1;(function(d, t) { var s = d.createElement(t), options = { 'userName':'stpetebagelco', 'formHash':'m7x3q1', 'autoResize':true, 'height':'368', 'async':true, 'header':'show'}; s.src = ('https:' == d.location.protocol ? 'https://' : 'https://') + 'wufoo.com/scripts/embed/form.js'; s.onload = s.onreadystatechange = function() { var rs = this.readyState; if (rs) if (rs != 'complete') if (rs != 'loaded') return; try { m7x3q1 = new WufooForm();m7x3q1.initialize(options);m7x3q1.display(); } catch (e) {}}; var scr = d.getElementsByTagName(t)[0], par = scr.parentNode; par.insertBefore(s, scr); })(document, 'script');</script>
Problem is that when the pop up appears, all it has is a link that says “Fill out my online form”. Basically, the JS is not rendering.
Any idea why this is happening? The embed code works fine in my posts, as a sidebar widget, etc.
- The topic ‘Javascript code not loading’ is closed to new replies.