Hi Miles
You are the man. I have been pulling my hair over this, wanting to send
parameters to my jquery calls without using some temporary form.
I am so happy today.
Thank you, thank you and thank you.
-Sri Adhi
On Wednesday, April 22, 2009 5:17:58 PM UTC-4, Miles J wrote:
>
> You have to send it within a data array like so:
>
> jQuery.ajax({
> type: "POST",
> url: '/controller/action',
> data: "data[Model][name]=value&data[name]=value"
> });
>
> And in the controller:
>
> $this->data['Model']['name'] OR
> $this->data['name']
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en.