PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

WP 3.2 and AJAX? Anyone else?

  1. A default Widget subscribe form with a Mailchimp hook is not supplying any feedback when AJAX is enabled but does when it's not. The only thing I think that's new is the WP 3.2 update. My second site which hasn't been updated still gives AJAX feeback (different server but same setup)...can you confirm that according to your setup it should/shouldn't still work? Safari 5.05 & Firefox 5 both on Mac OS X...work/don't for both sites. ie, did it break for all 3.2 or just me. :)

    http://64.64.10.134/~tav/ no AJAX wp3.2 Dev site; bottom left footer subscribe form; get wp dashboard data and mailchimp data - just the "thanks for subscribing" language doesn't work - but used to
    http://www.butlercinematography.com/inquire/ gives AJAX feedback correctly wp3.14

    Posted 12 years ago on Wednesday July 6, 2011 | Permalink
  2. It looks like AJAX is disabled on your Dev site. Could you enable it so that I can take a look at the issue?

    Posted 12 years ago on Thursday July 7, 2011 | Permalink
  3. khaggins
    Member

    What is the procedure to disable Ajax? I am using WP v3.1 and a large form with several check boxes.

    Posted 12 years ago on Thursday July 7, 2011 | Permalink
  4. Ajax in enabled by a variable in your embed shortcode or function call. You can find out more about it in the documentation here.

    http://www.gravityhelp.com/documentation/page/Embedding_A_Form

    http://www.gravityhelp.com/documentation/images/3/36/Shortcode-builder.png

    Posted 12 years ago on Thursday July 7, 2011 | Permalink
  5. Right; thanks I disabled it so the client could test it; they pointed out that there was no feedback...but that's enabled/disabled just for that particular form via the short code, right? There isn't a master ajax switch I bumped in the night?

    Posted 12 years ago on Friday July 8, 2011 | Permalink
  6. Ok, so I upgraded the second server to 3.2 and ajax works fine: http://www.butlercinematography.com/inquire/

    Now I'm not sure what to think of the widget code ajax issue on the 64.64.x server....

    Posted 12 years ago on Friday July 8, 2011 | Permalink
  7. @cabinone Looking at your 64.64.x site you have Javascript errors, this is probably why the AJAX isn't working. See this screenshot: http://i.imgur.com/osbhe.png

    The first Javascript error I see is jQuery is undefined, which means jQuery isn't being included by your theme. You need to update your theme so jQuery is being included in the header of your site. Since the widget is in the footer, and i'm assuming on most pages, this is the best way to handle it. The Widget can't enqueue scripts int he header, it would have to output them inline. So if the widget is going to appear on most pages it's best to enqueue the scripts yourself.

    Posted 12 years ago on Friday July 8, 2011 | Permalink
  8. Ok, I'll look into that, thanks!

    Posted 12 years ago on Friday July 8, 2011 | Permalink
  9. And the theme update as of last night now probably does that - problem solved - thank you...

    Posted 12 years ago on Friday July 8, 2011 | Permalink