Re: cannot post data using ajax

2012-07-11 Thread Gideon
I've narrowed down the problem to CSRF protection which I don't need here (it's just an autocomplete script). I am, however, unable to disable CSRF. If I try $this->Security->csrfCheck = false; I get a fatal error about unsetting string offsets: Fatal error: Cannot unset string offsets in ...

Re: cannot post data using ajax

2012-07-11 Thread Gideon
I have discovered that the problem is with the Security component. If I disable it, I can get my post data back. I have already tried using validatePost=false but my requests are still being blackholed. If I use requireSecure() then the requests are no longer blackholed but instead the data is

Re: cannot post data using ajax

2012-07-11 Thread Gideon
I tried that but it comes up as an empty array. I checked the post data and I have set data[query]=woolf which comes up in the transaction. I don't understand why the data isn't present. On Wednesday, 11 July 2012 05:53:42 UTC+1, dario gaston musante wrote: > > try with a var_dump( $this->reque

Re: cannot post data using ajax

2012-07-10 Thread dario gaston musante
try with a var_dump( $this->request->data ); or a debug($this->request->data); El martes, 10 de julio de 2012 19:09:03 UTC-3, Gideon escribió: > > Hi all, I am trying to send ajax data to an autocomplete action > /researchers/autocomplete.json. I have set data[query]=daniel but still I > get nu

cannot post data using ajax

2012-07-10 Thread Gideon
Hi all, I am trying to send ajax data to an autocomplete action /researchers/autocomplete.json. I have set data[query]=daniel but still I get null for $this->request->data('query') or anything else for that matter. If anyone can help I'd be really appreciative. -- Our newest site for the commu