

We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you. I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. I am using cakePHP, so I have had to use autoRender=false which makes the view optional. function postContacts()īut I am confused as to how the data has to be retrieved.
#CAKEPHP AUTORENDER FALSE NOT WORKING CODE#
Now I’ll post the code for my postContacts action, which isn’t a big thing. $.post('/callcenter/admin/postContacts', data) Var data = document.getElementById('hiddenContact').value

The two methods do two different things, one forwards the call as described, changing the application state in a way that the action where the call is being forwarded to, thinks that it was the one that was called to begin with, and the other creates an HTTP redirect response. I have tried searching for articles for my problem, but I have found none. Forwarding (internally redirecting) is not the same as HTTP redirecting. Now I am unable to understand how do I pass the data and how do I retrieve the data. And the data that I am passing is a string. I am trying submit data to the server using Jquery POST method. Hello I am a newbie working with jQuery and Ajax. All we need is an easy explanation of the problem, so here it is.
