changing track numbers

Discussion in 'ASP General' started by shank, Nov 13, 2005.

  1. shank

    shank Guest

    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!
     
    shank, Nov 13, 2005
    #1
    1. Advertising

  2. shank

    Guest

    <<
    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 14, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Subra
    Replies:
    25
    Views:
    1,193
    user923005
    Mar 8, 2007
  2. Andrew Tatum

    Fibonacci Numbers and Lucas Numbers

    Andrew Tatum, May 26, 2007, in forum: C++
    Replies:
    6
    Views:
    565
    Howard
    May 27, 2007
  3. Lance Hoffmeyer
    Replies:
    2
    Views:
    524
    Lance Hoffmeyer
    Jul 26, 2007
  4. Aaron Beall
    Replies:
    2
    Views:
    1,817
    Aaron Beall
    Sep 14, 2007
  5. jko170
    Replies:
    9
    Views:
    126
    jko170
    Jan 21, 2009
Loading...

Share This Page