similar to: Event listener problems

Displaying 20 results from an estimated 300 matches similar to: "Event listener problems"

2006 Mar 04
0
Question about event listener highlighting with child elements
I have created a JavaScript object which is initialized for some input fields, fieldsets, and divs on the page. With each object i attach a mouseover and mouseout event that highlights and un-highlights. Also on mouseout i am trying to display the id of the object to a console. The highlighting works except for cases when an object is the child of another object. In this case both are highlighted
2006 Jan 11
0
RE: Event.observer - unordered list problems
Hi Marco (I forwarded this also to the mailing list and removed the picture as it wasn''t necessary to include to the mailing list so everyone can hear the general techniques), I recently had a very similar problem with my project. The problem arises because whenever you move the mouse to ANY element, the previous element that the mouse was over gets a mouseout event, even if it
2006 Jan 11
0
RE: RE: Event.observer - unordered list problems
I just realized I made a mistake... in the first numbered solution, the != should be == ________________________________ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan Gahl Sent: Wednesday, January 11, 2006 2:28 PM To:
2006 Mar 04
1
RE: Question about event listener highlighting withchild elements
1. Create a separate class that has your highlight/unhighlight behavior in it, and extend just the element you want to highlight with that class... like this (also allows you to easily apply this behavior elsewhere when you need it in the future): Object.extend(this.el, HighlightBehaviorClass.prototype) 2. When defining your event handlers, assign them to variables so you have a
2007 Oct 04
0
Getting mouse position from a timed function - My Solution
EDIT: I originally wrote this as a response to this thread (http:// groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/ a735c534f89fc5cf/8d8546811cae5ee8), but it wouldn''t let me respond that that thread (presumably because of it''s age). Rather than just throw it away, I figured I''d post it here in case in can help anyone else. I built a little class to
2007 May 05
0
integration with movtable
Hi, I''m trying to integrate movtable to display some data. The file that lists out the partials to display the data looks like this: <html> <head> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <title>Movtable - List</title> <%= stylesheet_link_tag
2006 Feb 09
3
Draggables and Droppable performance (tips)
Hi all. I have some performance tips to share. I had been having problems with the overall performance of the drag/drop objects. This is due largely to the fact that my project really pushes the limits (potentially thousands of draggables and hundreds of droppables in the document at a time, although that is the extreme case). Something I discovered is that the performance of dragging goes WAY
2006 Jan 18
2
Event.stopObserving and anonymous functions
Hi all, I'm using behaviour(.js) to add event handlers to all the table cells in a table (mouseover, mouseout, clickk). However, I'm also ditching the table and replacing it with an Ajax.Updater so I want to remove all the observers before I lose them. Unfortunately, the Event.observe calls were written as inline anonymous functions so, when calling Event.stopObserving, I'm supposed
2005 Aug 24
1
draganddrop mousemove event question
I''ve noticed that the update method of every Draggable is called for each mousemove event while nothing is dragging. I''m wondering what the reasoning behind this is (vs. attaching the mousemove handler after a mousedown event). Does it have a noticeable performance impact when there are lots of draggables (say 400)? Disclaimer: I''m really new to JavaScript and may have
2008 Jul 01
2
Sortable, stop event on drop
I''ve got a "Sortable" list that is sorting just fine. But in the list items, there is a link. If you mousedown on the link, drag it to a new location and mouseup, the list gets reordered appropriately, but then the link is followed (you did - after all - click it). Is there a way to either stop the mouseup/click event before activating the link after you''ve dragged
2006 Mar 09
0
RE: extending an existing DOM object in a prototypeway
Gosh darn Outlook seems to have stripped some newlines from my response... last few lines should read... var myActiveSpanBase = new ActiveSpan({"red"}); Object.extend($(''someSpan''), myActiveSpanBase); $(''someSpan'').setup(); Or, more concisely... Object.extend($(''someSpan''), new ActiveSpan({"blue"});
2006 Mar 09
0
RE: extending an existing DOM object in aprototypeway
..lol... and I screwed up the option... one more time... var myActiveSpanBase = new ActiveSpan({color: "red"}); Object.extend($(''someSpan''), myActiveSpanBase); $(''someSpan'').setup(); Or, more concisely... Object.extend($(''someSpan''), new ActiveSpan({color: "blue"}); $(''someSpan'').setup();
2006 May 21
3
Catching events outside document (on window chrome)
Hello, How can I catch the onmouseup event outside the ducument - means when the pointer is above window chrome (e.g. toolbar)? Event.observe(document, ''mouseup'', someListener) works only inside the document for me. Thanks in advance for your help! Thomas -- Posted with http://DevLists.com. Sign up and save your mailbox.
2008 Apr 16
3
non-bubbling mouseover/mouseout
First, I have only played with Prototype for about a month, so I don''t know it well. Second, I am more of a server-side programmer than a client-side programmer. In my page, I have a div that appears as a result of a link mouseover event. This div is nested within another div that houses everything (id = ''menuContainer''). I want the resulting div (which is a submenu)
2005 Oct 14
2
events after sort
hi, i''ve just started use prototype.js et al, i am currently creating a sortable list with: Sortable.create(''id'', { onChange: myFunc }); but what i really want is an event that occurs after the li''s have been reordered and settled into the new list order. how would i do that? i know i can do for exampe: Event.observe(''id'',
2007 May 11
15
Simulating onmouseleave and onmouseenter with Prototype
Hello. I spent an hour or three chasing down a desired effect that mootools implements, namely the simulation of onmouseleave and onmouseenter events. Why? Lets say you have a Menu. A ul element that contains many li elements. If you want to have a function (maybe an effect) fire when the mouse moves outside of the ul, you are out of luck. Observe the mouseout function like so:
2006 Feb 03
2
Scriptaculous: Newbie question - Effect.fade
Hi there, Is it possible to do an effect.fade without removing the hidden document from the flow when in becomes invisible? I have a line of images (initially all invisible) [] [] [] [] [] And a list of links - link 1 - link 2 - link 3 - link 4 - link 5 And what I want to happen is to have the images appear on link mouseover and disappear on mouseout but for the images to maintain their
2006 Jun 15
12
Why such bad performance with IE ?
Regarding DragDrop I am wondering what the deal about Internet Explorer 6 is. My application is near to final and now while testing browsers all but the IE6 are running as supposed to. Any other browser is performing smooth movement while IE compared provides a very bad expirience. I''ve seen some "tuning" infos on this list but they are either outdated or not actually working
2001 Aug 20
1
Event trail info help request
G'day all, I'm always running the latest wine built locally, daily from CVS. I'm using Xfree 4.0.2 with a microtouch touchscreen, and I'm chasing a mouse event bug. I write my software in Borland Delphi 4. For testing, I have written a program that simply intercepts the application message queue, and filters WM_MOUSEMOVE, WM_LMOUSEDOWN and WM_LMOUSEUP events, and prints them to a
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
Note that this does not fix gettext for app, that will be done separately in another patch as F10/F11 require different setups for that. In the meantime gettext works if manually changed in environment.rb to gettext_rails instead of gettext/rails Signed-off-by: Jason Guiditta <jason.guiditt at gmail.com> --- src/app/controllers/application.rb | 200 --------