Michael Paige
Member since Dec 29, 2009
- Profile: /members/5054-michael-paige.htm
- Comments: 9
Recent Blog Comments By Michael Paige
-
Javascript Patterns By Stoyan Stefanov
Posted on Nov 1, 2010 at 11:32 AM
I haven't read the O'Reilly book yet, but I really like "Pro JavaScript Design Patterns" http://www.amazon.com/JavaScript-Design-Patterns-Recipes-Problem-Solution/dp/159059908X/ref =ntt_at_ep_dpi_1... read more »
-
Simple Publication And Subscription Functionality (Pub/Sub) With jQuery
Posted on Oct 19, 2010 at 12:23 PM
I wasn't there, but I imagine she may be talking about the plugin Peter Higgins wrote http://higginsforpresident.net/projects/ http://higginsforpresident.net/js/static/jq.pubsub.js and the fact that bocoup showed the performance difference using jQuery events vs. the pub/sub plugin. http://w... read more »
-
Creating UI Elements With Low-Coupling And Conditional Event Handling
Posted on Jan 22, 2010 at 2:57 PM
@Ben, This was sort of what I meant when I said it's hard to see if you're looking at it from the DOM perspective. I'm no expert at it either, but if you're going to use a 'controller' then you should go the extra step and look at it from the application (controller) perspective, and not the indivi... read more »
-
Creating UI Elements With Low-Coupling And Conditional Event Handling
Posted on Jan 21, 2010 at 12:35 PM
Ah, I think I see where you were going with this (sorry if I was a bit slow). You want to use an event manager (controller) to globally set (enable/disable) and potentially fire element/object event handlers. I would think in the controller scenario, you'd want to register elements/objects with th... read more »
-
Creating UI Elements With Low-Coupling And Conditional Event Handling
Posted on Jan 21, 2010 at 10:55 AM
@Ben Then maybe instead of a pub/sub pattern, what you're looking to use is event pooling? http://bit.ly/7IzTRm http://bit.ly/7OTnN8... read more »
-
Creating UI Elements With Low-Coupling And Conditional Event Handling
Posted on Jan 20, 2010 at 5:09 PM
I understand that this is a simplified version, but I think it's actually MORE difficult to see what it is you're trying to accomplish this way (because your dealing with primarily DOM elements and not objects). The goal from what I see is twofold. Create an application with objects that are decoup... read more »
-
Do Complex User Interface Modules Necessitate Complex CSS?
Posted on Jan 11, 2010 at 4:26 PM
@Ben, http://dean.edwards.name/IE7/... read more »
-
Do Complex User Interface Modules Necessitate Complex CSS?
Posted on Dec 29, 2009 at 2:55 PM
table.data-grid tbody td {} is very "global" in it's scope, since it declares that any TDs inside a TBODY inside TABLE.data-grid will get whatever styles are declared. If you could class the TBODY, you could then do something like: table.data-grid tbody.primary-grid > td {} targeting just the... read more »
-
Do Complex User Interface Modules Necessitate Complex CSS?
Posted on Dec 29, 2009 at 2:39 PM
This is where you think globally but act locally. If you have a layout that you know will have nested layout sections you have to really think about and plan your class/ID structure. Use a global class which only carries the styles that won't clash with child structures in addition to a more semanti... read more »