SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict MrBaseball34's Avatar
    Join Date
    Sep 2002
    Location
    Round Rock, Texas
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help getting this to work

    I downloaded dragtable widget here: http://www.danvk.org/wp/dragtable

    I am using only the headers as a kind of column configuration tool for CSV
    file import configurations.

    The problem I'm having is when I read the values in from the database, it
    doesn't restore the layout to the stored layout. It seems that using the
    moveColumn function is where the problem lies. If I have a layout where
    column 2 is moved to column 5, when I try to restore that layout, column 2
    is moved to column 5, just fine, but when I am going to move column 5, it
    takes the old column 2 and moves it to the place that the old column 5 was
    supposed to go. Try the code and you'll see what I mean.

    Here is a demo url: http://www.listinventory.com/dragtable/draggable.html

    I have hard coded a user_id in the userFileFormat script so you will get/set
    valid values. Instructions are shown in the HTML.

    The ajax part is not the problem, it works exactly like I want to store and
    retrieve the correct values. The problem is in the dragtable code in how it
    restores the positions.
    MrBaseball34
    Hook'Em Horns!

  2. #2
    SitePoint Addict MrBaseball34's Avatar
    Join Date
    Sep 2002
    Location
    Round Rock, Texas
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Went another direction. Using a sortable/draggable from the jQuery demos.
    MrBaseball34
    Hook'Em Horns!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •