Women in Technology

Hear us Roar



Article:
  Ajax on Rails
Subject:   Problems with draggable_element
Date:   2006-04-21 04:28:40
From:   pjazzlg
I am playing around with the Ajax function draggable_element in Ruby
and having an interesting problem. I have the revert option set to true
(:revert=>true), The element I want to drag is dragged successfully,
but I cannot get it to stop dragging unless I double-click.
Once it stops dragging, it does not revert to its original position,
but remains where it was located at the time of the double-click.


Not sure what to look for next. Any help will be appreciated.


Thanks

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Problems with draggable_element
    2006-05-03 06:38:39  kysen [View]

    Hi,
    I used the sample code from the cart shop demo (http://demo.script.aculo.us/shop) and found the same problem than pjazzlg. What is amasing is that I did an new test application using "draggable_element" over a component which worked yesterday. But now the element is sticked to my mouse and I need to double-click to stop the dragging!! Did I miss something or is there a bug??
    • Problems with draggable_element
      2006-05-04 01:16:37  kysen [View]

      I decided to change the port default number (from 3000 to 3001) and eveything works well...can not explain why...
  • Curt Hibbs photo Problems with draggable_element
    2006-04-21 06:06:40  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    I can't give you a specific answer, but I can report that draggable_element is working for me.

    What you might want to try is to take the code from one of the demos that use draggable_element and then start modifying it to become more like what you want, while testing after each step to make sure it still works.

    You can find them here:

    http://wiki.script.aculo.us/scriptaculous/show/HomePage