search for: dropon

Displaying 17 results from an estimated 17 matches for "dropon".

Did you mean: drogon
2006 Feb 07
1
onHover: can u explain me this function ?
In Sortables, we have a function onHover: onHover: function(element, dropon, overlap) { if(overlap>0.5) { Sortable.mark(dropon, ''before''); if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; // fix gecko rendering dropon.parentNode.i...
2007 Jun 24
2
function Element.isParent argument order?
...Sortables and noticed that when the function Element.isParent is called from onHover (line 749 in dragdrop.js v. 1.7.1_beta3) and from onEmptyHover (line 781), the arguments seem to be in reverse order. Element.isParent (line 944) expects "child, element(parent)" but is called with "dropon(parent), element(child)", making it return FALSE most of the time, when (I think) it should be returning TRUE... Reversing the arguments order on lines 749 and 781 to "Element.isParent(element, dropon)" fixes any "jumpiness" in horizontally arranged Sortables when they ove...
2006 Jan 11
3
sortables callbacks
i know someone just recently asked about queueing ajax requests, my question is similar in the regards that i don''t want my application to send multiple requests. i have 2 sortabbles lists left, and right. when i move an item from left to the right the onUpdate callback will send 2 ajax requests. one for each sortables. however. i want it to serialize and send back the results from
2005 Jul 18
1
fix for scriptaculous dragdrop.js empty list problem
...gth; i++){ //register children as droppables, as before... } element.isParentDroppable=true; Droppables.add(element, options_for_droppable); options.droppables.push(element); Then under options_for_droppable.onHover, I test for that property: onHover: function(element, dropon, overlap) { if (dropon.isParentDroppable){ dropon.appendChild(element); if (dropon.sortable){ dropon.sortable.onChange(element); } }else{ //do what onHover used to do... } } } That way, when an element is dropped...
2006 Feb 08
0
Get id of object being dragged
...Draggable(''Idea'',{handle:''IdeaHandle'',change:function(element){$(''test'').innerHTML = encodeURIComponent(element.id)}}); yet the way I reference the id works for a droppable: Droppables.add(''IdeaPad'', {onDrop:function(element,dropon){alert(''id:'' + encodeURIComponent(element.id) + '', dropon :'' + dropon.id + '', pos:'' + element.style.left)}}) Any ideas? -- Aneesha _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOv...
2008 Feb 15
1
Sortable limit number of elements
Hello, Well, i need to limit the number of elements in a sortable. I new to scriptaculo but i have lots of experiencie with javascript. Since limit the number of elements is not supported by Sortable i would like to implement, i already took a look at the Sortable class in dragdrop.js and it looks like that onHover and onEmptyHover deal with the update of the UI, however I''m not unable
2006 Jan 29
2
Questions about Sortable javascript
...Object.extend. Where is a good reference to these things? Are they JavaScript 1.6? 2) What is greedy refering to? 3) (this.findElements(element, options) || []).each is a JavaScript idiom to avoid problems when findElements returns null? 4) why unimplement tree? 5) what is overlap? 6) what is dropon? 7) Why the underscore in Sortable._marker 8) what are onEmptyHover and dropOnEmpty about? What is ''empty''? 9) what is the ghosting option about? Thanks! Peter [1] http://trac.vaillant.ca/store.rb [2] JavaScript The Definitive Guide, David Flanagan
2006 Feb 13
8
Netvibes.com / Scriptaculous
Hi list, Is it possible to create a "dashboard" type application, like Netvibes.com, w/ script.aculo.us? _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2008 May 29
4
Drag/Drop finding droppable's properties?
...ve dragged the object, and dropped it onto the "form" area, I want to get the position of where the object was dropped. I have a droppable area: Droppables.add(''dropArea'', {onDrop:addItem}); And a method that calls a webservice via AJAX: function addItem(element, dropon, event) { var s = element.id; // element.width,element.height,element.top,element.left, AJAXDDtest.DBAccess.InsertField(s,element.innerHTML,0,0,0,0, onGetDataComplete, onGetDataTimeOut); } Essentially, i want to get the width, height, top, and left of the element th...
2006 Jan 11
3
divider id of container
...dynamicly with ids like '' div_ + i '' where ''i'' is a incremental variable, thats the problem because i need get the id of this child nodes to manipulate it, somebody knows how if i drag the element to that child node i can get the id of that node ? i try with the dropon.id but i get the id of the parent div node, i need the id of the childs thanks -- // // Ing. Francisco J. Calderón S. // fjcalderon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org // Usuario de GNU/Linux nº 349529 // Maracay, Venezuela // _______________________________________________ Rails-s...
2007 Jun 28
5
Droppable onHover fires on page load, not on hover
Hi all, first post. I have a simple set of drag/drops that I''m trying to use in FF. Unfortunately on page load all of the droppables on the page fire simultaneously and then won''t respond to any futher attempts to drop anything on them. Firebug isn''t showing any errors and I''m completely stumped... Any ideas of where to look? using:
2006 Feb 26
14
Question abour Draggables & Droppables
...;> new Draggable(item,{revert:true});</script> <!-- Droppable Div --> <div id="droparea" style="height:100px;width:100px;"><script type="text/javascript">//Droppable CartDroppables.add(''droparea'', {onDrop:function(element, dropon, event){ /* REVERT FALSE */ }});</script>[/CODE] Thank you in advance! _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it''s FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______...
2007 Nov 09
0
iframe is reloading during each sortable drag/drop point
...trying to use Sortables. Each of our widgets is an iframe. But when you try to drag an element containing an iframe the Sortables api causes the iframe to reload at each possible drop point. This causes the ui to shutter and become unusable. I have narrowed the issue down the onEmptyHover where dropon.insertBefore is called. Is there a way to stop the iframe from reloading or is there a better way for Sortables to handle drag and drop? This reloading of iframes does not occur on igoogle or netvibes - it only occurs on the drop which is acceptable...does anyone know how they are getting around...
2006 Nov 24
1
sortable - after complete dropping element want to send ajax reqeust with id of elements: draggable and droppable
...and after I move elements I want to do ajax reqeust to serwer with the id of dragging element and id of the element that was droppable. How to do it? which function in Sortable class i have to overrider or modify? i try to modife onhover method in sortable and put a ajaxRequest call before methods dropon.parentNode.insertBefore (line 742 or line 758) but I noticed that piece of code is executed whenever i release the mouse button (and finally change position of elements) or not. So how to do this? Please help me and thanks Gregor --~--~---------~--~----~------------~-------~--~----~ You receiv...
2006 Feb 28
0
Question abour Draggables & Droppables - my code example
...m,{revert:true});</script> > > <!-- Droppable Div --> > <div id="droparea" style="height:100px;width:100px;"><script > type="text/javascript">//Droppable CartDroppables.add(''droparea'', > {onDrop:function(element, dropon, event){ /* REVERT FALSE */ > }});</script>[/CODE] > > Thank you in advance! > > Express yourself instantly with MSN Messenger! MSN Messenger > _______________________________________________Rails-spinoffs mailing > listRails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@publ...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...er, overlap: options.overlap, containment: options.containment, hoverclass: options.hoverclass - } + }; // fix for gecko engine Element.cleanWhitespace(element); @@ -832,7 +833,7 @@ var Sortable = { Sortable._marker.setStyle({left: (offsets[0]+dropon.clientWidth) + 'px'}); else Sortable._marker.setStyle({top: (offsets[1]+dropon.clientHeight) + 'px'}); - + Sortable._marker.show(); }, @@ -851,11 +852,11 @@ var Sortable = { children: [], position: parent.children.length, cont...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server