Support

Home Forums Event Espresso Premium Submit button not working

Submit button not working

Posted: March 18, 2013 at 1:28 pm

Viewing 3 reply threads


Jesper Sondergaard

March 18, 2013 at 1:28 pm

I am on:

WP3.5
EE 3.1.30 7P
Newly installed WP
http://meditationinnortherncalifornia.dreamhosters.com

I can not get the Submit button to work unless I add the following:

// disable Event Espresso’s jQuery.validate.js script
add_action( ‘wp_print_scripts’, ‘my_deregister_javascript’, 100 );

function my_deregister_javascript() {
if (!is_admin()) {
wp_deregister_script( ‘jquery.validate.js’ );
}
}

But when I do this, I break the Slider on the front page. Do you have any suggestions how I can limit the “damage” the addition to function.php does.

Thank you,
Jesper


Josh

  • Support Staff

March 18, 2013 at 2:42 pm

Hi Jesper,

In this case, it looks like the theme is including the jquery.validate.js plugin. I’m wondering if it’s enqueueing it properly or if it’s enqueueing it with a different handle. Normally it wouldn’t get loaded twice if both scripts are enqueued with the same handle, WordPress will only load one of them.

The other possible cause of this is the version of the jQuery validation plugin that the theme is using is version 1.7, which Event Espresso is actually using a newer version. So you could also try updating the theme to use a newer version of the jQuery validation plugin. Event Espresso uses version 1.8.1.


Jesper Sondergaard

March 18, 2013 at 9:08 pm

I have updated the theme to jQuery 1.8.1, by copying the jQuery Validation from your plugin. But the button is still not working. I tired to add the script mentioned above. but that didnt work either. Hmmm….


Dean

March 19, 2013 at 1:54 am

Hi,

You have an jQuery error

Uncaught TypeError: Cannot call method ‘setDefaults’ of undefined

Which seems to be coming from the themes custom.js file, line 467.

That could be interfering with the other jQuery, stopping them from working.

Viewing 3 reply threads

The support post ‘Submit button not working’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso