Hello,
I have a problem understanding/using the $js->request() function. I
want to use it to get the value of an input field and send the value
on an event. But how do I get the value of the input field into the
requests parameter? My setup is like this:
$this->Js->get('input')->event('click',$this->Js->request(
array('action' => 'search'), // <-- shouldn't the parameter go in
here? How to do that with Js?
array('update' => 'target'
));
Whe using:
$this->Js->get('input')->event('click', $this->Js->request(
array('action' => 'search'),
array('update' => 'target',
'dataExpression' => true,
'data' => '$(input).val()'
));
I get a request like ..url/controller/action?value which I do not know
how to access with cakePHP.
What am I doing wrong?
Thank you for your help & time
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php