The problem was with the apache web server - post-ing data to it causes 
segmentation faults. Recompiling apache solved the issue and now things are 
almost fine. Why "almost" - I can't find a way to pass the value of selected 
element in my select list. Here is the complete code that makes ajax with 
jquery, using JsHelper:

$this->Js->get('#selection')->event('change', 
   $this->Js->request(array('controller' => 'Syncs', 
                                       'action' => 'syncSelection'), 
                    array('async' => true, 
                            'method' => 'POST',
                            'type' => 'json',
                            'update' => '#result',
                            'data' => '$(this).val()')));

Select list is with id="selection". When I select some value from the list 
POSTed data is not the value of the selected item but "$(this).val()". As 
far as I understand - "data" is the parameter where to pass values to the 
controller, but how to populate "data" with value of the selected element 
from the list?

Regards,
Nikolay

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to