Wednesday, March 28, 2012

Re: Implement ajax with select box

Make use of the js helper . Its quite easy . But to get the full effect of ajax you should hard code it using javascript .
Sent from BlackBerry® on Airtel

-----Original Message-----
From: alexkd <amstin.study@gmail.com>
Sender: cake-php@googlegroups.com
Date: Wed, 28 Mar 2012 01:05:16
To: CakePHP<cake-php@googlegroups.com>
Reply-To: cake-php@googlegroups.com
Subject: Re: Implement ajax with select box

Any more in English ?

On Mar 28, 9:57 am, romel javier gomez herrera
<bmxquiksilver7...@gmail.com> wrote:
> see this componet
>
> http://phpyalgomas.blogspot.com/2012/03/selects-dependientes-para-cak...
>
> El 28 de marzo de 2012 00:08, Ryan Snowden <sicapi...@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 $.ajax
>
> > I 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.st...@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 sitehttp://ask.cakephp.organd 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
> >> athttp://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 sitehttp://ask.cakephp.organd 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
> > athttp://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: