<?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/"
		>
<channel>
	<title>Comments for John Kalberer</title>
	<atom:link href="http://johnkalberer.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnkalberer.com</link>
	<description></description>
	<lastBuildDate>Wed, 22 Feb 2012 14:22:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Comment on Appcelerator Mvc Example by Einar</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-345</link>
		<dc:creator>Einar</dc:creator>
		<pubDate>Wed, 22 Feb 2012 14:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-345</guid>
		<description>Awesome stuff! Now to try it all out :)

A quick suggestion.. instead of doing this:
&lt;code&gt;if(!v.Accounts) {
    v.Accounts = {};
}&lt;/code&gt;

You can use this shorthand:
&lt;code&gt;v.Accounts = v.Accounts &#124;&#124; {};&lt;/code&gt;

One of &quot;the good parts&quot; of JavaScript that I learned from Douglas Crockford&#039;s book with the same name.</description>
		<content:encoded><![CDATA[<p>Awesome stuff! Now to try it all out <img src='http://johnkalberer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>A quick suggestion.. instead of doing this:<br />
<code>if(!v.Accounts) {<br />
    v.Accounts = {};<br />
}</code></p>
<p>You can use this shorthand:<br />
<code>v.Accounts = v.Accounts || {};</code></p>
<p>One of &#8220;the good parts&#8221; of JavaScript that I learned from Douglas Crockford&#8217;s book with the same name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc Example by Wouter Van den Bosch</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-264</link>
		<dc:creator>Wouter Van den Bosch</dc:creator>
		<pubDate>Wed, 01 Feb 2012 14:02:20 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-264</guid>
		<description>Hi John, Hi Rob,

I&#039;m struggling to create a proper solution for asynchronous requests. Even the above approach doesn&#039;t seem to work for me either.

Has anyone booked any progress on this they&#039;d like to share?

Cheers!
Wouter</description>
		<content:encoded><![CDATA[<p>Hi John, Hi Rob,</p>
<p>I&#8217;m struggling to create a proper solution for asynchronous requests. Even the above approach doesn&#8217;t seem to work for me either.</p>
<p>Has anyone booked any progress on this they&#8217;d like to share?</p>
<p>Cheers!<br />
Wouter</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc Example by JSP</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-188</link>
		<dc:creator>JSP</dc:creator>
		<pubDate>Mon, 16 Jan 2012 10:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-188</guid>
		<description>Thanks a lot for your quick reply, for the moment we have several &quot;templating&quot; functions but we&#039;re gonna re-factor the code to have a unified function and use it as you suggest, as it makes perfect sense : )</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your quick reply, for the moment we have several &#8220;templating&#8221; functions but we&#8217;re gonna re-factor the code to have a unified function and use it as you suggest, as it makes perfect sense : )</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc Example by John Kalberer</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-186</link>
		<dc:creator>John Kalberer</dc:creator>
		<pubDate>Wed, 11 Jan 2012 19:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-186</guid>
		<description>Yeah, you are on the right path.  I would write a helper function that creates all the UI components as well as a &quot;container&quot; view.  Then inside of render instead of the line:

win.add(ui);

You do something like:

var template = CreateTemplateHelper(); // creates the standard view for every page..
template.add(ui);
win.add(template);

If you need additional help on this, just add some source code and I can help you out via email.

John</description>
		<content:encoded><![CDATA[<p>Yeah, you are on the right path.  I would write a helper function that creates all the UI components as well as a &#8220;container&#8221; view.  Then inside of render instead of the line:</p>
<p>win.add(ui);</p>
<p>You do something like:</p>
<p>var template = CreateTemplateHelper(); // creates the standard view for every page..<br />
template.add(ui);<br />
win.add(template);</p>
<p>If you need additional help on this, just add some source code and I can help you out via email.</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc Example by JSP</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-183</link>
		<dc:creator>JSP</dc:creator>
		<pubDate>Mon, 09 Jan 2012 18:48:25 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-183</guid>
		<description>Hi John, 

I&#039;m using this great framework of yours on a project, on which we need to implement a menu similar to the one on the facebook or path applications, revealed under the main window as it slides to the right ( http://cl.ly/231M0O3v3S2W1r1u1R0B - http://cl.ly/1a0Z0K1a0f2X0m1F013B )

Problem is, I don&#039;t understand well enough how your Mvc.render function works.
I&#039;ve successfully added some views to the main window inside this function, but it just doesn&#039;t seem right to add specific UI elements in this generic function...

How would you recommend including app-wide UI components, or using a templating system with this MVC ?</description>
		<content:encoded><![CDATA[<p>Hi John, </p>
<p>I&#8217;m using this great framework of yours on a project, on which we need to implement a menu similar to the one on the facebook or path applications, revealed under the main window as it slides to the right ( <a href="http://cl.ly/231M0O3v3S2W1r1u1R0B" rel="nofollow">http://cl.ly/231M0O3v3S2W1r1u1R0B</a> &#8211; <a href="http://cl.ly/1a0Z0K1a0f2X0m1F013B" rel="nofollow">http://cl.ly/1a0Z0K1a0f2X0m1F013B</a> )</p>
<p>Problem is, I don&#8217;t understand well enough how your Mvc.render function works.<br />
I&#8217;ve successfully added some views to the main window inside this function, but it just doesn&#8217;t seem right to add specific UI elements in this generic function&#8230;</p>
<p>How would you recommend including app-wide UI components, or using a templating system with this MVC ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MVC for Appcelerator by gautier</title>
		<link>http://johnkalberer.com/2011/09/08/mvc-for-appcelerator/#comment-168</link>
		<dc:creator>gautier</dc:creator>
		<pubDate>Thu, 05 Jan 2012 11:49:40 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=49#comment-168</guid>
		<description>HI,

First,
Tk u very much for this framework -&gt; easy to use.

Second,
I would like to return my view (C -&gt; V) in the function xhr.onreadystatechange.

Somethink like this :
xhr.onreadystatechange = function() {
    if (xhr.readyState == 4) {
        c.nameControler.view(&#039;view&#039;, value)
    }
};

but i don&#039;t succeed in

Third,

Sorry i just start in js and in your framework maybe my question is trivial.

Tk u very much.</description>
		<content:encoded><![CDATA[<p>HI,</p>
<p>First,<br />
Tk u very much for this framework -&gt; easy to use.</p>
<p>Second,<br />
I would like to return my view (C -&gt; V) in the function xhr.onreadystatechange.</p>
<p>Somethink like this :<br />
xhr.onreadystatechange = function() {<br />
    if (xhr.readyState == 4) {<br />
        c.nameControler.view(&#8216;view&#8217;, value)<br />
    }<br />
};</p>
<p>but i don&#8217;t succeed in</p>
<p>Third,</p>
<p>Sorry i just start in js and in your framework maybe my question is trivial.</p>
<p>Tk u very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc Example by Maipop</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-166</link>
		<dc:creator>Maipop</dc:creator>
		<pubDate>Wed, 04 Jan 2012 14:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-166</guid>
		<description>Dear John,

First we want to thank you for this amazing work. Titanium community needs guys like you who push things to the next level and take time to help other dev.
We have a problem, something that we don&#039;t succeed. In our view we have created a &quot;pull down to refresh&quot; scroll this calls an action from our controller called UpdateData. This action request new data in our db, map the data to our viewmodel and then we have a problem. 
The problem is that we don&#039;t want to return a new view but  we want to call a function inside our current view ( or update the current view)

Thanks a lot, regards,

Alexis (France)</description>
		<content:encoded><![CDATA[<p>Dear John,</p>
<p>First we want to thank you for this amazing work. Titanium community needs guys like you who push things to the next level and take time to help other dev.<br />
We have a problem, something that we don&#8217;t succeed. In our view we have created a &#8220;pull down to refresh&#8221; scroll this calls an action from our controller called UpdateData. This action request new data in our db, map the data to our viewmodel and then we have a problem.<br />
The problem is that we don&#8217;t want to return a new view but  we want to call a function inside our current view ( or update the current view)</p>
<p>Thanks a lot, regards,</p>
<p>Alexis (France)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Holiday Fun by Wouter Van den Bosch</title>
		<link>http://johnkalberer.com/2011/12/13/holiday-fun/#comment-111</link>
		<dc:creator>Wouter Van den Bosch</dc:creator>
		<pubDate>Thu, 15 Dec 2011 10:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=187#comment-111</guid>
		<description>First time I see an ImpactJS implementation. I know some colleagues who&#039;ll be wanting to look into this. 

In any case, just wanted to thank you for your work on the MVC model this year. It&#039;s proven very valuable to us as Titanium really needs something like this to keep bigger projects stable and well structured.

I myself and the rest of the dev team here at IBBT in Belgium are wishing you all the best for the holidays.

Best regards.</description>
		<content:encoded><![CDATA[<p>First time I see an ImpactJS implementation. I know some colleagues who&#8217;ll be wanting to look into this. </p>
<p>In any case, just wanted to thank you for your work on the MVC model this year. It&#8217;s proven very valuable to us as Titanium really needs something like this to keep bigger projects stable and well structured.</p>
<p>I myself and the rest of the dev team here at IBBT in Belgium are wishing you all the best for the holidays.</p>
<p>Best regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MVC for Appcelerator by Clayton</title>
		<link>http://johnkalberer.com/2011/09/08/mvc-for-appcelerator/#comment-106</link>
		<dc:creator>Clayton</dc:creator>
		<pubDate>Tue, 06 Dec 2011 22:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=49#comment-106</guid>
		<description>Okay, that makes sense.
I&#039;ll follow your suggestions..
Many thanks for the prompt reply.</description>
		<content:encoded><![CDATA[<p>Okay, that makes sense.<br />
I&#8217;ll follow your suggestions..<br />
Many thanks for the prompt reply.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MVC for Appcelerator by John Kalberer</title>
		<link>http://johnkalberer.com/2011/09/08/mvc-for-appcelerator/#comment-105</link>
		<dc:creator>John Kalberer</dc:creator>
		<pubDate>Mon, 05 Dec 2011 17:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=49#comment-105</guid>
		<description>Well, this is a pretty subjective and really depends on what your needs are and your actual thoughts of how the MVC pattern should be applied.  

If you are validating the text input and you are popping up an alert for some reason, you could say that this only has to do with the view so the logic could be placed in the view -- on the flip side, you may think that any validation should be done in the controller so you send a request on each keystroke to an action and populate the ui based on the result of the action.  I would prefer the latter.

Anyway, I should add some modification so you could return any object from an action and only render the object when you call &#039;return this.View()&#039;

In the meantime, in your view call &#039;this.action(&quot;Default&quot;, {value : text.value, result : someBool })&#039; and do not return a value from the controller.  This way you can use &#039;someBool&#039; (or another value as your result) to modify the ui.  Also, since you are not returning a value from the action it will not refresh the UI (like I said, I want to change this so the UI is only updated when you return a view).

Another thing you may want to do is bind the textbox value to the value in the object you send to the validation action (utils.bind).  This way you can modify the textbox inside the action.</description>
		<content:encoded><![CDATA[<p>Well, this is a pretty subjective and really depends on what your needs are and your actual thoughts of how the MVC pattern should be applied.  </p>
<p>If you are validating the text input and you are popping up an alert for some reason, you could say that this only has to do with the view so the logic could be placed in the view &#8212; on the flip side, you may think that any validation should be done in the controller so you send a request on each keystroke to an action and populate the ui based on the result of the action.  I would prefer the latter.</p>
<p>Anyway, I should add some modification so you could return any object from an action and only render the object when you call &#8216;return this.View()&#8217;</p>
<p>In the meantime, in your view call &#8216;this.action(&#8220;Default&#8221;, {value : text.value, result : someBool })&#8217; and do not return a value from the controller.  This way you can use &#8216;someBool&#8217; (or another value as your result) to modify the ui.  Also, since you are not returning a value from the action it will not refresh the UI (like I said, I want to change this so the UI is only updated when you return a view).</p>
<p>Another thing you may want to do is bind the textbox value to the value in the object you send to the validation action (utils.bind).  This way you can modify the textbox inside the action.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

