If you request your view_beer action by browser address bar, you'll see empty data as it is not AJAX and no parameters passed. When you request your view_beer action by that jQuery code you see filled data as it is AJAX and you passed data.
On Jul 14, 1:28 pm, jeff <[email protected]> wrote: > sorry > Dr. Loboto > what i mean to say is that > > when i alert the data through javascript > > it gives me the foll > > ================================================ > Data submitted: Array > > ( > [pass] => Array > ( > ) > > [named] => Array > ( > ) > [controller] => beers > [action] => view_beer > [plugin] => > [form] => Array > ( > [name] => John > [id] => some-beer-name > ) > > [url] => Array > ( > [url] => beers/view_beer > ) > > [isAjax] => 1 > ) > ================================================ > > =>now the output from the controller is as shown below > > ============================================ > Array ( [pass] => Array ( ) [named] => Array ( ) [controller] => beers > [action] => view_beer [plugin] => [form] => Array ( ) [url] => Array ( [url] > => beers/view_beer ) [isAjax] => ) > ============================================ > > => see the difference between the two > > for the contoller output there is no value for > > =============================== > [form] => Array ( ) and [isAjax] => ) > =============================== > > but in javascript alert it shows the data > > ========================== > > [form] => Array > ( > [name] => John > [id] => some-beer-name > ) > > and > > [isAjax] => 1 > > ============================ > > => could u tell me how to get the alert values from the javascript to the > controller > > => i used the foll: > > ======================== > function view_beer() > { > print_r($this->params); > } > > ======================== > > =>am not sure whther its right or wrong and its not giving me the required > values.... > > =>so could u give me a correct code to be used in the controller to view the > posted values > > =>it would be a great help > > thanks............... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
