jQuery AJAX bug
Brought to you by:
cdolivet
I was submitting my form using jQuery's AJAX and it's serialize() function.
All form fields are serialized and sent like this:
var params = $(this).serialize();
$.ajax({
type: "POST",
data: params,
success: function(msg){
$("#content").prepend(msg);
}
});
Before using editarea all went cool, but now all replaced textareas won't be sent to the server.
Of course that will happen. The author isn't going to accommodate jQuery (despite it being the single best Javascript library out there). Solution:
$('#content').val(editAreaLoader.getValue(editor_id));
var params = $(this).serialize();
...