I trying to do some actions at the end of a drag, but this seems not
to function correctly.
My action get called but the actual end of the drag is not finished
correclty anymore.
The color is still not with full opacity and the dragable still is not
deactivated meaning it will go to the last mouse positions  (in this
case were you click the alert box)

It works in safari but not in firefox 2.0.0.6 as a check my version
correctly.
Does somebody know a solution?



See my example case below:
first making a div, than make it draggable, then adding an obserser to
draggable.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <link href="/stylesheets/scaffold.css" media="screen"
rel="stylesheet" type="text/css" />
  <script src="/javascripts/prototype.js" type="text/javascript"></
script>
  <script src="/javascripts/effects.js" type="text/javascript"></
script>
  <script src="/javascripts/dragdrop.js" type="text/javascript"></
script>
  <script src="/javascripts/controls.js" type="text/javascript"></
script>
  <script src="/javascripts/application.js" type="text/javascript"></
script>
</head>
<body>

  <div id='adiv' style='cursor:move; background-color:red;
position:absolute; top:40px; left:200px; width:100px; height:100px;'>

  </div>

    <script type="text/javascript">
    new Draggable('adiv');
    Draggables.addObserver({onEnd:function(eventName,draggable,event)
{alert('not OK')}})
    </script>

</body>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to