search for: onend

Displaying 20 results from an estimated 25 matches for "onend".

Did you mean: fnend
2006 Jan 13
1
Capturing the position of a draggable element
I would like to capture the position of a draggable element after it''s being dragged, but I am running into problem using several options, such as "change", "revert" and "onEnd". My callback handler would only fire when the page loads, and not when the element is dragged. How can I make this happen? <html> <head> <script src="/scriptaculous-js-1.5.1/lib/prototype.js" type="text/javascript"></script> <script src=&q...
2005 Jul 01
1
drag problem
Hi - my first post here so first of all can I say how impressed I am with this library Now to my first question - I''m simply trying to make a div draggable, here''s my test page: http://localhost:85/folio11.co.uk/js_tech_demo/scriptalicious_test.html what seems to be happening is that the first drag works fine, but on subsequent drags the div''s initial coordinates
2006 May 28
10
Drag''n''Drop out of overflow:auto containers
Cheers, I have some elements inside a div with overflow:auto. When I trie to drag them outside of the div, the div starts to scroll. Is there a way to stop this behaviour for drag and drop? I thought of maybe using callback to disable the overflow and restoring it againg after the drop. Did someone implemented something like this? Thanks, Jonathan -- Jonathan Weiss
2007 Feb 12
0
Scriptaculous - extending draggable via sortable
Hello, I have created a Yahoo style Drag and Drop using Scriptaculous Drag and Drop. I have hooked my custom functions to the Drag and Drop using the following code: new Draggable(element, {revert:true, ghosting:true, handle: handle, onStart: CollectionDragDrop.dragStart, onEnd: CollectionDragDrop.dragEnd, onDrag: CollectionDragDrop.dragMove, reverteffect: CollectionDragDrop.revertEffect}); Now besides making the rows Draggable I want them to be sortable. But I am not able to pass on the onEnd, onStart hooks without modifying the scriptaculous code....
2006 Oct 27
16
Returning coordinates of a draggable?
How difficult would it be to get the x and y coordinates returned of a draggable? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to
2008 May 29
4
Drag/Drop finding droppable's properties?
...the droppables, unless someone can point me in the right direction? I am building the draggables as follows: var aproducts = document.getElementsByClassName(''box''); for (var i = 0; i < aproducts.length; i++) { new Draggable(aproducts[i].id, {ghosting:false, revert:true, onEnd:endItem}) } Any help would be greatfully received, Thanks, James. --~--~---------~--~----~------------~-------~--~----~ 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-/...
2005 Jul 25
5
dragdrop.js: drop from sortable
I have a Sortable that''s working like a charm, but now I would like to be able to drop objects from that Sortable onto a Droppable that''s not part of my Sortable. I just did a small test page where it didn''t work, so my first question has to be "is this supposed to work?", before I dig too deep into it. "accept" for the droppable is set to the
2005 Oct 14
6
Draggables onDragStart
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 1027 bytes Desc: image001.gif Url : http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20051014/b3c26edf/attachment.gif
2006 Jun 14
5
Sortable Tree - Stoping Event dispatch ?
Hi, I''m trying to play with sortable tree and have two issues: I have an AJAX Tree looking like: <ul class=''TreeCat'' id=''work''> <li class=''open''> <img src=''s.gif'' class=''node'' onclick="Ajax.Tree.toggle(event,this);"/> <a
2006 Feb 27
11
Disabling anchor clicking in a draggable
Hey guys I have an interesting problem - I have some draggable elements (sortable actually), with links (<A>) inside them. I want the user to be able to click on the link, however if the user drags the element I don''t want the link to get fired. Can anyone think of a way to do this? It only needs to work in Firefox. Cheers -Rob
2007 Sep 28
1
drag and drop reset
I have a draggable, and I place it on a droppable. How do I make the draggable go back to its original postion? Thanks. -Tim --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
2008 Jul 01
0
Draggable item absolutely positioned inside relative div
...t made the elements draggable, when I got to the boundary of the portal, the elements would disappear on the inside. I solved this by moving the element to the portal''s parent container in the onStart handler (while keeping track of the original container so that I could put it back on the onEnd handler. The problem I encountered was when I was dragging elements that required me to scroll down on the inner container. When they came out of the portal, their "top" property was set relative to the inner container. For whatever reason, the event passed to me didn''t contain a...
2006 Aug 18
1
Possible to ''Reset'' sortable?
Hi all, I have a sortable list (tree) that interacts with various droppables. [List 1] [List 2] [List 3] [List 4] [Drop here 1] [List 5] [Drop here 2] Now, on dragging [List 2] and dropping it on [Drop here 2] a certain action takes place. I then want [List 2] to return to its original location. However, it returns to the list below [List 4]. So, any ideas how I can get it to
2006 Jul 17
0
Sortable
Is there a way to know what is the ID of the element during the onUpdate handler? I''ve seen in Draggable and the notify(''onEnd''9 function, but I''m not able to register an handler on this function. Tkz! Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
2006 Apr 06
1
RE: Drag and drop events. Or: How I learned to takeover the world.
You should open up dragdrop.js in the scriptaculous directory and take a look at the interface for Draggables/Draggable. There is an event for dragStart, dragging, and dragEnd (not by those exact names but you should see them)... sorry I can''t offer more help than just pointing you in the right direction... very busy. Good luck, nice start! The information transmitted in this
2006 Jan 17
0
Draggables notifier
I have a request for the keeper of the scripts (Thomas?)... In the Draggables var, I think the onStart and onEnd notify events should be named more descriptively. For instance onDragStart and onDragEnd. This would alleviate a possible place for namespace collisions where other custom classes might use a similar notify schema (although I would adamantly recommend all such classes also use descriptive notif...
2005 Aug 12
1
Ghostly bug in sortables
When a sortable has ''ghosting'' enabled, it seems to include the dragged element twice in the list which is submitted in the onUpdate AJAX request. By the looks of it, it''s appended onto the end of the list when Sortable.serialize is called. IE in the following list: - 1 - 2 - 3 If I drag 3 to be at the top, what we expect is: [3, 1, 2] What we get is: [3, 1, 2, 3]
2008 May 30
1
Drag and Drop with scriptaculous
Hello, I''m making my first steps with prototype and scriptaculous. I''m playing around with drag and drop. What I try to do: I have some Draggables and some Droppables. You can drag each Draggables to each Droppables. When I drop a Draggables I want to center the Draggables inside the Droppable. And here I get my first problems:-( I use this code: Droppables.add(
2011 Sep 20
3
Adding a data in Live OR Saving Stream on Server side.
...cecast server and It will save my audio on server. So this way I will get a file. I can add this ogg file in HTML5 audio element and after loading the audio metadata in client I can set position of seekbar to the end of the playback. I do not know if this will work out because I have to handle the onended function in a smart way. Do you how I can accomplish my task ? Let me know I can explain more, My English in not good. -- ??????????????????????????? ?? ? Narendra Sisodiya ?? ? http://narendrasisodiya.com ???????????????????????????
2006 Jun 14
5
generic onDragStart onDrag and onDragFinish events extracted from scriptaculous?
Hi folks. I''m working on a project where I need some drag and drop, but I need to implement what happens in a very different way, so I''m creating my own class for it. I don''t want to reinvent the wheel and redo Thomas'' excellent drag/drop functionality, nor do I want to copy/paste his code over into mine. So, I was wondering, has anyone tried to extract