473,416 Members | 1,778 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,416 software developers and data experts.

Drag and drop table columns

VA
There are a lot of excellent drag-n-drop Javascript libraries available
out there

http://script.aculo.us/
http://www.walterzorn.com/dragdrop/dragdrop_e.htm
http://www.youngpup.net/2001/domdrag/tutorial
http://tool-man.org/examples/sorting.html

Yet, I am having a hard time finding a good demo of re-ordering HTML
table columns by drag and drop. List items, yes, but not table columns.

Can someone point me to a few demos?

Thanks

Nov 9 '05 #1
4 23218
VA
Bump. Thanks.

Nov 10 '05 #2
VA
Is this really that difficult? I am really not finding any good
examples of this. Is this not the right newsgroup for this question?

Thanks

Nov 11 '05 #3
VA wrote:
Is this really that difficult?
Quite. What you have overlooked is that there is no such thing as a
column in the usual sense in an HTML table. There are rows that have
cells which can span several rows or columns, i.e. the cells form the
columns. Now to move columns, one has to determine what a column is.
Iff all rows have the same number of cells, i.e. no cell spans over
more than one column and row, at least the remove/include part should
be easy with W3C DOM 2 Core insertBefore(). If not, it is rather
difficult.
I am really not finding any good examples of this.
Why don't you bother trying to write one yourself, and then post your
approach (whether working or not)?
Is this not the right newsgroup for this question?


It's the right group but perhaps the wrong attitude on your part.
PointedEars
Nov 11 '05 #4
VA
Thomas 'PointedEars' Lahn wrote:
Iff all rows have the same number of cells, i.e. no cell spans over
more than one column and row, at least the remove/include part should
be easy with W3C DOM 2 Core insertBefore()
Yes, I am referring to simple HTML tables with 1 cell occupying one
column in 1 row. No spanning.

I received some quality help from this group regarding moving table
columns around at
http://groups.google.com/group/comp....a7ebdd20d2589e

So I am comfortable with the insertBefore and stuff, it is the dragging
and dropping that I am requesting help with.
Why don't you bother trying to write one yourself, and then post your
approach (whether working or not)?


I dont know where to begin. I am new to drag/drop stuff, can you get me
started please?

For instance:
1. As the mouse is moving, how would I know which column it is moving
over?
2. When the mouse is released, how to determine which column it is
dropped on?

Thanks

Nov 23 '05 #5

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

Similar topics

1
by: portraitmaker | last post by:
I found some drag and drop code on the web and modified it a little b taking out some of the stuff I didn't need. This sample allows you to drag an image in a table to another positio and swaps...
6
by: Dave | last post by:
I am trying to implement drag and drop in a C# app, but for some reason I can't get it to call the GiveFeedback event. I have done everything by the book as far as I can tell, but a breakpoint in...
11
by: Greg P | last post by:
I'm using VB 2005, and have drug and dropped datagridviews onto my form. The default code that is generated for inserts tries to insert a value for the auto generated primary key. Below is the...
14
by: maya | last post by:
I need a drag-n-drop script.. I have found one here.. http://javascript.internet.com/page-details/drag-n-drop.html each div containing an image has an id, and each image has a name, as in ...
17
by: Romulo NF | last post by:
I´ve seen some people around the web wondering about a code to reorder table columns using the mouse (drag and drop). Since i had already made one script to reorder table lines (TR´s) i decided to...
0
by: Romulo NF | last post by:
I´ve recently posted a script to move columns from a table using drag and drop javascript. Recently i´ve received a message of a user of this communty showing interest in the script to move lines...
1
by: archrajan | last post by:
I would like to have a script that can drag/drop table columns. and show/hide table columns. any help is appreciated. thanks in advance.
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.