Jeremy Martin
Member since Nov 18, 2009
- Profile: /members/4793-jeremy-martin.htm
- URL: http://blog.jeremymartin.name
- Comments: 10
Recent Blog Comments By Jeremy Martin
-
You Cannot Bind The Submit Event To Objects Using jQuery
Posted on Apr 5, 2010 at 11:25 AM
@Ben, Right - the main thing it buys you in this case is that anything jQuery needs for the binding is now available. You basically get to treat it just like the p element itself. You of course have to be careful about overriding stuff, and certain things that are set in the paragraph's construc... read more »
-
You Cannot Bind The Submit Event To Objects Using jQuery
Posted on Apr 5, 2010 at 11:11 AM
@Ben, If you tell anyone I recommended this, I'll hunt you down - but this is somewhat interesting (in that it makes IE work): http://jsbin.com/ayufe3/2/edit In theory, this should allow for most any jQuery operation to work on the controller.... read more »
-
You Cannot Bind The Submit Event To Objects Using jQuery
Posted on Apr 5, 2010 at 10:55 AM
... although by keeping it DOM-centric, it really just avoids the entire point of this post :)... read more »
-
You Cannot Bind The Submit Event To Objects Using jQuery
Posted on Apr 5, 2010 at 10:53 AM
Ya - for some reason I thought you were binding/triggering against "self.target", not "self". Not sure whether or not this snippet really makes any sense, but you do something similar to this example by keeping all the event logic DOM-centric: http://jsbin.com/uneke/2/edit... read more »
-
You Cannot Bind The Submit Event To Objects Using jQuery
Posted on Apr 5, 2010 at 10:22 AM
Awesome - I hunted down the ticket url in case anyone else is interested: http://dev.jquery.com/ticket/6398... read more »
-
You Cannot Bind The Submit Event To Objects Using jQuery
Posted on Apr 5, 2010 at 9:54 AM
Interesting find - I'm inclined to call that a bug as well. Did you submit a support ticket yet? Regarding the reasoning behind delegated submit events, I think I would defend it for two main reasons: 1) It maintains consistency with the rest of the events API. 2) There are some scenarios in which... read more »