Thomas Wacher - 2005-02-23 19:48:46
Hi!
The class is cool, but i have three notices.
1) User can't use arrows. Why not? :(
2) If i have more than one autofill field then the base javascript code is dowloaded for all.
I recommend for you don't use distinct object for each field, but use one object for all field. Add a new method ex. ResetID().
$AF = new AutoFill();
$AF->ResetID("beatles");
$AF->addOption("Paul McCartney");
...
$beatles = $AF->create();
$AF->ResetID("michaels");
$AF->addOption("Michael Jordan");
$AF->addOption("Michael Jackson");
...
$michaels=$AF->create();
and so on.
3) $this->value isn't $this->options?
BR,
Tamás