Results 1 to 7 of 7

Thread: Dragable Elements script

  1. #1
    Join Date
    Oct 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dragable Elements script

    I use this script and it works very good.
    I read this post http://www.dynamicdrive.com/forums/s...lements+Script
    I have the same problem as described in the post but I have to make something different.
    I have a php page and some images that are draggable using the Dragable Elements script. I would like to know if it is possible to store in a mysql db the position of the images dragged by a user that connetcs to this page.
    After that my goal is to have the same page loads the position of the images from this db so the next user who connetcs this page will view the images in the position chosen by the previous user.
    In other words my goal is to obtain that every user displays this page with the images positioned by a previous user.
    I hope I've been clear and I apologize for my bad english.
    Thanks
    Last edited by vgsangiuliano; 10-24-2006 at 05:39 PM.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Oct 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Sorry

    Title script: Dragable elements Script
    link: http://www.dynamicdrive.com/dynamicindex4/image3.htm

    I'll try to explain my goal better.
    I have my database with a 3 columns table. The columns are imagenumber (key) image_x_position an image_y_position.
    X_position and y_position columns have initial value set by me. These values are those who make possible to display the images in the php page in the default position.
    When a user reach via browser this php page, I need a php code that connects to this db, get the value of x and y of each image and display the page; really the first user who displays the page will view the images in the position set by me.
    Images are draggable so a user can drag them within the page.
    I also need a php code that overwrite the new x and y positions set by this user into the db so the next user who call the page via browser, will display a page different from the default one because images position is load from the db and it is equal to the position set by the previous user.
    Is it possible to reach this?
    thank you

  4. #4
    Join Date
    Oct 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help please

    Any suggest?

  5. #5
    Join Date
    Oct 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Any idea?

  6. #6
    Join Date
    Oct 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Someone can help even with some web link?

  7. #7
    Join Date
    Oct 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default hm

    maybe you can make a ajax xmlhttp-request and bind it with some kind of onRelease-mousebutton-event ("onmouseup"), which triggers a js-function parametrized by the actual x/y-coordinates, that dispatches them to the ajax-call. this call can then do any server-side activities like db-inserts/updates etc..

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
  •