On 2/15/07, Christophe Porteneuve <[EMAIL PROTECTED]> wrote: > > > Hey there, > > A Droppable is just an area where Draggables can be dropped. You're > only setting up one end of the Drag'n'drop paradigm here: your text > selections do not become Draggable object by sheer force of will alone.
Daniel N a écrit : > > Just creating a Droppable doesn't do anything. > > It does half the work. Now do the other half. > > > Anyone have any ideas. Basically I want to highlight an area on my > > page and drop that, without explicitly setting it as a draggable. > > You need to react to mouse events on the text's container, capture the > text selection (a mighty feat, as it is widely inconsistent across > browsers), synthetize a <span> for it, style it, make it Draggable, > position it at mouse location, and initiate drag on it. > > In short, it's no picnic. But then, your need is advanced here, believe > it or not. > > -- I would certianly seem that this is advanced, even though it seems like a simple thing. I've been looking at this for the last few days, and I've managed to recognize the drop event from randomly highlighted text/things draged onto an element (div for safari and textarea for mozilla) but I can't easily access this as it seems to be on the clip board. Text inputs, regardless of browser seem to allow this kind of dropping of random stuff on them. I'm wondering how they do it? Christophe Porteneuve aka TDD > [EMAIL PROTECTED] Thanx for your help. Cheers Daniel --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---
