I finally came up with a solution. I don't know if this is the best
solution but it looks like it will work. Will comment back in a day or
two if i remember =)

$js->get('#FacilityFacilityName')->event('keyup', $js-
>request(array('controller'=>'users','action'=>'update_facility'),array('update'=>'#facilitylist','dataExpression'=>true,'data'=>
$js->serializeForm(array('isForm' => false, 'inline' => true)) )));

On May 4, 11:05 am, cguyer <[email protected]> wrote:
> how do i pass the data of the input box to the function? not even sure
> $js->request is what i should use for this. Ideas is that as a person
> types in a textbox, it does a search and updates a results div. help
> =D
>
> //form element
> echo $form->input('Facility.facility_name',array('size'=>'40','label'=>'Name 
> or
>
> Address'));
>
> //Old Ajax Helper
> echo $ajax-
>
> >observeField('FacilityFacilityName',array('update'=>'facilitylist','url'=>'update_facility','frequency'=>'1'));
>
> //New Ajax Helper
> $js->get('#FacilityFacilityName');
> $js->event('keyup', $js->request('/users/
> update_facility',array('update'=>'#facilitylist','data'=>???)));
>
> On May 3, 2:18 pm, cguyer <[email protected]> wrote:
>
>
>
> > i'm also trying to figure out this myself, hacking through the new
> > help and learning jquery. any help would also be appreciated.
>
> > On Apr 30, 2:38 pm, Celso <[email protected]> wrote:
>
> > > Hi ! I want using the new JSHelper with Jquery, i need create a
> > > observeField to fill a combo with another combo that changed
>
> > > Thanks!
> > > Celso
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers 
> > > 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 
> > > athttp://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 
> athttp://groups.google.com/group/cake-php?hl=en

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