Actually, I think this is what you want:

$('#formPub').ajaxForm({
  target: '#response',
  beforeSubmit: function(a) {
     for (var i=0; i<a.length; i++)
       if (a[i].name == 'txt1')
           a[i].value = tinyMCE.getContent();
  },
  success: function(){
     $('#response').fadeIn('slow');
  }
});

Mike


On 6/26/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
Try adding a beforeSubmit handler like this:

 $('#formPub').ajaxForm({
   target: '#response',
   beforeSubmit: tinyMCE.triggerSave,
   success: function(){
      $('#response').fadeIn('slow');
   }
 });


> $(document).ready(function(){
>   $('#formPub').ajaxForm({
>     target: '#response',
>     success: function(){
>        $('response').fadeIn('slow');
>     }
>   });
> });

Reply via email to