Re: where is data from AJAX POST?
Right you are. I just went back and checked and found it in $this-params['form']. That was one of the first things I checked, though. But I've fiddled around a bit, so there was probably something else misconfigured when I checked that array. Thanks! On Sat, Feb 23, 2008 at 9:50 PM, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Didn't try it, but I think it's in $this-params['form'], anyway they also should be in $_POST. On 2/23/08, [EMAIL PROTECTED] [EMAIL PROTECTED] 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-php@googlegroups.com 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 -~--~~~~--~~--~--~---
where is data from AJAX POST?
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-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: where is data from AJAX POST?
Didn't try it, but I think it's in $this-params['form'], anyway they also should be in $_POST. On 2/23/08, [EMAIL PROTECTED] [EMAIL PROTECTED] 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-php@googlegroups.com 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 -~--~~~~--~~--~--~---