search for: onhover

Displaying 18 results from an estimated 18 matches for "onhover".

2007 Jun 28
5
Droppable onHover fires on page load, not on hover
...es 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: Droppables.add(divIdName, {accept: ''prospect'', onHover: showConsultantSchedule(keyVar)}); where divIdName is the var to the div name and keyVar is the ID that I need to send to the DB server and prospect is the class of the draggables I''m also using handles on the drags that match the div id that they are assigned to (already tried changing t...
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 ge...
2006 Jan 23
8
question about Sortables
So, is there any way to specify a sortable to only do a callback when the dragged item is dropped? As it is, the onChange is called whenever you move the draggable to a new element (even if you don''t drop it), but I''d rather only call my function after they drop it to avoid unnecessary additional server calls. It looks like Droppable supports an ''onDrop'', but
2008 Feb 15
1
Sortable limit number of elements
...l, 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 to find where the *onDrop* event happens for a Sortable item. Any guidance on how to accomplish this tasks i greatly appreciate Tks, Cron --~--~---------~--~----~------------~-------~--~----~ You received this messa...
2007 Jun 24
2
function Element.isParent argument order?
I was trying to troubleshoot "jumpy" 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...
2005 Jul 18
1
fix for scriptaculous dragdrop.js empty list problem
...ent of the list in question: for (var i = 0; i < elements.length; 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...
2006 Jan 23
6
Performance Issues with Autocompleter
...cted"); if(this.hasFocus) { this.show(); this.active = true; } } else { this.active = false; this.hide(); } } </code snip> The render function above is running into a for loop in order to make the "Highlighting" effect work. (onHover calls this function) When you have 1000 items in the list and just move the mouse over the list, onHover gets called several times and enters the for loop which will iterate 1000 times for each call. IE and the javascript engine goes crazy and memory consumption of IE increases. I have commented ou...
2005 Jul 18
2
scriptaculous dragdrop.js empty list problem
...ist becomes empty, I can''t drag elements back into it. Looking under the hood in dragdrop.js, the Sortable class appears to set the LI elements as drop targets, so that when an element drops onto them, they work out how to add it as a sibling (I''m looking at options_for_droppable:onHover here, lines 46-80 ish). The behaviour that I''m seeing makes sense from this code - no LI elements left in the list, so nothing happens. However, from the user''s perspective, it''s going to be pretty frustrating, allowing the app to get into a dead-end state from which it c...
2006 Oct 01
1
Limiting the number of sortable items
Is it possible to limit the number of items a sortable list can contain? --~--~---------~--~----~------------~-------~--~----~ 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 Jul 15
0
Drag/Drop with Image Maps
...v id="description"></div> <script type="text/javascript"> $$(".injury").each(function(el){ new Draggable(el,{revert:true}); }) $$(''#front_map area'').each(function(el){ Droppables.add(el,{ accept:''injury'', onHover:function(drag,drop){ // Some function to let us know what''s going on $(''description'').innerHTML=drag.title + " on " + drop.title; }, onDrop:function(drag, drop){ // Some function to respon...
2006 Apr 08
0
Drag and Drop ajax Bug in the typo sidebar management under IE6
...ement of typo. you can see the html coda that show the error on http://www.shoob.com/denis/sidebar_typo/sidebar.html or download the code locally with http://www.shoob.com/denis/sidebar_typo.zip i''m not able to find what cause the error so i cannot propose a patch. The Error is on the onHover method line 698 or 687 Sortable.options(oldParentNode) return null always Best regards Lamotte denis
2006 Apr 18
0
Drag an drop bug in typo sidebar management, any help welcome
...idebar_typo/sidebar.html The code is also available locally http://www.shoob.com/denis/sidebar_typo.zip Every thing run fine under fifireox, safari and opera. We only have an error under IE 6. i''m not able to find what cause the error so i cannot propose a patch. The Error is on the onHover method line 698 or 687 Sortable.options(oldParentNode) return null always the second time it is called. so if you have any idea on how to correct this, contact me or typoshere.org Lamotte Denis
2006 Nov 24
1
sortable - after complete dropping element want to send ajax reqeust with id of elements: draggable and droppable
Hi all. I have specific situations - I use sortable on html list, 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...
2006 Apr 11
4
text_field_auto_complete not working in IE?
Hi all, I''m looking for some insight on why my text_field_with_auto_complete might not work in Internet Explorer. I''m using it in a fairly simple way, without much customization. I''ve broken it down and made a test page at http://realty.colemanation.org/houses/test which shows the behavior I''m having problems with. For me on Windows XP this page works
2005 Oct 16
1
prototype help needed - how to get started
Hello, Despite Sergio''s excellent documentation on prototype, I’m still struggling to get started. I hope somebody is able to help me a with a little example to get me going. Please see html code below – I have this little navigation bar and I like to add some events/functions to the buttons. Let’s say, onmouseover, I like to change e.g. the background-color of the button and
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...s.changed = true; this.hasFocus = true; if(this.observer) clearTimeout(this.observer); - this.observer = + this.observer = setTimeout(this.onObserverEvent.bind(this), this.options.frequency*1000); }, @@ -170,35 +170,35 @@ Autocompleter.Base = Class.create({ onHover: function(event) { var element = Event.findElement(event, 'LI'); - if(this.index != element.autocompleteIndex) + if(this.index != element.autocompleteIndex) { this.index = element.autocompleteIndex; this.render(); } Event.stop(event); }, - +...
2005 Sep 19
5
accept on Sortable
...rks for the small apps, I can drop and sort everywhere. Kinda hard to explain, check it out on the link above, try to move the big app in the middle to a small column, it will be added on the bottom but the small apps work as expected. Any hints ? I am sure it is something related to the Sortable.onHover() but can''t understand that function... Great job by the way, thanks for that awesome library, Jonathan.
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