<?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 on: Managing A Modal Dialog With Backbone And Marionette</title>
	<atom:link href="http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/</link>
	<description>Better Than Yesterday</description>
	<lastBuildDate>Mon, 20 May 2013 17:13:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: ivan</title>
		<link>http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/#comment-3170</link>
		<dc:creator>ivan</dc:creator>
		<pubDate>Sat, 30 Mar 2013 21:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=891#comment-3170</guid>
		<description>this is way too much code... what is the benefit of doing bootstrap modals this way?</description>
		<content:encoded><![CDATA[<p>this is way too much code&#8230; what is the benefit of doing bootstrap modals this way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/#comment-3138</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 21 Mar 2013 14:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=891#comment-3138</guid>
		<description>Thanks for the image.  Not sure what my problem is.  After seeing the image I looked at the page source and it had the code that was in the image.


Thanks again,


Andrew</description>
		<content:encoded><![CDATA[<p>Thanks for the image.  Not sure what my problem is.  After seeing the image I looked at the page source and it had the code that was in the image.</p>
<p>Thanks again,</p>
<p>Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derick Bailey</title>
		<link>http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/#comment-3137</link>
		<dc:creator>Derick Bailey</dc:creator>
		<pubDate>Thu, 21 Mar 2013 13:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=891#comment-3137</guid>
		<description>The code examples are hosted by github gists. Is it possible that your firewall is preventing the gist from loading? or perhaps another network issue is preventing it? Here&#039;s a screenshot of what I see in that section of the post: http://cl.ly/image/0e2n3c112g1h</description>
		<content:encoded><![CDATA[<p>The code examples are hosted by github gists. Is it possible that your firewall is preventing the gist from loading? or perhaps another network issue is preventing it? Here&#8217;s a screenshot of what I see in that section of the post: <a href="http://cl.ly/image/0e2n3c112g1h" rel="nofollow">http://cl.ly/image/0e2n3c112g1h</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew</title>
		<link>http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/#comment-3136</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Thu, 21 Mar 2013 13:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=891#comment-3136</guid>
		<description>Hey Derick,

  Is this article missing the code?  I see:

&quot; I will supply the content for the modal through a Backbone view, which looks like this:

How easy is that?&quot;

Shouldn&#039;t there be code between &quot;which looks like this:&quot;  &lt;code&gt; and &quot;How easy is that?&quot;



Thanks Andrew</description>
		<content:encoded><![CDATA[<p>Hey Derick,</p>
<p>  Is this article missing the code?  I see:</p>
<p>&#8221; I will supply the content for the modal through a Backbone view, which looks like this:</p>
<p>How easy is that?&#8221;</p>
<p>Shouldn&#8217;t there be code between &#8220;which looks like this:&#8221;  <code> and "How easy is that?"</p>
<p>Thanks Andrew</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tonthon</title>
		<link>http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/#comment-3107</link>
		<dc:creator>tonthon</dc:creator>
		<pubDate>Mon, 11 Mar 2013 10:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=891#comment-3107</guid>
		<description>Since I struggled quite a lot to get it work fine with jquery dialog, I end up with sharing my code. Combining the following region with a view implementing onBeforeClose and onClose methods, I&#039;m able to handle the most use cases.
Hope this can help



var Popup = Backbone.Marionette.Region.extend({                                       
  el: &quot;#modal&quot;,                                                                 
  title:&quot;My title&quot;,
  constructor:function(){                                                       
    _.bindAll(this);                                                            
    Backbone.Marionette.Region.prototype.constructor.apply(this, arguments);    
  },                                                                            
  getEl: function(selector){                                                    
    var $el = $(selector);                                                      
    return $el;                                                                 
  },                                                                            
  onShow: function(view){                                                                 
    var this_ = this;                                                           
    view.on(&quot;close&quot;, this.closeModal, this);                                    
    this.$el.dialog({                                                           
        resize:&#039;auto&#039;,                                                          
        modal:true,                                                             
        width:&quot;auto&quot;,                                                           
        height:&quot;auto&quot;,                                                          
        title:this_.title,                                                      
        hide: &quot;fadeOut&quot;,                                                        
        close:function(event, ui){                                              
          this_.close();                                                        
        }                                                                       
    });                                                                         
  },
  closeModal: function(){                                                       
    if (this.$el.dialog(&quot;isOpen&quot;)){                                             
      this.$el.dialog(&quot;close&quot;);                                                 
    }                                                
  }    
});</description>
		<content:encoded><![CDATA[<p>Since I struggled quite a lot to get it work fine with jquery dialog, I end up with sharing my code. Combining the following region with a view implementing onBeforeClose and onClose methods, I&#8217;m able to handle the most use cases.<br />
Hope this can help</p>
<p>var Popup = Backbone.Marionette.Region.extend({<br />
  el: &#8220;#modal&#8221;,<br />
  title:&#8221;My title&#8221;,<br />
  constructor:function(){<br />
    _.bindAll(this);<br />
    Backbone.Marionette.Region.prototype.constructor.apply(this, arguments);<br />
  },<br />
  getEl: function(selector){<br />
    var $el = $(selector);<br />
    return $el;<br />
  },<br />
  onShow: function(view){<br />
    var this_ = this;<br />
    view.on(&#8220;close&#8221;, this.closeModal, this);<br />
    this.$el.dialog({<br />
        resize:&#8217;auto&#8217;,<br />
        modal:true,<br />
        width:&#8221;auto&#8221;,<br />
        height:&#8221;auto&#8221;,<br />
        title:this_.title,<br />
        hide: &#8220;fadeOut&#8221;,<br />
        close:function(event, ui){<br />
          this_.close();<br />
        }<br />
    });<br />
  },<br />
  closeModal: function(){<br />
    if (this.$el.dialog(&#8220;isOpen&#8221;)){<br />
      this.$el.dialog(&#8220;close&#8221;);<br />
    }<br />
  }<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AP Fritts</title>
		<link>http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/#comment-2973</link>
		<dc:creator>AP Fritts</dc:creator>
		<pubDate>Wed, 09 Jan 2013 02:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=891#comment-2973</guid>
		<description>Technically, when you click off or close a modal, it just hides it...it doesn&#039;t close the Backbone Marionette View. The view is automatically closed for you the next time you show a modal but it might be a little cleaner to close the modal so that any events associated with it don&#039;t accidentally fire .... which probably indicates another problem in the code but better be safe than sorry?</description>
		<content:encoded><![CDATA[<p>Technically, when you click off or close a modal, it just hides it&#8230;it doesn&#8217;t close the Backbone Marionette View. The view is automatically closed for you the next time you show a modal but it might be a little cleaner to close the modal so that any events associated with it don&#8217;t accidentally fire &#8230;. which probably indicates another problem in the code but better be safe than sorry?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AP Fritts</title>
		<link>http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/#comment-2972</link>
		<dc:creator>AP Fritts</dc:creator>
		<pubDate>Wed, 09 Jan 2013 01:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=891#comment-2972</guid>
		<description>If you run into a problem with the modal hiding on the page and not up front, try adding: 

class=&quot;modal hide fade&quot;

To the #modal div.</description>
		<content:encoded><![CDATA[<p>If you run into a problem with the modal hiding on the page and not up front, try adding: </p>
<p>class=&#8221;modal hide fade&#8221;</p>
<p>To the #modal div.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tonthon</title>
		<link>http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/#comment-2958</link>
		<dc:creator>tonthon</dc:creator>
		<pubDate>Mon, 31 Dec 2012 13:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=891#comment-2958</guid>
		<description>I tried the provided example with the jquery simplemodal plugin, but I had to add a call to the getEl method after closing the modal dialog (overriding the ensureEl method was another way to come to the same solution).</description>
		<content:encoded><![CDATA[<p>I tried the provided example with the jquery simplemodal plugin, but I had to add a call to the getEl method after closing the modal dialog (overriding the ensureEl method was another way to come to the same solution).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmad Khatib</title>
		<link>http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/#comment-2846</link>
		<dc:creator>Ahmad Khatib</dc:creator>
		<pubDate>Mon, 19 Nov 2012 19:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=891#comment-2846</guid>
		<description>Just upgraded from 0.1 to 1.0-beta5 and had to make this change as well.</description>
		<content:encoded><![CDATA[<p>Just upgraded from 0.1 to 1.0-beta5 and had to make this change as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luca Canducci</title>
		<link>http://lostechies.com/derickbailey/2012/04/17/managing-a-modal-dialog-with-backbone-and-marionette/#comment-2828</link>
		<dc:creator>Luca Canducci</dc:creator>
		<pubDate>Mon, 05 Nov 2012 17:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=891#comment-2828</guid>
		<description>Great article, thanks!

For me it worked changing this line:
this.on(&quot;view:show&quot;, this.showModal, this);
into this:
this.on(&quot;show&quot;, this.showModal, this);

Does it make any sense to you?</description>
		<content:encoded><![CDATA[<p>Great article, thanks!</p>
<p>For me it worked changing this line:<br />
this.on(&#8220;view:show&#8221;, this.showModal, this);<br />
into this:<br />
this.on(&#8220;show&#8221;, this.showModal, this);</p>
<p>Does it make any sense to you?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
