I tried it without the AJAX call (instead I refreshed the whole page)
which indeed resulted in a successful post.
I think I'll focus on Jonathan's idea.

How can I approach the hidden textarea that's created by FCK? I
presume this issue must be kind of common: is there maybe already a
solution available?

regards,
Bart



On Jun 11, 4:41 pm, wilson <[EMAIL PROTECTED]> wrote:
> Check the Expire headers your server is sending.  I had an issue with
> this causing similar problems.  In fact, I had to disable the far
> future Expires until I could determine a way to apply it to all but
> the /admin routes.
>
> Wilson
>
> On Jun 11, 10:18 am, "Jonathan Snook" <[EMAIL PROTECTED]>
> wrote:
>
> > I'm trying to figure out exactly what you've got going on:
>
> > When you click save, do you have an ajax call that's meant to save the
> > data to the server? If you take the ajax call out and just leave Fck,
> > does it work?
>
> > As far as I know, Fck copies the content from the editor to a hidden
> > textarea on form submit. Which means if you're doing an Ajax call, it
> > may not be accessing the most recent content. You may need to do a
> > custom javascript call to force Fck to update the hidden textarea so
> > that the Ajax call can submit it to the server.
>
> > On Wed, Jun 11, 2008 at 7:15 AM, Bart <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
> > > An awkward thing occurs when I'm trying to submit a form with the AJAX
> > > helper and fck editor applied to a textarea.
>
> > > The textarea is already loaded with a value from the database (I'm
> > > updating newsposts). When I submit the form (only textarea) the new
> > > value is not passed to the controller $this->data. The old value
> > > appears.
> > > Though, if I hit the submit button again... it does post the new
> > > value.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to