Tuesday, May 31, 2011

How do I get prototype to

Hi

I've a search page which allows users to search through a table of
charities. Each charity has one or more tags attached to it. As a
search alternative I'd like a list of the tags (there are only 20 or
so) with a checkbox for each where if someone checks one or more boxes
then only the charities with those tags appear in the list.

So I've made the list and been advised that I should use
'observerform' call on the page that runs whenever the form is
changed'

I've googled observerform but haven't been able to figure out what
exactly to do since I'm totally new to javascript.

Can anyone give me a bit of a road map on how to do this? I don't get
how to attach the javascript to the form and how to make it call a
function to run the query

I did find http://stackoverflow.com/questions/2417542/how-can-i-implement-a-js-observer-which-will-observe-multiple-fields
which has a bit of javascript which might help but from what I've
learned about cakephp there is probably a much better way of doing
this.

--
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: