[jQuery] Re: jQuery and tinyMCE problem

2007-06-26 Thread Massimiliano Marini
> Actually, I think this is what you want: > > $('#formPub').ajaxForm({ >target: '#response', >beforeSubmit: function(a) { > for (var i=0; i if (a[i].name == 'txt1') > a[i].value = tinyMCE.getContent(); >}, >success: function(){ > $('#response').fad

[jQuery] Re: jQuery and tinyMCE problem

2007-06-26 Thread Mike Alsup
Actually, I think this is what you want: $('#formPub').ajaxForm({ target: '#response', beforeSubmit: function(a) { for (var i=0; i wrote: Try adding a beforeSubmit handler like this: $('#formPub').ajaxForm({ target: '#response', beforeSubmit: tinyMCE.triggerSave, success: fu

[jQuery] Re: jQuery and tinyMCE problem

2007-06-26 Thread Mike Alsup
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: f

[jQuery] Re: jQuery and tinyMCE problem

2007-06-26 Thread Massimiliano Marini
> just curious... does your textarea has an "id" attribute... i don't > know if it is required, but if it doesn't have an id, then adding one > might help. just my .02. Yes my textarea have an "id", but the problem still remain :( My form : Title Message -- Massimiliano Marin

[jQuery] Re: jQuery and tinyMCE problem

2007-06-26 Thread Massimiliano Marini
> Surely you mean >$('#response').fadeIn('slow'); > not > $('response').fadeIn('slow'); Thanks I've corrected it, but the problem still remain. -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay

[jQuery] Re: jQuery and tinyMCE problem

2007-06-26 Thread Ganeshji Marwaha
just curious... does your textarea has an "id" attribute... i don't know if it is required, but if it doesn't have an id, then adding one might help. just my .02. -GTG On 6/26/07, Massimiliano Marini <[EMAIL PROTECTED]> wrote: Hi all, I've a form with 1 field and 1 textarea, for the textare

[jQuery] Re: jQuery and tinyMCE problem

2007-06-26 Thread Peter Bengtsson
Surely you mean $('#response').fadeIn('slow'); not $('response').fadeIn('slow'); On 6/26/07, Massimiliano Marini <[EMAIL PROTECTED]> wrote: Hi all, I've a form with 1 field and 1 textarea, for the textarea I'm using tinyMCE. I've included the scripts : This code is correct? Or tinyMC