Joel Cox
Member since Jun 14, 2011
- Profile: /members/8486-joel-cox.htm
- Comments: 10
Recent Blog Comments By Joel Cox
-
Chrome Dev Tools "Live Update" In The JavaScript Console Is Confusing
Posted on Aug 9, 2012 at 9:47 AM
So it's acting like a "watch". Weird. Thanks for pointing out.... read more »
-
How Do You Populate Shared Views In A Complex Layout Using MVC?
Posted on Jul 12, 2012 at 11:21 AM
Ben, I'm not sure that I totally understand your question, but generally, if the layout needs to use content that is common to all views and is not supplied by any particular event-handler, then I'd have the layout event notify the listener to retrieve the content, caching it as necessary. http://... read more »
-
How Do You Populate Shared Views In A Complex Layout Using MVC?
Posted on Jul 12, 2012 at 10:56 AM
I have this kind of thing going on in one of my sites. The layout event-handler has its own controller notification, which populates the sidebar. Mach-II has the built-in ability to specify caching of content, which simplifies this. Example: <event-handler event="home" access="pub... read more »
-
Small Mistake When Simultaneously Binding Multiple Events With jQuery
Posted on Jun 8, 2012 at 11:10 AM
I agree that that is counter-intuitive, especially since a list of multiple selectors is comma-delimited. Seems to be inconsistent. "bind" is deprecated in favor of "on", but "on" uses that same syntax. $( document ).on("open close"...... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 5, 2012 at 1:52 PM
I do the same sort of thing as Matt by using a session facade object that hides the internals of the session from the service layer.... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 5, 2012 at 11:09 AM
As far as the last topic is concerned (gathering view data)...and this is from a Mach-ii perspective...it's typical to render a view into an event argument called contentArg. The layout event is announced from the controller and the event-handler takes the content in the event object and wraps the... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 5, 2012 at 11:02 AM
Service objects can definitely talk to one another. You might have a logging service or a mail service, for instance, that multiple other service objects will use. This is where an object factory like ColdSpring makes managing dependencies much easier.... read more »
-
A Better Understanding Of MVC (Model-View-Controller) Thanks To Steven Neiland
Posted on May 23, 2012 at 11:19 AM
I've used Mach-ii for several years now across multiple applications and am very happy with it. It's more work up front, but maintenance is much easier. As far as validation goes, I tend to use cfc "beans" to pass, say, form data between the layers. (Mach-ii makes this almost trivial with... read more »
-
jQuery.whenSync() Plugin For Chaining Asynchronous Callbacks Using Deferred Objects
Posted on Mar 27, 2012 at 10:39 AM
Just used this successfully, thanks. My use case: I have a jQuery dialog with 3 related select boxes. Changing the value of the first causes a getJSON request to change the options of the second, and changing the second box refreshes the choices of the third. After making the selections, the data... read more »
-
ColdFusion Query-Of-Queries vs. The Group Attribute In CFOutput
Posted on Jun 14, 2011 at 1:18 PM
I don't see the advantage to your approach, either. You're making multiple roundtrips to the database server when one would do. This seems to be a case of taking a simple solution and making it harder. This is an interesting intellectual exercise, but I would never code like that.... read more »