Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter boomstik

    (@boomstik)

    And yet again.
    things seem to be even simpler.
    jQuery needs to be loaded in the <head>, then your plugin works. modifications to your code are not necessary.

    Is there any way to get your plugin’s js to load last? as it stands, it loads itself before jQuery if it’s enqueued in the footer, and thus things break.

    Sorry for the confusion, i’ve been posting simultaneously with the troubleshooting. 🙂

    Thread Starter boomstik

    (@boomstik)

    ok, so it looks like things are working fine with built-in jQuery, but not when enqueued from Google. I would still get the “jQuery is not defined” message, until I added the following to wpgform-core.php:


    var $j = jQuery.noConflict();
    $j(document).ready(function($) {

    basically aliasing jQuery to $j… and then it all works using Google’s jQuery, even using the ajax confirmation page.
    interestingly, I had to do this in my own scripts when NOT using Google’s jquery.

    on a separate note: when using ajax to display confirmation page, it loads the entire contents of <head> into <body>.

    Thread Starter boomstik

    (@boomstik)

    Actually, turns out not enqueueing Google’s version of jQuery breaks other things on my site :\

    just letting you know. Since some people prefer to replace WordPress’ version of jQuery with a CDN version. (in this case, both are v. 1.8.2, which is trés bizzarre.)

    Thread Starter boomstik

    (@boomstik)

    Thanks.
    I already searched there, but came up empty.
    This applies to more than just Thematic, no?
    Either way, I’ll go ask on the Thematic forums instead.

Viewing 4 replies - 1 through 4 (of 4 total)