I am trying to get the following requirement to work. I have a test page that has a Droppable area.
<%= drop_receiving_element(
"basket",
:onDrop => "function(element) { alert(element) }",
:url => { :action => "create" }
)%>
What I want to achieve, is to be ab开发者_开发技巧le to drop any links from another browser tab/window onto the Droppable and record that link. Bear in mind that these links will be arbitrary and out of my control so I can't decorate them as Draggable. Is this achievable or am I barking up the wrong tree?
TIA
Not possible I'm afraid. Two browsers = two doms. Maybe possible with google gears, silverlight, and java but not js.
http://www.w3schools.com/htmldom/default.asp
精彩评论