R
Richard Maher
Hi,
I've been interested in the recent thread on Event Delegation and thought I
had an immediate use for it with a <select> list that I build on-demand at
run-time. One problem, as many others have discovered before me, is that IE
and Safari aren't big on mousover events sourced from <option> tags :-(
So I can: -
a) Stick to only onclick events in the select list
or
b) Use a List or Table or (a.n.other) html construct that supports
onmouseover, and gives me drop-down menu functionality.
.. What I'd like to achive is achieve the Google-Suggest-esque functionality
on various input fields.
.. I retrieve the options one row at a time via a Java Socket and would like
to leverage the option-level granularity if I can. (IOW a progressive
population of the options rather than an innerHTML squirt or such)
.. I don't want to use someone else's JS library or widget
.. This is just by way of example and it doesn't have to be swish
.. If it is something other than "suggest.options[suggest.length] = new
Option(foo, bar)" then please assist with any performance tips on
cloning/replacing the table or the most optimum way to append/delete child
nodes
Cheers Richard Maher
I've been interested in the recent thread on Event Delegation and thought I
had an immediate use for it with a <select> list that I build on-demand at
run-time. One problem, as many others have discovered before me, is that IE
and Safari aren't big on mousover events sourced from <option> tags :-(
So I can: -
a) Stick to only onclick events in the select list
or
b) Use a List or Table or (a.n.other) html construct that supports
onmouseover, and gives me drop-down menu functionality.
.. What I'd like to achive is achieve the Google-Suggest-esque functionality
on various input fields.
.. I retrieve the options one row at a time via a Java Socket and would like
to leverage the option-level granularity if I can. (IOW a progressive
population of the options rather than an innerHTML squirt or such)
.. I don't want to use someone else's JS library or widget
.. This is just by way of example and it doesn't have to be swish
.. If it is something other than "suggest.options[suggest.length] = new
Option(foo, bar)" then please assist with any performance tips on
cloning/replacing the table or the most optimum way to append/delete child
nodes
Cheers Richard Maher