Answer the question
In order to leave comments, you need to log in
MODX REVO AjaxForm how to show the word SENDING.... when submitting?
Friends who are familiar with AjaxForm in MODX? Which sends AJAX forms to the site. Please tell me how to do something that would show some kind of animation or the word
SENDING when sending a letter... thinks before receiving the server response. How to catch this moment in order to hang an animation on it, I can easily do this, I don’t know what event to hang it on, please help!!!!
This is how I do it, but nothing really works, this is not the right direction :(
$(function() {
$(document).on('af_complete', function(event, response) {
console.log(response);
if(response.success != false && response.success != ''){
$(".loader").css('display','block');
}
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question