<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://organizeseries.com/"
		>
<channel>
	<title>Comments on: MVC in the Browser</title>
	<atom:link href="http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/</link>
	<description>SitePen Services and notes about Dojo, Persevere, CometD, JavaScript, and the Web</description>
	<lastBuildDate>Tue, 21 May 2013 19:43:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
	<item>
		<title>By: Kris Zyp</title>
		<link>http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/comment-page-1/#comment-155508</link>
		<dc:creator>Kris Zyp</dc:creator>
		<pubDate>Wed, 22 Dec 2010 13:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/#comment-155508</guid>
		<description><![CDATA[@Acaz: In proper MVC, a view can and should &quot;observe&quot; the model. This isn&#039;t strictly a model initiated action/message, it is in response to the view&#039;s observance of the model (but programmatically it does require a change in the model to be delivered to the view). The view responding to the model does not require going through the controller.]]></description>
		<content:encoded><![CDATA[<p>@Acaz: In proper MVC, a view can and should &#8220;observe&#8221; the model. This isn&#8217;t strictly a model initiated action/message, it is in response to the view&#8217;s observance of the model (but programmatically it does require a change in the model to be delivered to the view). The view responding to the model does not require going through the controller.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Acaz</title>
		<link>http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/comment-page-1/#comment-155208</link>
		<dc:creator>Acaz</dc:creator>
		<pubDate>Tue, 21 Dec 2010 23:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/#comment-155208</guid>
		<description><![CDATA[&quot;The store will then send a notification event to the grid, which will update the view to eliminate the row corresponding to the deleted item. This follows proper MVC flow, with the controller affecting the model, which then affects the view.&quot;

In MVC pattern, MODEL don&#039;t communicate with VIEW, MODEL will pass the action to controller to eliminate the row corresponding to the deleted item.

I&#039;m wrong?]]></description>
		<content:encoded><![CDATA[<p>&#8220;The store will then send a notification event to the grid, which will update the view to eliminate the row corresponding to the deleted item. This follows proper MVC flow, with the controller affecting the model, which then affects the view.&#8221;</p>
<p>In MVC pattern, MODEL don&#8217;t communicate with VIEW, MODEL will pass the action to controller to eliminate the row corresponding to the deleted item.</p>
<p>I&#8217;m wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Meyer</title>
		<link>http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/comment-page-1/#comment-133098</link>
		<dc:creator>Justin Meyer</dc:creator>
		<pubDate>Wed, 03 Nov 2010 18:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/#comment-133098</guid>
		<description><![CDATA[I think Dojo could go slightly further in enabling this style of development than Dojo provides.

Dojo&#039;s Model layer is Kick A.  However, look at JavaScriptMVC&#039;s controller ...

http://javascriptmvc.com/docs/jQuery.Controller.html

for something that provides a really awesome way of handing binding/unbinding events.

It&#039;s basically a jQuery widget factory, but organizes event handling code in a very elegant manner.]]></description>
		<content:encoded><![CDATA[<p>I think Dojo could go slightly further in enabling this style of development than Dojo provides.</p>
<p>Dojo&#8217;s Model layer is Kick A.  However, look at JavaScriptMVC&#8217;s controller &#8230;</p>
<p><a href="http://javascriptmvc.com/docs/jQuery.Controller.html" rel="nofollow">http://javascriptmvc.com/docs/jQuery.Controller.html</a></p>
<p>for something that provides a really awesome way of handing binding/unbinding events.</p>
<p>It&#8217;s basically a jQuery widget factory, but organizes event handling code in a very elegant manner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Introducing Pintura &#124; SitePen Blog</title>
		<link>http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/comment-page-1/#comment-91558</link>
		<dc:creator>Introducing Pintura &#124; SitePen Blog</dc:creator>
		<pubDate>Fri, 22 Jan 2010 09:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/#comment-91558</guid>
		<description><![CDATA[[...] JavaScript frameworks like Dojo, General Interface, Cappuccino, YUI, and ExtJS that provide client-side MVC. In particular, Dojo has excellent support for standards-based JSON REST interaction that matches [...]]]></description>
		<content:encoded><![CDATA[<p>[...] JavaScript frameworks like Dojo, General Interface, Cappuccino, YUI, and ExtJS that provide client-side MVC. In particular, Dojo has excellent support for standards-based JSON REST interaction that matches [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny</title>
		<link>http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/comment-page-1/#comment-91291</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Thu, 05 Nov 2009 15:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/#comment-91291</guid>
		<description><![CDATA[Hi Suman:
MVC deals with, to use a common phrase &quot;loosely coupling&quot; these elements. The model knows nothing about the controller or the view, the controller doesn&#039;t know about the view and the view only knows about either the controller&#039;s dependency on the controller, or the controller itself. then they communicate with events, broadcasted to space but listened and acted upon by the interested components.

I thought about what is the best scheme, to update the controller&#039;s instance of the model or to interact directly with the model. I opted to have the view update the instance of the model rather than the model itself. This is because the model is not a singleton in most cases, and as has been described in many javascript discussions it is best not to create too many of them to avoid future conflicts. Besides, the mvc flow of events is not a perfectly linear process because each component will broadcast its events at any given moment based on interaction by the user on the view or by interaction between components at any given time. Also, not every action to the view will result in a modification to the model, but a mere refresh is more frequently common.

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hi Suman:<br />
MVC deals with, to use a common phrase &#8220;loosely coupling&#8221; these elements. The model knows nothing about the controller or the view, the controller doesn&#8217;t know about the view and the view only knows about either the controller&#8217;s dependency on the controller, or the controller itself. then they communicate with events, broadcasted to space but listened and acted upon by the interested components.</p>
<p>I thought about what is the best scheme, to update the controller&#8217;s instance of the model or to interact directly with the model. I opted to have the view update the instance of the model rather than the model itself. This is because the model is not a singleton in most cases, and as has been described in many javascript discussions it is best not to create too many of them to avoid future conflicts. Besides, the mvc flow of events is not a perfectly linear process because each component will broadcast its events at any given moment based on interaction by the user on the view or by interaction between components at any given time. Also, not every action to the view will result in a modification to the model, but a mere refresh is more frequently common.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suman</title>
		<link>http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/comment-page-1/#comment-91182</link>
		<dc:creator>suman</dc:creator>
		<pubDate>Wed, 02 Sep 2009 06:13:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2009/08/28/mvc-in-the-browser/#comment-91182</guid>
		<description><![CDATA[Hello Kris,
   thanks for a great and insightful blog up there, here is a point i will like to draw your attention to is the following portion from your blog.
     In a nutshell my concern is whereas the elegant use of MVC as u have mentioned seems to be (flow of control and data) view --&gt; controller --&gt; model and back the same way . There are some situations where calling the model directly from view makes more immediate sense thus bypassing controller . Do you think that this might break the decoupling we try to achieve in mvc or the pragmatism of bypassing controller just weighs too much on this ?? Let me know ur thoughts.


&quot;..Rather, you can add an event handler for the button that will call the deleteItem method on the store (defined by the dojo data API) for the selected item, which is effectively controller code interacting with the model (the item from the store). The store will then send a notification event to the grid, which will update the view to eliminate the row corresponding to the deleted item...&quot;]]></description>
		<content:encoded><![CDATA[<p>Hello Kris,<br />
   thanks for a great and insightful blog up there, here is a point i will like to draw your attention to is the following portion from your blog.<br />
     In a nutshell my concern is whereas the elegant use of MVC as u have mentioned seems to be (flow of control and data) view &#8211;&gt; controller &#8211;&gt; model and back the same way . There are some situations where calling the model directly from view makes more immediate sense thus bypassing controller . Do you think that this might break the decoupling we try to achieve in mvc or the pragmatism of bypassing controller just weighs too much on this ?? Let me know ur thoughts.</p>
<p>&#8220;..Rather, you can add an event handler for the button that will call the deleteItem method on the store (defined by the dojo data API) for the selected item, which is effectively controller code interacting with the model (the item from the store). The store will then send a notification event to the grid, which will update the view to eliminate the row corresponding to the deleted item&#8230;&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
