ajax Post data missing with tinyMCE on Firefox
Posted
by Freeman
on Stack Overflow
See other posts from Stack Overflow
or by Freeman
Published on 2010-06-14T19:38:42Z
Indexed on
2010/06/14
19:42 UTC
Read the original article
Hit count: 221
I have a problem with my form when I try to submit with ajax. I am using Malsup Form plugin for Jquery but also using tinyMCE editor. When I submit the form and check the $_POST array, there is no data from the textarea. I have tried to use the triggerSave() function but to no avail. Everything is working well in IE.
// These options are common and will be used for many form submissions
var options = {
target: '#notice', // target element(s) to be updated with server response
dataType:'html',
resetForm:true,
beforeSubmit: function(){tinyMCE.triggerSave(false,true);
},
success:function(msg){
$('#notice').html( msg)
refresh(3)
}
};
//prepare form
$('#savetext').ajaxForm(options);
© Stack Overflow or respective owner