[jQuery] Problem With jquery form plugin and tinymce

[jQuery] Problem With jquery form plugin and tinymce


I have a form which is submitted through jquery form plugin. The form
contains only one textarea which uses tinymce. The problem is that when I
try to submit the form, the new content of the textarea is not sent through
POST. If there is any content before that modifications, than that content
is send. If I submit the form twice, than the second time, the new content
is send.
Here is some code:
<script type="text/javascript"
src="include/js/jquery-1.2.1.min.js"></script>
<script type="text/javascript" src="include/js/form.js"></script>
<script type="text/javascript"
src="include/js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
                        tinyMCE.init({
                            mode : "textareas",
                            theme : "advanced",
                            theme_advanced_buttons1 :
"bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,
justifyfull,bullist,numlist,undo,redo,link,unlink",
                            theme_advanced_buttons2 : "",
                            theme_advanced_buttons3 : "",
                            theme_advanced_toolbar_location : "top",
                            theme_advanced_toolbar_align : "left",
                            theme_advanced_statusbar_location : "bottom"
                        });
            $(document).ready(function(){
                            $('#home').ajaxForm({
                      dataType: 'json',
                      success: function(data){
                          if (data.empty != "")
                             alert (data.empty);
                                    if (data.mysql != "")
                                        alert (data.mysql);
                                    if (data.ok == "ok")
                                        alert ("All ok!");
                                    }
                            });
                        });
                    </script>
--
View this message in context: http://www.nabble.com/Problem-With-jquery-form-plugin-and-tinymce-tp14788650s27240p14788650.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.