Re: CakePHP - Empty $this-request-data array after Ajax POST

2013-07-03 Thread Dakota
First suggestion would to be upgrade to jQuery 1.10, I've had issues with 1.9 on IE10. Is your pass_data a json string? If that is the case then you need to tell CakePHP to actually parse the JSON data. The easiest way is to simply add the RequestHandler component. On Tuesday, 2 July 2013

CakePHP - Empty $this-request-data array after Ajax POST

2013-07-02 Thread Juraj Vlk
I'm trying to save data which comes from Ajax POST request in JSON but There is empty $this-request-data in controller. My Ajax call: $.ajax({ type: POST, url: 'localhost/pages/register', dataType: 'json', data: pass_data, }); I use Cakephp 2.3. and JQuery 1.7 Do you have

Re: CakePHP - Empty $this-request-data array after Ajax POST

2013-07-02 Thread Gaurav Matta
http://itfeast.blogspot.in/2013/06/cakephp-send-multiple-elements-in-ajax.html?m=1 Follow above link might help you or see jshelper for this version of cake On 02-Jul-2013 7:56 PM, Juraj Vlk jua...@gmail.com wrote: I'm trying to save data which comes from Ajax POST request in JSON but There is

Re: CakePHP - Empty $this-request-data array after Ajax POST

2013-07-02 Thread 清水紘己
using $(form).serialize() for data works fine. alternative way is $.param(pass_data) 2013/7/2 Juraj Vlk jua...@gmail.com I'm trying to save data which comes from Ajax POST request in JSON but There is empty $this-request-data in controller. My Ajax call: $.ajax({ type: POST,