[Proto-Scripty] Re: Correct use Event.on form submit
Is this correct? this.__z__handleSubmit = this.form.on('submit', this.__handleSubmit. bindAsEventListener(this)); Is the bindAsEventListener necessary? I want to get back the Event Handler so I can later destroy it with: this.__z__handleSubmit.stop(); this.__handleSubmit.bind(this) should be enough http://proto-scripty.wikidot.com/prototype:tip-you-probably-don-t-need-bindaseventlistener -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/EbOYyQsKdy8J. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Drag'n drop and strange z-index issue
In short words, B element after dragging becomes z-index: 0 instead of original z-index: auto and establishes new local stacking context. The logic in startDrag()/finishDrag() methods should be fixed to properly restore initial z-index for z-index: auto (now it defaults to 0). -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/c-orftaAN-cJ. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Drag'n drop and strange z-index issue
How can it be fixed? in startDrag() (dragdrop.js): if (this.options.zindex) { // FIXED z-index: auto - z-index: 0 // was this.originalZ = parseInt(Element.getStyle(this.element, 'z-index') || 0, 10); this.originalZ = Element.getStyle(this.element, 'z-index'); this.originalZ = this.originalZ ? parseInt(this.originalZ, 10) : auto; this.element.style.zIndex = this.options.zindex; } -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/WmpE-9eb4r4J. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Correct use Event.on form submit
Victor, That is not conveniently tied to any event handler, so what is the convenient means of disconnecting it, as in __eventHandler.stop(); ? Karl.. On Tuesday, June 26, 2012 3:42:55 AM UTC-7, Victor wrote: Is this correct? this.__z__handleSubmit = this.form.on('submit', this.__handleSubmit. bindAsEventListener(this)); Is the bindAsEventListener necessary? I want to get back the Event Handler so I can later destroy it with: this.__z__handleSubmit.stop(); this.__handleSubmit.bind(this) should be enough http://proto-scripty.wikidot.com/prototype:tip-you-probably-don-t-need-bindaseventlistener -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/LkJR3dFxrckJ. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.