Forums

[Plugin: MM Forms] Non Ajax Submission (2 posts)

  1. metabrandon
    Member
    Posted 2 years ago #

    I'm seeing a function in the plugin for processing a non-ajax submission. How do I turn ajax off? Can I force non ajax and specify and landing page?

  2. pdclark
    Member
    Posted 1 year ago #

    I'm having a similar problem with MM-Forms AJAX hanging in WPMU 2.9.1 / MMF 0.9.7b.

    After having no luck fixing the failed AJAX call on any consistent basis, I instead disabled MMF's AJAX function by putting this code in my theme's functions.php:

    add_action('template_redirect', 'pd_disable_mmf_ajax');
    
    function pd_disable_mmf_ajax() {
    	global $mmf;
    
    	// Remove MMF's wp_head function
    	remove_action('wp_head', array(&$mmf, 'wp_head'));
    
    	// Enqueue MMF CSS & Calendar js
    	wp_enqueue_style('pd_mmf', WP_PLUGIN_URL.'/mm-forms/stylesheet.css');
    	wp_enqueue_style('pd_mmf_cal', WP_PLUGIN_URL.'/mm-forms/calendar.css');
    	wp_enqueue_script('pd_mmf_cal_js', WP_PLUGIN_URL.'/mm-forms/calendar.js');
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags