Hello JJ,
Just to add to Alexey's post:
There are 2 possible solutions:
1) select everything for 2 listboxes at once, send all data to your JS as
2 arrays - one for the first listbox and second is the all values for your
selection in first listbox
2) Making async XmlHttpRequest, pumping the required info for the second
listbox. See intro for XHR there
http://www.codeproject.com/Ajax/AjaxExplained.asp
If the set of values is small the first case is preferable
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:
http://spaces.live.com/laflour
Team blog:
http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
JI want to have two lists (may have to be listboxes) on a page that
Jare populated from a database.
J>
JI then need to be able to click on an entry in one box and add it to
Jthe other, _preferably_ without refreshing the page.
J>
JIs this possible? Am I coming across another reason to venture into
JAJAX I wonder....
J>
JWhat controls should I use for the lists to allow selection, sorting,
Jetc (listbox?).
J>
JThanks in advance,
J>
JJJ
J>