milohuang / reverie

Reverie is a versatile HTML5 responsive WordPress framework based on ZURB's Foundation.
http://theakiba.com/reverie/
MIT License
916 stars 196 forks source link

AJAX Conflict with Gravity Forms #171

Open ghost opened 11 years ago

ghost commented 11 years ago

FYI: Have a couple recent development sites and Gravity Forms does not work in AJAX mode in Reverie. For the moment, I have turned it off and now the form shows the user that the form was submitted. In AJAX mode you push the submit button and 'nothing' happens to show the user the form was submitted even though it was.

milohuang commented 11 years ago

Try go to lib/clean.php and clean all the enqueue of Google jquery. Remove line 119~128, 147~149.

frankstallone commented 11 years ago

Confirmed. I just posted on Gravity Forms as well @ http://www.gravityhelp.com/forums/topic/default-confirmation-not-working. Basically calling jQuery in the footer is no good for Gravity Forms with ajax="true" in the shortcode. In the process I updated to jQuery 2.0.0 in Reverie since I am not supporting IE8 anyway. @milohuang's comment works, but causes errors with jQuery (maybe noConflict?).

EDIT: As an aside, I prefer jQuery in the footer. I am old school HTML5Boilerplate 1.0 days but are we really going to get Gravity forms to change their ways? =/

kmh3785 commented 10 years ago

@frankstallone this bothers me. Unless best practices have passed me by, jQuery in the footer is absolutely the way to go.. I love Gravity Forms, but this seems like something they need to get figured out.

tsquez commented 10 years ago

When it comes to WordPress best practice is to load jQuery in the header amigo, not the footer. If it was best practice to load in the footer, then WP devs would have created WP with jQuery in the footer by default ;)