This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Reordeing elements in a scrollable list " Watch "Reordeing elements in a scrollable list " New topic
Author

Reordeing elements in a scrollable list

anand tiwari
Greenhorn

Joined: Jun 22, 2007
Posts: 22
Hi,
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

thanks
Ben Souther
Sheriff

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
Greenhorn

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?

Thanks
Eric Pascarello
author
Rancher

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

Eric
Rajesh Rathod
Greenhorn

Joined: Aug 01, 2007
Posts: 24
Hi,
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reordeing elements in a scrollable list
 
Similar Threads
combobox value is not changing
drag and drop
how to drag a table and drop it on a tree in java
varying JTable Row Height, not Homogeneously
Need Input on Drag and Drop Feature feasibility in - Groovy on grails