Yes the scripts are included and loaded, component added to
controller...still nothing

-----Original Message-----
From: John Andersen [mailto:j.andersen...@gmail.com] 
Sent: April-03-09 3:28 AM
To: CakePHP
Subject: Re: Autocomplete


Did you include the javascripts libraries Prototype and Scriptaculous in
your page?
Also it looks to me, that autocomplete wants the model and field name as
'Country/name', not as 'Country.name' - according to the tutorial, but it is
old, so it may have changed!
Enjoy,
   John

On Apr 3, 1:50 am, "Dave Maharaj :: WidePixels.com"
<d...@widepixels.com> wrote:
> I am trying to use autocomplete in my user profile for Country names 
> stored in the Countries Table. Users and Countries are related...I 
> have the ugly drop down there now but want to use the auto complete
feature.
>
> I have followed the tutorial 
> onhttp://cakebaker.42dh.com/2006/06/06/autocompletion-the-easy-way/but get
nothing.
>
> view:
> echo $ajax->autocomplete('Country.name');
>
> renders:
> <input id="Countryname" type="text" value="1" autocomplete="off"
> name="data[Country][name]"/>
>
> But nothing happens.
>
> What am i doing wrong.
>
> var $components = array('Autocomplete');
>
> var $helpers = array('Html', 'Javascript', 'Ajax');
>
> Added
>
> Dave


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to