Hi,
Sorry if this is the wrong place to post, or the issue has been posted before, but my searches failed to find an answer.
My requirement is to be able to have a chronoform submitted via AJAX using mootools. I have used prototype.js before so the transition to mootools should be easy, but how do I override the chronoforms FORM ACTION so that ajax takes over and submits correctly? Would I have to override the action within mootools and receive the response using responsetext?
Hope this makes sense.
:)
Sorry if this is the wrong place to post, or the issue has been posted before, but my searches failed to find an answer.
My requirement is to be able to have a chronoform submitted via AJAX using mootools. I have used prototype.js before so the transition to mootools should be easy, but how do I override the chronoforms FORM ACTION so that ajax takes over and submits correctly? Would I have to override the action within mootools and receive the response using responsetext?
Hope this makes sense.
:)
Hi copiermad,
What do you need to change the form Action to? You can switch between Get & Post in the General tab, I don't know enough about AJAX to know what you need here.
Bob
What do you need to change the form Action to? You can switch between Get & Post in the General tab, I don't know enough about AJAX to know what you need here.
Bob
Hi copiermad,
just make an input of type button and make it execute a function on click event which is submitting the form, I think something like :
just make an input of type button and make it execute a function on click event which is submitting the form, I think something like :
function submitform(){
$('ChronoContact_formname').send({
onRequest: function(){
$('ChronoContact_formname').innerHTML = "Please wait, form submission in progress.......";
},
onComplete: function(){
$('ChronoContact_formname').innerHTML = "Thank you!<br>"+this.response.text;
}
});
}
This topic is locked and no more replies can be posted.
