my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes Reordeing elements in a scrollable list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Reordeing elements in a scrollable list " Watch "Reordeing elements in a scrollable list " New topic

Reordeing elements in a scrollable list

anand tiwari

Joined: Jun 22, 2007
Posts: 22
As per my applications requirement, I have a jsp page displaying a combobox titled 'Quiz'. Selecting any element in the combo will populate another combobox named ''Questions in the list".

As per the new requirement, in need to allow reordering of question elements .
i.e. a user can do the reordering using drag-drop of elements. For this i need to use a scrollable list as the number of questions in the list may vary.

Can someone please help me in this? are there any opensource projects available for this? I tried searching but could not find any. Its possible when i am using a simple list without scroller, but i need to have a scroller also and the reordering needs to be done using drag-drop

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Scriptaculous is a set of Javascript libraries that help with drag and drop functionality in browsers. If you search on Google with "scriptaculous" and "drag and drop" as keywords, you should find some examples.

I'm going to move this to our HTML/Javascript forum since this is a client side issue.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
anand tiwari

Joined: Jun 22, 2007
Posts: 22
Hi Ben,

Thanks a lot for your advice, i did find some good examples in scriptaculous, but the problem is that the list i want should be a scrollable list, the examples there does not show scrollable lists
any suggestions on that?

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
what is a scrollable list ul-li or a select element?

Rajesh Rathod

Joined: Aug 01, 2007
Posts: 24
my problem is the same as what anand posted. I want to show a scrollable list with reordering supported. The list can be a ul-li or a select element any of them. In Scriptaculous i was able to find reordering of lists but i want to have a scrollable list here as the number of elements can exceed the page size. Any suggestions on this please?

Rajesh Rathod<br />SCJP 1.4
I agree. Here's the link:
subject: Reordeing elements in a scrollable list
It's not a secret anymore!