Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2006
    Location
    India
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Drag drop and save

    Hi all,
    I have 4 images and they are showing besides each other and their path is stored in database.can i change there order just drag and drop and then save this order using javascript and php. If any one have done anything iin this matter,please reply.

  • #2
    New Coder
    Join Date
    Jan 2006
    Location
    Oslo, Norway
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Take a look at this:
    http://www.brainjar.com/dhtml/drag/

    You could containt the images in div tags, and use this Javascript to move them around (you should just allow them to be dragged inside a given area). Then you can get the offset to the divs to see where they are positioned acording to each other.
    DrÝmmejenta: Kristen jente som progger Python!


  •  

    Posting Permissions

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