<?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>Kommentarer til Hvem glor - din bror</title>
	<atom:link href="http://dinbror.dk/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://dinbror.dk/blog</link>
	<description>Den ikke-så-personlige blog af Bjørn Klinggaard</description>
	<lastBuildDate>Sun, 05 Sep 2010 15:09:11 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Kommentar til bPopup af dinbror</title>
		<link>http://dinbror.dk/blog/bpopup/comment-page-1/#comment-857</link>
		<dc:creator>dinbror</dc:creator>
		<pubDate>Sun, 05 Sep 2010 15:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://dinbror.dk/blog/?p=390#comment-857</guid>
		<description>Hey Earl.

If you&#039;re using bPopup version 0.3.6 you can use &quot;loadUrl&quot; to load the selected video. E.g:

&lt;strong&gt;Scripting:&lt;/strong&gt;&lt;code&gt;
$(document).ready(function() {
   $(&#039;.anchorLink&#039;).bind(&#039;click&#039;, function(e) {
      e.preventDefault();
      var linkToVideo = $(this).attr(&#039;href&#039;);
      $(&#039;#hidden_div&#039;).openPopup({loadUrl: linkToVideo});
   });
});
&lt;/code&gt;

&lt;strong&gt;HTML:&lt;/strong&gt;&lt;code&gt;
&lt; a href=&quot;Link to video&quot; class=&quot;anchorLink&quot;&gt;Click Here&lt; /a&gt;
&lt; div id=&quot;hidden_div&quot;&gt;&lt; /div&gt;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hey Earl.</p>
<p>If you&#8217;re using bPopup version 0.3.6 you can use &#8220;loadUrl&#8221; to load the selected video. E.g:</p>
<p><strong>Scripting:</strong><code><br />
$(document).ready(function() {<br />
   $('.anchorLink').bind('click', function(e) {<br />
      e.preventDefault();<br />
      var linkToVideo = $(this).attr('href');<br />
      $('#hidden_div').openPopup({loadUrl: linkToVideo});<br />
   });<br />
});<br />
</code></p>
<p><strong>HTML:</strong><code><br />
< a href="Link to video" class="anchorLink">Click Here< /a><br />
< div id="hidden_div">< /div><br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til bPopup af Earl</title>
		<link>http://dinbror.dk/blog/bpopup/comment-page-1/#comment-843</link>
		<dc:creator>Earl</dc:creator>
		<pubDate>Fri, 03 Sep 2010 15:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://dinbror.dk/blog/?p=390#comment-843</guid>
		<description>I have successfully embedded a windows media file in the modal window, however, when the window closes it continues to play. 

I have several hidden DIVs on the load of the page. Once a link is clicked it shows one of four videos.

I have called the video into the window inline and through the use of another page, neither work. Is there something that I can add to the close function to destroy the modal completely without removing it from the DOM? I want users to be able to be able to play the video again if necessary.</description>
		<content:encoded><![CDATA[<p>I have successfully embedded a windows media file in the modal window, however, when the window closes it continues to play. </p>
<p>I have several hidden DIVs on the load of the page. Once a link is clicked it shows one of four videos.</p>
<p>I have called the video into the window inline and through the use of another page, neither work. Is there something that I can add to the close function to destroy the modal completely without removing it from the DOM? I want users to be able to be able to play the video again if necessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til bPopup af dinbror</title>
		<link>http://dinbror.dk/blog/bpopup/comment-page-1/#comment-842</link>
		<dc:creator>dinbror</dc:creator>
		<pubDate>Fri, 03 Sep 2010 15:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://dinbror.dk/blog/?p=390#comment-842</guid>
		<description>Hej Martin!

Mange tak - Hvis du har et live eksempel må du meget gerne vise det :)
God weekend</description>
		<content:encoded><![CDATA[<p>Hej Martin!</p>
<p>Mange tak &#8211; Hvis du har et live eksempel må du meget gerne vise det <img src='http://dinbror.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
God weekend</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til bPopup af Martin Kollerup</title>
		<link>http://dinbror.dk/blog/bpopup/comment-page-1/#comment-839</link>
		<dc:creator>Martin Kollerup</dc:creator>
		<pubDate>Thu, 02 Sep 2010 19:55:58 +0000</pubDate>
		<guid isPermaLink="false">http://dinbror.dk/blog/?p=390#comment-839</guid>
		<description>Hej! :D

Det her er et fantastisk arbejde! Klap dig selv på skulderen, og bliv ved med det gode arbejde! :D</description>
		<content:encoded><![CDATA[<p>Hej! <img src='http://dinbror.dk/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Det her er et fantastisk arbejde! Klap dig selv på skulderen, og bliv ved med det gode arbejde! <img src='http://dinbror.dk/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til bPopup af Andrew</title>
		<link>http://dinbror.dk/blog/bpopup/comment-page-1/#comment-814</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Tue, 31 Aug 2010 23:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://dinbror.dk/blog/?p=390#comment-814</guid>
		<description>Excellent thanks for your help, its working perfect. 
Can&#039;t believe I missed that in the API.</description>
		<content:encoded><![CDATA[<p>Excellent thanks for your help, its working perfect.<br />
Can&#8217;t believe I missed that in the API.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til bPopup af dinbror</title>
		<link>http://dinbror.dk/blog/bpopup/comment-page-1/#comment-811</link>
		<dc:creator>dinbror</dc:creator>
		<pubDate>Tue, 31 Aug 2010 17:12:25 +0000</pubDate>
		<guid isPermaLink="false">http://dinbror.dk/blog/?p=390#comment-811</guid>
		<description>&lt;strong&gt;@James:&lt;/strong&gt;
Hey James. Thank you. 
1) You can adjust the position on the y axis (vertical)  but not x (horizontal). It&#039;ll always center the popup on the x axis. Maybe I should include this feature?
2) I would do the postback stuff and then trig the close event. In this way you&#039;ll keep the fade out effect. 

&lt;strong&gt;@Andrew:&lt;/strong&gt; 
Hey Andrew. Glad you like it. If you&#039;re playing with asp(x) sites I would recommend to append it to &#039;form&#039;. As default it appends to body.

&lt;blockquote&gt;
FROM THE API
appendTo [string] (’body’): Element to append popup (and modal overlay) to. For asp.net sites append to ‘form’.
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p><strong>@James:</strong><br />
Hey James. Thank you.<br />
1) You can adjust the position on the y axis (vertical)  but not x (horizontal). It&#8217;ll always center the popup on the x axis. Maybe I should include this feature?<br />
2) I would do the postback stuff and then trig the close event. In this way you&#8217;ll keep the fade out effect. </p>
<p><strong>@Andrew:</strong><br />
Hey Andrew. Glad you like it. If you&#8217;re playing with asp(x) sites I would recommend to append it to &#8216;form&#8217;. As default it appends to body.</p>
<blockquote><p>
FROM THE API<br />
appendTo [string] (’body’): Element to append popup (and modal overlay) to. For asp.net sites append to ‘form’.
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til bPopup af Andrew</title>
		<link>http://dinbror.dk/blog/bpopup/comment-page-1/#comment-807</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Tue, 31 Aug 2010 10:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://dinbror.dk/blog/?p=390#comment-807</guid>
		<description>Hi, excellent popup.
I have a similiar issue to Rashed where form controls within the popup do not post back.
From what I can see, when the popup is displayed the popup div that was inside the form tags, gets re-created ouside the form tags and hence the problem. example:

The code prior to opening the popup:




	
		
		
		
	




The code as viewed from developer tools in IE8 after the popup is displayed:






	
	
	



I&#039;m unable to place the form inside the popup div as there are other form controls outside the popup. Is there an option I can set to stop the code relocating my div?

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hi, excellent popup.<br />
I have a similiar issue to Rashed where form controls within the popup do not post back.<br />
From what I can see, when the popup is displayed the popup div that was inside the form tags, gets re-created ouside the form tags and hence the problem. example:</p>
<p>The code prior to opening the popup:</p>
<p>The code as viewed from developer tools in IE8 after the popup is displayed:</p>
<p>I&#8217;m unable to place the form inside the popup div as there are other form controls outside the popup. Is there an option I can set to stop the code relocating my div?</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til bPopup af James</title>
		<link>http://dinbror.dk/blog/bpopup/comment-page-1/#comment-794</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 30 Aug 2010 00:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://dinbror.dk/blog/?p=390#comment-794</guid>
		<description>Hey, great popup. It&#039;s working wonders but I have a few issues.

Firstly, I need to set a different position on the x axis everytime i do a poup. Because the images are loaded dynamically depending on what I clicked. Is this possible?. 

Secondly, Im trying to do a &quot;Forgotten Password&quot; bPopup. Which is fine, but is there a way to do the postback once the bpopup has closed? Because at the moment, it will just dissapear and doesnt get to fade.

Thanks, and awesome work!</description>
		<content:encoded><![CDATA[<p>Hey, great popup. It&#8217;s working wonders but I have a few issues.</p>
<p>Firstly, I need to set a different position on the x axis everytime i do a poup. Because the images are loaded dynamically depending on what I clicked. Is this possible?. </p>
<p>Secondly, Im trying to do a &#8220;Forgotten Password&#8221; bPopup. Which is fine, but is there a way to do the postback once the bpopup has closed? Because at the moment, it will just dissapear and doesnt get to fade.</p>
<p>Thanks, and awesome work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til bPopup af Bill</title>
		<link>http://dinbror.dk/blog/bpopup/comment-page-1/#comment-755</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Wed, 25 Aug 2010 19:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://dinbror.dk/blog/?p=390#comment-755</guid>
		<description>Thanks! That did the trick.</description>
		<content:encoded><![CDATA[<p>Thanks! That did the trick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til bPopup af dinbror</title>
		<link>http://dinbror.dk/blog/bpopup/comment-page-1/#comment-751</link>
		<dc:creator>dinbror</dc:creator>
		<pubDate>Wed, 25 Aug 2010 18:00:08 +0000</pubDate>
		<guid isPermaLink="false">http://dinbror.dk/blog/?p=390#comment-751</guid>
		<description>&lt;blockquote cite=&quot;#commentbody-740&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-740&quot; rel=&quot;nofollow&quot;&gt;Bill&lt;/a&gt; :&lt;/strong&gt;
&lt;p&gt;&lt;a href=&quot;#comment-676&quot; rel=&quot;nofollow&quot;&gt;@dinbror &lt;/a&gt; I’ve dropped this into my script but it’s not closing the popup. &lt;/p&gt;
&lt;p&gt;        $(document).ready(function(){&lt;br&gt;
   $(”a#badar”).bind(’click’, function(){&lt;br&gt;
              $(”#badar_popup”).openPopup({modal:true, modalColor:’#333′, opacity:.5});&lt;br&gt;
   });&lt;/p&gt;
&lt;p&gt;   $(’#bModal’).bind(’click’, function() {&lt;br&gt;
$(’.bClose’).closePopup();&lt;br&gt;
});&lt;br&gt;
         });&lt;/p&gt;
&lt;p&gt;Can you see anything I’m doing wrong? Thanks!&lt;/p&gt;
&lt;/blockquote&gt;

Hey Bill.
You have to use &lt;a href=&quot;http://api.jquery.com/live/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;live&lt;/strong&gt;&lt;/a&gt; instead of bind to ensure that the click event is there:
&lt;code&gt;
$(&#039;#bModal&#039;).live(&#039;click&#039;, function() {
$(&#039;.bClose&#039;).closePopup();
});
&lt;/code&gt;
The reason is that the element (#bModal) first will be created when you open the popup (after the document is ready and the events are declared). Otherwise you need to include the overlay div in the document from the beginning.
I&#039;ll include the feature in the next update!


&lt;blockquote cite=&quot;#commentbody-747&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-747&quot; rel=&quot;nofollow&quot;&gt;Lanre&lt;/a&gt; :&lt;/strong&gt;
&lt;p&gt;Please how do i implement this directly on a link. e.g&lt;br&gt;
&lt;code&gt;&lt; a href=&quot;#&quot;&gt;Open popup&lt; /a&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

Hey Lance.
You need to give your anchor a click event e.g:
&lt;code&gt;
&lt; script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
   $(&#039;a&#039;).bind(&#039;click&#039;, function(){
       $(&#039;#Element_to_open&#039;).openPopup();
   });
});
&lt; /script&gt;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-740"><p>
<strong><a href="#comment-740" rel="nofollow">Bill</a> :</strong></p>
<p><a href="#comment-676" rel="nofollow">@dinbror </a> I’ve dropped this into my script but it’s not closing the popup. </p>
<p>        $(document).ready(function(){<br />
   $(”a#badar”).bind(’click’, function(){<br />
              $(”#badar_popup”).openPopup({modal:true, modalColor:’#333′, opacity:.5});<br />
   });</p>
<p>   $(’#bModal’).bind(’click’, function() {<br />
$(’.bClose’).closePopup();<br />
});<br />
         });</p>
<p>Can you see anything I’m doing wrong? Thanks!</p>
</blockquote>
<p>Hey Bill.<br />
You have to use <a href="http://api.jquery.com/live/" rel="nofollow"><strong>live</strong></a> instead of bind to ensure that the click event is there:<br />
<code><br />
$('#bModal').live('click', function() {<br />
$('.bClose').closePopup();<br />
});<br />
</code><br />
The reason is that the element (#bModal) first will be created when you open the popup (after the document is ready and the events are declared). Otherwise you need to include the overlay div in the document from the beginning.<br />
I&#8217;ll include the feature in the next update!</p>
<blockquote cite="#commentbody-747"><p>
<strong><a href="#comment-747" rel="nofollow">Lanre</a> :</strong></p>
<p>Please how do i implement this directly on a link. e.g<br />
<code>&lt; a href="#"&gt;Open popup&lt; /a&gt;</code></p>
</blockquote>
<p>Hey Lance.<br />
You need to give your anchor a click event e.g:<br />
<code><br />
< script type="text/javascript"><br />
$(document).ready(function(){<br />
   $('a').bind('click', function(){<br />
       $('#Element_to_open').openPopup();<br />
   });<br />
});<br />
< /script><br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
