HTML_AJAX, QuickForm_Livesearch and magic methods
| From: | thesee at fastwebnet dot it | Date: | Sun, 25 Jun 2006 09:30:06 +0000 |
| Subject: | HTML_AJAX, QuickForm_Livesearch and magic methods | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-43101@lists.php.net to get a copy of this message | ||
Hi all.
I'm extensively testing and using HTML_QuickForm_Livesearch.
The integration with HTML_AJAX works good.
But in the normal use there is a limit.
I dont know if its a my fault...
I'm trying to set a large number of livesearch elements in a form.
It work great.
Every element has an id which is used as target.
Every id call a method of a class 'livesearch.class.php' (as you can see
on the example in HTML_AJAX or QF_Ls release)
The problem is:
When I have a large number of elements, i must set for each element an unique
id.
for each id (target) there is a method on the php livesearch class.
So if i have 100 element and every element do the same search search(methods)
i must write down 100 equal methods.
so, I'm working with PHP5...well.....can I use magic methods? __call __get?
I tryed it but seem that the AJAX class ignore this magics methods.
Some tips?
Thank you very much
Regards
Giuseppe Dessì