WordPress.org

Ready to get started?Download WordPress

Forums

Support Tickets
After hitting submit, the page does nothing... (12 posts)

  1. Joseph_f355
    Member
    Posted 4 years ago #

    After hitting submit, on the front end submission, the page just stays there. just the ajax loader gif appears right below the "send" submit button...any ideas?

    however, i ticket is generated, and emails are sent.

    http://wordpress.org/extend/plugins/support-tickets/

  2. EverydayInternetSolutions
    Member
    Posted 3 years ago #

    Having same problem. Using Multi Site installation WP 3.0.
    Could be something to do with ajax call back. Anyone have any HACKS to make it work?

  3. danka
    Member
    Posted 3 years ago #

    This should fix your problem... File support-tickets/scripts.js

    jQuery(document).ready(function() {
    try {
    jQuery('div.suptic.form > form').ajaxForm({
    beforeSubmit: supticBeforeSubmit,
    dataType: 'json',
    success: supticProcessJson
    });
    } catch (e) {
    }

    try {
    jQuery('div.suptic > form').each(function(i, n) {
    supticToggleSubmit(jQuery(n));
    });
    } catch (e) {
    }
    });

    function supticBeforeSubmit(formData, jqForm, options) {
    supticClearResponseOutput();
    jQuery('img.ajax-loader', jqForm[0]).css({ visibility: 'visible' });

    formData.push({name: '_suptic_is_ajax_call', value: 1});
    jQuery(jqForm[0]).append('<input type="hidden" name="_suptic_is_ajax_call" value="1" />');

    return true;
    }

    function supticNotValidTip(into, message) {
    jQuery(into).append('<span class="suptic-not-valid-tip">' + message + '</span>');
    jQuery('span.suptic-not-valid-tip').mouseover(function() {
    jQuery(this).fadeOut('fast');
    });
    jQuery(into).find(':input').mouseover(function() {
    jQuery(into).find('.suptic-not-valid-tip').not(':hidden').fadeOut('fast');
    });
    jQuery(into).find(':input').focus(function() {
    jQuery(into).find('.suptic-not-valid-tip').not(':hidden').fadeOut('fast');
    });
    }

    function supticProcessJson(data) {
    var supticResponseOutput = jQuery(data.into).find('div.suptic-response-output');

    supticClearResponseOutput();

    if (data.redirect) {
    supticResponseOutput.addClass('suptic-redirecting');
    supticResponseOutput.append(data.message).slideDown('fast');
    data.redirect = data.redirect.replace('&', '&');
    window.location = data.redirect;
    }

    if (data.invalids) {
    jQuery.each(data.invalids, function(i, n) {
    supticNotValidTip(jQuery(data.into).find(n.into), n.message);
    });
    supticResponseOutput.addClass('suptic-validation-errors');
    }
    if (data.captcha) {
    jQuery.each(data.captcha, function(i, n) {
    jQuery(data.into).find(':input[name="' + i + '"]').clearFields();
    jQuery(data.into).find('img.suptic-captcha-' + i).attr('src', n);
    var match = /([0-9]+)\.(png|gif|jpeg)$/.exec(n);
    jQuery(data.into).find('input:hidden[name="_suptic_captcha_challenge_' + i + '"]').attr('value', match[1]);
    });
    }
    if (data.quiz) {
    jQuery.each(data.quiz, function(i, n) {
    jQuery(data.into).find(':input[name="' + i + '"]').clearFields();
    jQuery(data.into).find(':input[name="' + i + '"]').siblings('span.suptic-quiz-label').text(n[0]);
    jQuery(data.into).find('input:hidden[name="_suptic_quiz_answer_' + i + '"]').attr('value', n[1]);
    });
    }
    if (1 == data.spam) {
    supticResponseOutput.addClass('suptic-spam-blocked');
    }
    if (1 == data.error) {
    supticResponseOutput.addClass('suptic-form-ng');
    }
    supticResponseOutput.append(data.message).slideDown('fast');
    }

    function supticClearResponseOutput() {
    jQuery('div.suptic-response-output').hide().empty().removeClass('suptic-form-ng suptic-validation-errors suptic-spam-blocked');
    jQuery('span.suptic-not-valid-tip').remove();
    //jQuery('img.ajax-loader').css({ visibility: 'hidden' });
    jQuery('img.ajax-loader', jqForm[0]).css({ visibility: 'hidden' });
    }

    // Toggle submit button
    function supticToggleSubmit(form) {
    var submit = jQuery(form).find('input:submit');
    if (! submit.length) return;

    var acceptances = jQuery(form).find('input:checkbox.suptic-acceptance');
    if (! acceptances.length) return;

    submit.removeAttr('disabled');
    acceptances.each(function(i, n) {
    n = jQuery(n);
    if (n.hasClass('suptic-invert') && n.is(':checked') || ! n.hasClass('suptic-invert') && ! n.is(':checked'))
    submit.attr('disabled', 'disabled');
    });
    }

    // Exclusive checkbox
    function supticExclusiveCheckbox(elem) {
    jQuery(elem.form).find('input:checkbox[name="' + elem.name + '"]').not(elem).removeAttr('checked');
    }

  4. thealchemist
    Member
    Posted 3 years ago #

    @danka ... I appreciate your answer but, unfortunately I am not exactly savvy to what you are advising us to do.

    Am I suppose to copy this to the scripts.js file? Should I overwrite everything in that file?

  5. thealchemist
    Member
    Posted 3 years ago #

    That's exactly what I had to do... great fix.

  6. danka
    Member
    Posted 3 years ago #

    Thanks, you are welcome...

    I know there are some other issues with this plugin, but, as I said to many people, I am not the main developer of this plugin, and it would be necessary to remake the whole plugin to fix all issues. I think there is a design problem in this plugin, and the only one way to solve this is remaking it.

  7. slylenser
    Member
    Posted 3 years ago #

    Unfortunately, this problem remains in WP 3.0.3. IF the script.js file is updated as above, the submit button won't click.

    Without changing, the email goes but the loader gif remains and the page isn't redirected. All we need is to redirect the page to the ticket page. Is there any solution?

  8. danka
    Member
    Posted 3 years ago #

    Here the problem you said does not happen, It is working fine here...

    Maybe there is another thing interfering...

    If you want a better solution, consider remaking the plugin by yourself, for your purposes... since this plugin can be considered abandonware, because it seems that his original author does not update it anymore.

  9. thealchemist
    Member
    Posted 3 years ago #

    Well ... interestingly enough ... this was working with the jQuery fix ... then suddenly, after I announce to my clients to use it, it stopped working. We get an "Error on Page" message.

    Very frustrating. support.transmutationsciences.com

  10. thealchemist
    Member
    Posted 3 years ago #

    Hah! So, I re-uploaded the ORIGINAL js file and now, at least, the ticket gets into the system. However, now I just get the animated gif and the customer doesn't know if the ticket got sent.

    Abandonware? God I hope not. The only other solution I haven't tried costs over $100USD and the coder will not let me have a trial version nor will give me a refund if I don't like it. I have tried virtually every other similar system and I am getting a bit bitter over this.

    Aaron

  11. danka
    Member
    Posted 3 years ago #

    Give up.

    I said the fix was only for WP 3.0.1, with no guarantees.

    About it as a abandonware, or you are blind, or you dont know what means abandonware, or you dont care about searching in author's page about this plugin.

    Take a look there, it is almost 1 year with not even a new fix. This plugin was used in his own page, at least he informed it in the plugin page.

    "I'm using this for my customization service for Contact Form 7, as well." "http://contactform7.com/customization/"

    If you follow the page you will get 404, and in the same page there is in the sidebar a well known third-part HelpDesk, that I know that is developed by a company, where "miyoshi" [the developer of this plugin] is not the owner.

    So, just do a good reflection on the subject. Why one developer that was using his own plugin gives up on this and uses a third-part software and services? Yes, when he abandon the development of his own software! So, it is an abandonware.

    I know that this plugin is very good, and there does not exist anything better or similar, but it is abandoned.

    If you want something better than a fix, develop your own software, or hire some programmer to work to you. So sorry.

  12. janmichalicka
    Member
    Posted 3 years ago #

    I spent several hours try to figure this problem out.

    And then.. clever idea. I've removed the Ajax code and it works.

    To fix this, open file support-tickets/scripts.js
    an delete following lines at the beginning of this file:

    try {
            jQuery('div.suptic.form > form').ajaxForm({
                beforeSubmit: supticBeforeSubmit,
                dataType: 'json',
                success: supticProcessJson
            });
        } catch (e) {
        }

    Save this file, upload back to your webhosting and that's it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic