Hi Christophe,

Many thanks for your help, with the above information I was able to do
exactly what I needed to.  I was really just missing the information
on  the _myDraggable handle.  So thank you for all your help, it was
VERY useful indeed.

I do now have another slight problem, but I'm not sure if this is a
query for a new thread or to be continued here, so initially I'll post
it here.

Now I have used the above and I have my HTML page, with javascript
loading nodes from an xml file and creating divs dynamically, removing
and creating draggable divs as required etc.  It's working fine from
that perspective.  I have a text area on the right side of the screen
(TinyMCE but that is irrelevant in this issue) and a scrollable div on
the left side of the screen which the clippings divs are loaded into.
After a little bit of experimentation I am now able to load my
clipping divs into the scrollable div and then drag my clipping divs
from the scrollable div to the text area and update it.  So that was
my initial goal.

The only problem I have is that if I scroll down within my scrollable
div for a clipping and I then drag it, for a split second when I begin
to drag I see the ghost image loaded further down the page (i.e. the
location it would have been when the div was registered as a draggable
item), then it quickly updates and I'm able to drag it etc.  I am
using the following settings when creating my draggable divs:

        obj._myDraggable = new Draggable(obj,{revert:true,ghosting:true});

It is the ghost that is the problem, if I turn the ghosting off then
there is no problem.  I can drag from where the item is in the
scrolling div and there is no unexpected behaviours.  However I think
the ghost is required if possible as it provides exactly the look/user
experience I had in mind.

The thing is it just looks as though there is something wrong with it
for a split second from a user point of view.  I'm wondering if there
is anyway I can prevent this from happening, maybe by hiding the ghost
while it recalculates the position initially then displaying it?

I have read a few posts on the group with people talking about similar
issues, this thread specifically deals with a similar issue:

http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/4dbfa19d13742485/1c0c4d6082299ccf?lnk=gst&q=drag+scrolling&rnum=2#

I hope I've explained myself properly.

Does anyone have any ideas how I might go about resolving this issue?

Any help would be much appreciated.

Thanks again

Mark


--~--~---------~--~----~------------~-------~--~----~
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