search for: cancelbubble

Displaying 6 results from an estimated 6 matches for "cancelbubble".

2008 Mar 21
4
Prototype.js event.stop(event) FF2 not working
stop: function(event) { if (event.preventDefault) { event.stopPropagation(); event.preventDefault(); } else { event.returnValue = false; event.cancelBubble = true; } } /* br original stop: function(event) { Event.extend(event); event.preventDefault(); event.stopPropagation(); event.stopped = true; } */ }; --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to...
2005 Jul 19
1
Nested drag and drop rendering issue with ie
...p(inner child), the parent is also moved causing quite a mess. I''ve tracked the problem down to the startDrag function of the Draggable object. I fixed the issue by adding the code below. startDrag: function(event) { //**MOD BELOW*/ if (!event) var event = window.event; event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); //**MOD ABOVE**/ I have no idea if this is the best solution, I just started working the lib yesterday, but it works for me currently. argsv
2005 Jul 20
3
examples of drag n drop
...also moved causing quite a mess. I''ve tracked the > problem down to the startDrag function of the Draggable object. I fixed > the > issue by adding the code below. > > startDrag: function(event) { > //**MOD BELOW*/ > if (!event) var event = window.event; > event.cancelBubble = true; > if (event.stopPropagation) event.stopPropagation(); > //**MOD ABOVE**/ > > I have no idea if this is the best solution, I just started working the > lib > yesterday, but it works for me currently. > > argsv > > > ------------------------------ > > M...
2006 Jan 16
11
Preventing bubble
...This seems to work, at least in firefox. var myrules = { // Disable bubble up to the <tr> that might have an onclick event ''#matrix a'' : function(e){ e.onclick = function(e){ if (!e) var e = window.event; e.cancelBubble = true; if (e.stopPropagation) e.stopPropagation(); } } }; Behaviour.register(myrules); Now, I added Ajax.Updater like below, but now when I click on a link I get two ajax requests. <th onclick="new Ajax.Updater(''tableTable''...
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...+ } +} + + +function process_key(k) { +// alert("key="+k); +// return; + kb_buf+=k; + maybe_send(); +} + + +function esc_seq(s) { + return String.fromCharCode(27)+"["+s; +} + + +function key_ev_stop(ev) { + // We want this key event to do absolutely nothing else. + ev.cancelBubble=true; + if (ev.stopPropagation) ev.stopPropagation(); + if (ev.preventDefault) ev.preventDefault(); + try { ev.keyCode=0; } catch(e){} +} + +function key_ev_supress(ev) { + // We want this keydown event to become a keypress event, but nothing else. + ev.cancelBubble=true; + if (ev.stopPropag...
2012 Apr 27
0
Wine release 1.5.3
...handle returned by AddPrinter. Hwang YunSong (1): po: Update Korean translation. Jacek Caban (36): jscript: Make sure to jump out of switch before entering implicit default clausule. mshtml: Added IHTMLStyle2::bottom implementation. mshtml: Added support for IHTMLEventObj::cancelBubble property. mshtml: Moved style_tbl lookup to separated function. mshtml: Added IHTMLStyle::removeAttribute implementation. mshtml: Added IHTMLStyle::removeAttribute tests. axcore.idl: Guard GetTimeFormat by WINE_NO_UNICODE_MACROS ifdef and added missing AM_GBF_NODDSURFACELOCK...