PDA

View Full Version : Double-click item to new listbox


VBScab
04-19-2006, 05:40 PM
I want to have 3 listboxes, one containing a list of team members, the next will contain a list of members chosen to be involved in an activity, and the last will contain a list of members who will be on stand-by for that activity.

I want to be able to double-click on list 1 and have that name (and listindex) popped into the other list. I also want to be able to double-click list 2 and have the name and listindex popped into the last box.

I'd like the update to be dynamic, if poss i.e. without having to refresh the page.

Doable? I'm not fussed about JS vs VBS but am much, much more proficient at VBS. If it's easily understandable and well-commented, JS is fine.

BonRouge
04-20-2006, 03:58 AM
Hi there.
I think I've put together something like what you want (maybe)...
Let me know if this is the kind of thing... http://bonrouge.com/test/testDB/

It's done with php, mysql and javascript...
I don't think I can explain it very well, but I know a man who can.

VBScab
04-20-2006, 04:25 AM
The look is exactly right. I can't do PHP, though: I have nil expertise in that area. I *may* have found something, though. I'm about to play with this http://www.javascriptkit.com/script/script2/picklist.shtml. It doesn't have double-click but I'm sure I could massage that in, even accounting for my hopeless JS skills.

Thanks for taking the time to reply. I appreciate it.

BonRouge
04-20-2006, 05:45 AM
You don't know any php? Not a problem. Maybe now's a good time to start. :)
Anyway, I've written the files already, I could just give them to you and show you what to do. using a database would be a lot more usable than javascript, because the results will stay there after you close your browser. just go back to the page and it looks the same as you left it.
Can I ask what this is for? Is it an in-house thing? Obviously, if it were public, you'd need passwords and on it.
If you have a database on your site that you can use, this would be pretty easy to implement. If you don't have one and this is in-house, you can easily install php/mySql here: http://www.apachefriends.org/en/xampp.html