Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reordeing elements in a scrollable list

 
anand tiwari
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
anand tiwari
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is a scrollable list ul-li or a select element?

Eric
 
Rajesh Rathod
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic