PHP Classes

Base javascript

Recommend this page to a friend!

      AutoFill  >  All threads  >  Base javascript  >  (Un) Subscribe thread alerts  
Subject:Base javascript
Summary:Base javascript sent to client more than once
Messages:1
Author:Thomas Wacher
Date:2005-02-23 19:48:46
 

 


  1. Base javascript   Reply   Report abuse  
Picture of Thomas Wacher 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