WordPress.org

Ready to get started?Download WordPress

Forums

WordPress PopUp
Javascript code not loading (1 post)

  1. lpleva1
    Member
    Posted 1 year ago #

    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="http://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://' : 'http://') + '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.

    http://wordpress.org/extend/plugins/wordpress-popup/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.