473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Drag Drop Re-ordering

Hi,

I am having problems using drag drop and re-ordering items.

Example:
When I drag and item from position 1 and drag it to position 3, I want
to re-order all the items accordingly. This means an item in position
1 is now is position 3 and item 2 is now in postion 1 and item 3 is in
position 2 and position 4 and 5 stay the same.
I have searched the web.

I am need to code this in a jsp page. The searches I have found either
give me partial source code or no source code.

Does anyone have source code for this to run on a jsp page???

Thanks
Simon

Oct 10 '05 #1
3 1900
Lee
si********@hotmail.com said:

Hi,

I am having problems using drag drop and re-ordering items.

Example:
When I drag and item from position 1 and drag it to position 3, I want
to re-order all the items accordingly. This means an item in position
1 is now is position 3 and item 2 is now in postion 1 and item 3 is in
position 2 and position 4 and 5 stay the same.
I have searched the web.

I am need to code this in a jsp page. The searches I have found either
give me partial source code or no source code.

Does anyone have source code for this to run on a jsp page???


How do you imagine that a "jsp" page differs from a "Notepad" page?
If you're asking for client-side Javascript, it doesn't matter at
all how the page was created. If you're asking for something else,
you're in the wrong newsgroup?

Oct 10 '05 #2
si********@hotmail.com wrote:
Hi,

I am having problems using drag drop and re-ordering items.

Example:
When I drag and item from position 1 and drag it to position 3, I want
to re-order all the items accordingly. This means an item in position
1 is now is position 3 and item 2 is now in postion 1 and item 3 is in
position 2 and position 4 and 5 stay the same.
I have searched the web.

I am need to code this in a jsp page. The searches I have found either
give me partial source code or no source code.

Does anyone have source code for this to run on a jsp page???


I have responded to your original thread with some sample code based on
what I think you were trying to do. Looks pretty messy, browsers have
drag 'n drop natively - what's the point?

--
Rob
Oct 10 '05 #3
si********@hotmail.com wrote:
Hi,

I am having problems using drag drop and re-ordering items.

Example:
When I drag and item from position 1 and drag it to position 3, I want
to re-order all the items accordingly. This means an item in position
1 is now is position 3 and item 2 is now in postion 1 and item 3 is in
position 2 and position 4 and 5 stay the same.
I have searched the web.

I am need to code this in a jsp page. The searches I have found either
give me partial source code or no source code.

Does anyone have source code for this to run on a jsp page???

Thanks
Simon

While this demo was done for a somewhat different application, the drag
and drop code can be modified to do the "insertion" rather than "item swap".
http://demos.klproductions.com/sandb...tquizdemo.html

.... and as it was already mentioned, you are asking for a client side
application, therefore it does not matter how the client code is
produced as long as it is valid...

--
Vladdy
http://www.klproductions.com
Oct 11 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Lauren Quantrell | last post by:
I'm trying to drop a file from Windows Explorer (or desktop, etc.) onto a field in Access2K and capture the full file path. I found an posting below that says this is possible but I cannot...
2
by: SamSpade | last post by:
There seems to be two ways to put things on the clipboard ( I don't mean different formats): SetClipboardData and OleSetClipboard If I want to get data off the clipboard do I care how it was put...
3
by: Ajay Krishnan Thampi | last post by:
I have a slight problem implementing 'drag and drop' from a datagrid to a tree-view. I have pasted my code below. Someone please advice me on what to do...pretty blur right now. ==code== ...
6
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
3
by: VB Programmer | last post by:
In VB.NET 2005 (winform) any sample code to drag & drop items between 2 listboxes? Thanks!
0
by: ViRi | last post by:
I am currently experimenting a bit with AxMicrosoft.MediaPlayer.Intero­p.AxWindowsMediaPlayer and so far, most has gone well. Currently, i would like to add drag-and-drop functionality to the...
1
by: Darren | last post by:
I'm trying to create a file using drag and drop. I want to be able to select a listview item drag it to the shell and create a file. Each icon in the listview represents a blob in a database. When...
2
by: Robert Zahm | last post by:
I have created a C# user control which display certain filesystem information, and allows the user to drag an drop files into and out of the control. I then placed this user form in IE using an...
0
by: RHSFSS | last post by:
Hi, I have a Drag and Drop registration problem (See http://www.thescripts.com/forum/thread434707.html for similar problem post), can anyone out thereadvise on the best solution? I have a .NET 2.0 ...
5
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.