search for: dragend

Displaying 8 results from an estimated 8 matches for "dragend".

Did you mean: dragen
2010 Jun 15
0
Draggable Marker - "dragend" event - Example?
Hi everyone, I have been developing a site using mapstraction over at dojolist.org I currently geocode an address to add a marker on the map when creating a new dojo. What I have been trying to do is make it so that I can drag the marker and then have the lat/long fields updated from the map. I have not been able to find an example of this on the mapstraction site, does someone have an example I
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
2007 Nov 05
1
marker event listeners
I''d like to add an event listener for dragging markers, but it looks like YM4R GM (and Mapstraction) doesn''t support this. I need an init like: marker = new GMarker(... GEvent.addListener(marker, "dragend", function() { }) but the current setup makes "anonymous" markers - never creates variable that can be used to access them. Has anyone thought about this? Perhaps we can add a "varname" attribute to the overlays to allow further use of them? The follow adds support to...
2007 Mar 04
0
Event listeners
...;, :info_window => "myInfo...") end @map.overlay_init @marker1 @map.center_zoom_init([@latitude, @longitude],16) @map.event_init(@map,:click,"function(){alert(''HOYOYO'');}") # this runs well... testing.. @map.event_init(@marker1, :dragend, "function () { point = marker1.getPoint(); map.setCenter(point); map.savePosition(); GLog.write(''New position of insert = ''+ point.lat() + '',''+ point.lng()); });") # this one doesn''t fire up..... as it does in rjs end -------------...
2007 Mar 04
0
Event listeners.. solved
...tle bit more attention to your reply.. especially using Firebug extension... (so helpful...) and I got it (maybe not so good writing.. @map.declare_init(@marker1, ''marker1'') @map.overlay_init(@marker1) @map.record_init "GEvent.addListener(marker1, ''dragend'', function () { point = marker1.getPoint(); map.setCenter(point); map.savePosition(); GLog.write(''New position of insert = ''+ point.lat() + '',''+ point.lng()); });" it runs... could not find the solution without init...
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. Is there any clean way I c...
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 electronic mail is intended only for the person or entity to which it is addressed an...
2005 Jun 23
0
dragdrop library
...d. I''m making some suggestions and requesting some general feedback from you. My goal of using draggable objects is to have a customizable interface for my webapp. I''m not really looking for drag and drop functionality, just drag whereever you want. I would like a callback for dragEnd to reposition the element when the drag is complete. I found when I set out to do this that the app failed because I had not added anything to the Droppables, I think this limits the flexibility of the code. I created a "Container" object which is initialized with an html element id...