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.

jQuery is not defined error when using ajax form submission

  1. Andrew Munro
    Member

    Hi all,

    I have a gravity form on my page which is using ajax for form submission. I'm also loading jQuery in my theme's footer, and because of this it's throwing the ol' 'jQuery is not defined'. Of course, this is because jQuery is being loaded after the form, but I'm wondering if there is any way to fix this without shifting the jQuery.js into the head? I'd like it to stay in the footer for optimization.

    Is there a way I can somehow wrap the gform call in a document.ready function or something along those lines?

    Posted 13 years ago on Wednesday September 7, 2011 | Permalink
  2. I would like to be able to do the same thing...

    Posted 13 years ago on Tuesday September 27, 2011 | Permalink
  3. Right now this isn't possible with AJAX enabled. The AJAX functionality currently uses some in line jQuery as part of it's functionality which means jQuery has to be loaded before this jQuery is executed. It is something we would like to change in the future to enable this.

    Posted 13 years ago on Tuesday September 27, 2011 | Permalink

This topic has been resolved and has been closed to new replies.