Displaying 9 results from an estimated 9 matches for "stoppropagation".
2005 Jul 19
1
Nested drag and drop rendering issue with ie
...so 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
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;
}
*/
};
--~--~--------...
2006 Jun 15
3
RE: Yahoo!-like Eventobjectemulation/abstractioninPrototype?
...= Event.pointerY(event);
this.clientX = this.pageX - (document.documentElement.scrollLeft
|| document.body.scrollLeft);
this.clientY = this.pageY - (document.documentElement.scrollTop
|| document.body.scrollTop);
this.preventDefault = Event.stop.bind(Event, event);
this.stopPropagation = Event.stop.bind(Event, event);
}
} );
There are probably more things that would need to be addressed; I just
based this off of what functionality was in prototype ''cause I believe
most of the remaining attributes/functions work cross-browser already
(and should be inherited in the fo...
2008 Jan 28
6
cancelling form submit
Anyone know why my form would still submit in firefox but not in IE?
aspnetForm is the id of the form.
I get the alert, but the form still submits.
Event.observe(''aspnetForm'',''submit'',function(e){
alert(''submit'');
var t = $F(''ctl00_ContentPlaceHolder1_NewTag'');
2005 Jul 20
3
examples of drag n drop
...''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
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 19 Jul 2005 2...
2006 Jan 16
11
Preventing bubble
...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'', ''http://url?sort=foo'' ); r...
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...s_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.stopPropagation) ev.stopPropagation();
+}...
2017 Oct 31
0
Wine release 2.20
...ent id in DOMEvent.
mshtml: Pass DOMEvent instead of event id to fire_event_obj.
mshtml: Store event target in DOMEvent.
mshtml: Pass DOMEvent to call_event_handlers.
mshtml: Implement IDOMEvent::preventDefault and use it where appropriate.
mshtml: Implement IDOMEvent::stopPropagation and use it where appropriate.
mshtml: Store current IHTMLEventObj in DOMEvent and create it in fire_event_obj if needed.
mshtml: Use fire_event_obj to dispatch XHR readystatechange event.
mshtml: Don't use fire_event to dispatch contextmenu event.
mshtml: Don't use f...
2017 Dec 08
0
Wine release 3.0-rc1
...celable events.
mshtml: Fixed event target leak in dispatch_event.
mshtml: Added IDOMEvent::get_currentTarget implementation.
mshtml: Added IDOMEvent::get_target implementation.
mshtml: Added IDOMEvent::initEvent implementation.
mshtml: Don't call preventDefault in stopPropagation.
mshtml: Don't store dispatch mode in DOMEvent object.
mshtml: Added IDOMEvent::dispatchEvent implementation.
mshtml: Expose IDocumentEvent to scripts.
mshtml/tests: Added more event object tests.
jscript: Support VT_UI8 in variant_to_jsval.
mshtml: Added IDO...