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

changing track numbers

Imagine a CD of say 20 songs
Each song is a table row

[Title] [Artist] [TrackNo]

I need a way for the user to change the way the songs are listed by allowing
them to change the track numbers. What is the smartest way to do this? I
think it would be kind of trick to have a couple of <IMG> up and down arrows
per each song. The user would click on either the up or down arrow to move
the song accordingly. But I don't know how to go about that. Whatever
variables are passed, the process would have to check to see if there is
another track# +/- 1 each time. Then of course insert new values for maybe 2
or more records.

Then I thought maybe it would be easier to just list the songs with a form
box next to each song where the user manually entered the desired order,
then submit the form. But that also has it's share of issues like checking
for existing track numbers, users who can't count, etc.

What would be the smartest way?
thanks!
Nov 22 '05 #1
1 1438
<<
Imagine a CD of say 20 songs
Each song is a table row

[Title] [Artist] [TrackNo]

I need a way for the user to change the way the songs are listed by
allowing
them to change the track numbers. What is the smartest way to do this?
I
think it would be kind of trick to have a couple of <IMG> up and down
arrows
per each song. The user would click on either the up or down arrow to
move
the song accordingly. But I don't know how to go about that. Whatever
variables are passed, the process would have to check to see if there
is
another track# +/- 1 each time. Then of course insert new values for
maybe 2
or more records.
Then I thought maybe it would be easier to just list the songs with a
form
box next to each song where the user manually entered the desired
order,
then submit the form. But that also has it's share of issues like
checking
for existing track numbers, users who can't count, etc.

What would be the smartest way?
thanks!


I'd probably have a listbox by each track with track numbers 1 through
whatever. And I'd also have some kind of validation so that track
numbers are not doubled or skipped.

Nov 22 '05 #2

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

Similar topics

8
by: hokiegal99 | last post by:
I don't understand how to use a loop to keep track of user input. Could someone show me how to do what the program below does with a loop? Thnaks! ---------------------------- #Write a...
9
by: bissatch | last post by:
Hi, Is it possible to change the class style of an HTML element using DHTML? For example... <td class="my_class">Text</td> I have used DHTML to change style elements such as backgroundColor...
16
by: StenKoll | last post by:
Help needed in order to create a register of stocks in a company. In accordance with local laws I need to give each individual share a number. I have accomplished this by establishing three tables...
4
by: KK | last post by:
Hi All... For my purpose, I need to handle listbox selection changed event.I must be notified before changing occurs and after.After I can handle using SelectedIndexChanged event.Is there anyway...
5
by: cover | last post by:
After a while of deleting records in a MySQL db, there gets to be the gaps in the id numbering system. i.e. 1, 2, 3, 6, 7, 12, and so on. Is there a way to renumber the id system in a table for 1,...
5
by: sparks | last post by:
We have a database with 1600+ records in it. They are linked across 7 tables by an ID type autonumber. Now we want(not I want LOL) to remove the first 1200 records no problem but they also...
2
by: all eyes | last post by:
hi all, i am using here JTextField to get sum of all previously pressed numbers in one button called (+) and so on. there is only one button take care of addition and displaying the result in the...
8
by: richard | last post by:
I have <div id=box1 style="display:block"as the initial setting. I need to change the "display:block" to "display:none" then back to "display:block" as a means of clearing anything that might be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.