Re: [Proto-Scripty] Form submit bubble

2012-09-26 Thread Walter Lee Davis
On Sep 26, 2012, at 5:00 AM, kstubs wrote: Does a form submit bubble up to the containing element? I'd like to capture form submit on a container div for a form submit. Reason being: I create the form on the fly based on whichever child element the user has selected (if any). I'd like

Re: [Proto-Scripty] Form submit bubble

2012-09-26 Thread kstubs
OK, I have something like this: this.zz__handleCommentFormSubmit = this.comment_form.on('submit', this.__handleCommentFormSubmit); It is unclear to me, reading from the API, if I must bind or bindAsEventListener or leave it as it, the method: this.__handleCommentFormSubmit, in the above

Re: [Proto-Scripty] Form submit bubble

2012-09-26 Thread Jason Westbrook
my interpretation of the documentation is as follows if that is inside a class then you might have to use bind to make sure that this still refers to your class instance - vs this would refer to the element the event was fired on Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On

Re: [Proto-Scripty] Form submit bubble

2012-09-26 Thread kstubs
Yes, I'm just wondering if the clever .on method elminiates this, and perhaps it does not. I am finding that if I want to intercept the Submit event, then I have to bindAsEventListener so that I can actually trap the submit event and stop it (then do my own thing with the form and submit to