On Wed, Nov 17, 2010 at 09:01, petrob <petrob...@yahoo.com> wrote:

> Why don't you put the evaluation part in a separate function within
> the scope of handleVehiclesClick and call it with some delay (100ms)
> to decide what and how many option elements  to select?

That is of course a common solution to such problems, and I use it
myself a lot, but I always have a nagging worry in the back of my
head: Is that really a clean and safe method?  I pick a delay time,
e.g. 100ms, out of thin air and then test if it works ... for me, in
my browsers, in my computer, today, here. But will that be so for
every user everywhere? Perhaps those 100ms will not be enough for
someone using an old computer with MSIE6, or on a computer with lots
of malware that sucks all the resources, or for someone who is
compiling the Linux kernel while browsing, or... So maybe 500ms, or
1000ms, or... How do we test? How do we make sure?

There must be a better way. Or not?

Nothing to do with Prototype or scriptaculous, I know, but still...

-- 
Bertilo Wennergren
berti...@gmail.com http://bertilow.com

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to