Hi, I've noticed that CakePHP has an autoComplete helper, but I'm
having trouble figuring out how to make it work for my application:
http://book.cakephp.org/view/632/autoComplete
I have 3 controllers:
PracticeItems
PracticeInstances
PracticeSessions
A PracticeSession will have 1 or more
So I've looked further into this, and I tried the obvious solution
It seems that the items in $this-data are assigned a number from the
name field of the input element.
name=data[PracticeInstance][0][tempostart]
means the form will feed the data back as $this-
So I've looked further into this, and I tried the obvious solution
It seems that the items in $this-data are assigned a number from the
name field of the input element.
name=data[PracticeInstance][0][tempostart]
means the form will feed the data back as $this-
So I've looked further into this, and I tried the obvious solution
It seems that the items in $this-data are assigned a number from the
name field of the input element.
name=data[PracticeInstance][0][tempostart]
means the form will feed the data back as $this-
practice_sessions_controller.php:
http://pastebin.com/XHw37WS0
practice_sessions/add.ctp:
http://pastebin.com/Z5fGgfxV
practice_items_controller.php: (autoCompleteName)
http://pastebin.com/SLN72D4T
On 16 Apr, 19:38, Johnny Ferguson hyperfle...@gmail.com wrote:
So I've looked further into
digging through the DOM further, I notice that the autocomplete form
element creates a div after itself with
id=PracticeItemName_autoComplete. It has the same id for each
autocomplete form (which would explain why only one works), so I guess
my question comes down to:
How can I specify the name
I can edit the name of the helper div with the 'div_id' option, but it
doesn't seem to let both fields use the autocomplete function. At this
point, I'm not sure how to diagnose the issue any further.
On 16 Apr, 19:48, Johnny Ferguson hyperfle...@gmail.com wrote:
digging through the DOM further,