http://phpyalgomas.blogspot.com/2012/03/selects-dependientes-para-cakephp.html
-- El 28 de marzo de 2012 00:08, Ryan Snowden <sicapitan@gmail.com> escribió:
Try not think as Cake handling the AJAX... technically it is just javascript... so in this regards, you are checking for a change event on the select list, and it's going to get the value and POST it to a function in a controller which is going to return a value, or render a view with the value in it.You can generate the correct url using the Html->url helper in the view. jQuery has .change (http://api.jquery.com/change/) and then you are also using $.ajaxI don't recommend using ajax helpers unless it's a repetitive, fairly simple thing to do like links. Just write in raw javascript/jquery. Debugging is easier, the examples for plugins work in a copy paste way, and you get moving faster.
On 28 March 2012 12:09, alexkd <amstin.study@gmail.com> wrote:Although a lot of discussions can be found in this group . A beginner
not able to understand how to implement ajax in project. And also cake
php.org says Ajaxhelper is deprecated. I dont understand which is the
new usage
I am using 1.3 cakephp my problem is how to replace my calc div with
calculated fee amount when the patients select box is selected?
--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment