List Info

Thread: where is data from AJAX POST?




where is data from AJAX POST?
user name
2008-02-23 13:01:48
I'd like to be able to POST some data periodically using
jQuery ajax
calls. The URL contains an ID that is parsed out in the
route, so the
controller should receive a value for
$this->params['id'].

But how do I grab the values for the data I've POSTed? I
thought it
would be in $this->data or might be in
$this->RequestHandler->params[]
but that seems not to be the case. Because this is ALAX i'm
finding it
difficult to debug this.

Note that I'm not using Cake's AJAX form creation or
anything like
that. I don't see how that would fit with what I'm trying to
do. This
isn't for submitting the entire form or saving the model,
but for
making incremental saves of data in a textarea (TinyMCE).
Think CMS.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Cake PHP" group.
To post to this group, send email to cake-phpgooglegroups.com
To unsubscribe from this group, send email to
cake-php-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: where is data from AJAX POST?
user name
2008-02-23 20:50:00
Didn't try it, but I think it's in $this->params['form'],
anyway they
also should be in $_POST.

On 2/23/08, foo.logicagmail.com <foo.logicagmail.com> wrote:
>
>  I'd like to be able to POST some data periodically
using jQuery ajax
>  calls. The URL contains an ID that is parsed out in
the route, so the
>  controller should receive a value for
$this->params['id'].
>
>  But how do I grab the values for the data I've POSTed?
I thought it
>  would be in $this->data or might be in
$this->RequestHandler->params[]
>  but that seems not to be the case. Because this is
ALAX i'm finding it
>  difficult to debug this.
>
>  Note that I'm not using Cake's AJAX form creation or
anything like
>  that. I don't see how that would fit with what I'm
trying to do. This
>  isn't for submitting the entire form or saving the
model, but for
>  making incremental saves of data in a textarea
(TinyMCE). Think CMS.
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Cake PHP" group.
To post to this group, send email to cake-phpgooglegroups.com
To unsubscribe from this group, send email to
cake-php-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )