<?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 Point47</title>
	<atom:link href="http://point47.com/journal/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://point47.com/journal</link>
	<description>a web developer journal</description>
	<lastBuildDate>Wed, 04 Jan 2012 19:23:05 +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 Modal box on page load with jquery fancy box and cookie plugin by Wordpress Plugins by WORDPRESS**** - Pearltrees</title>
		<link>http://point47.com/journal/2010/06/modal-box-on-page-load-with-jquery-fancy-box-and-cookie-plugin/comment-page-1/#comment-31833</link>
		<dc:creator>Wordpress Plugins by WORDPRESS**** - Pearltrees</dc:creator>
		<pubDate>Wed, 04 Jan 2012 19:23:05 +0000</pubDate>
		<guid isPermaLink="false">http://point47.com/journal/?p=127#comment-31833</guid>
		<description>[...] Modal box on page load with jquery fancy box and cookie plugin &#124; &#124; Point47Point47 - jQuery Cookie plugin that you can get from here: http://plugins.jquery.com/project/cookie [...]</description>
		<content:encoded><![CDATA[<p>[...] Modal box on page load with jquery fancy box and cookie plugin | | Point47Point47 &#8211; jQuery Cookie plugin that you can get from here: <a href="http://plugins.jquery.com/project/cookie" rel="nofollow">http://plugins.jquery.com/project/cookie</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CKEditor 3.0 Send and Receive data with AJAX by ReRRemi</title>
		<link>http://point47.com/journal/2009/09/ckeditor-3-0-send-and-receive-data-with-ajax/comment-page-1/#comment-30614</link>
		<dc:creator>ReRRemi</dc:creator>
		<pubDate>Thu, 22 Dec 2011 18:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://point47.com/journal/?p=49#comment-30614</guid>
		<description>Thank you very much!</description>
		<content:encoded><![CDATA[<p>Thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Modal box on page load with jquery fancy box and cookie plugin by Pete</title>
		<link>http://point47.com/journal/2010/06/modal-box-on-page-load-with-jquery-fancy-box-and-cookie-plugin/comment-page-1/#comment-30382</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Tue, 20 Dec 2011 04:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://point47.com/journal/?p=127#comment-30382</guid>
		<description>Just a quick follow-up.  I figured out how to set the auto-close on this script, however the cookie does not activate when the script auto-closes, only when the &#039;ENTER&#039; button is clicked. If anyone has a suggestion on how to activate the cookie when the modal window auto-closes, I would appreciate it.

thanks

Here&#039;s my code:


$(document).ready(function(){

    // !!! SEE THIS PLEASE !!!
    // delete this line to make the modal box load only ONCE
    // if you let it set to &#039;false&#039; it will show every time .. set it to &#039;true&#039; and it will never show


    /**
      *  MODAL BOX
      */
    // if the requested cookie does not have the value I am looking for show the modal box
    if($.cookie(&quot;modal&quot;) != &#039;true&#039;)
    {
        var _message_to_show = &#039;&lt;!--[if !IE]&gt;--&gt;&lt;!--&lt;a href=&quot;http://www.adobe.com/go/getflash&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&lt;!--[if !IE]&gt;--&gt;&lt;!--&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;ENTER&lt;/a&gt;&#039;;

        // on page load show the modal box
        // more info about the options you can find on the fancybox site
        $.fancybox(
            _message_to_show,
            {
                &#039;width&#039;             : 400,
                &#039;height&#039;            : 300,
                &#039;transitionIn&#039;      : &#039;none&#039;,
                &#039;transitionOut&#039;     : &#039;elastic&#039;,
                &#039;centerOnScroll&#039;    : &#039;true&#039;,
                &#039;overlayOpacity&#039;    : 0.9,
                &#039;overlayColor&#039;      : &#039;#000&#039;,
                &#039;modal&#039;             : &#039;true&#039;
            }
        );

        // in the message is a link with the id &quot;modal_close&quot;
        // when you click on that link the modal will close and the cookie is set to &quot;true&quot;
        // path &quot;/&quot; means it&#039;s active for the entire root site.. if you set it to &quot;/admin&quot; will be active on the &quot;admin&quot; folder
        // expires in 7 days
        // &quot;modal&quot; is the name i gave the cookie.. you can name it anything you want
		

        $(&#039;#modal_close&#039;).live(&#039;click&#039;, function(e) {
            e.preventDefault();
            $.cookie(&quot;modal&quot;, &quot;true&quot;, { path: &#039;/&#039;, expires: 7 });

            $.fancybox.close()
			setTimeout (&#039;$.fancybox.close ()&#039;, 12000); 
        });
    }

});


</description>
		<content:encoded><![CDATA[<p>Just a quick follow-up.  I figured out how to set the auto-close on this script, however the cookie does not activate when the script auto-closes, only when the &#8216;ENTER&#8217; button is clicked. If anyone has a suggestion on how to activate the cookie when the modal window auto-closes, I would appreciate it.</p>
<p>thanks</p>
<p>Here&#8217;s my code:</p>
<p>$(document).ready(function(){</p>
<p>    // !!! SEE THIS PLEASE !!!<br />
    // delete this line to make the modal box load only ONCE<br />
    // if you let it set to &#8216;false&#8217; it will show every time .. set it to &#8216;true&#8217; and it will never show</p>
<p>    /**<br />
      *  MODAL BOX<br />
      */<br />
    // if the requested cookie does not have the value I am looking for show the modal box<br />
    if($.cookie(&#8220;modal&#8221;) != &#8216;true&#8217;)<br />
    {<br />
        var _message_to_show = &#8216;<!--[if !IE]&gt;-->&lt;!&#8211;<a href="http://www.adobe.com/go/getflash" rel="nofollow"></a><!--[if !IE]&gt;-->&lt;!&#8211;<a href="#" rel="nofollow">ENTER</a>&#8216;;</p>
<p>        // on page load show the modal box<br />
        // more info about the options you can find on the fancybox site<br />
        $.fancybox(<br />
            _message_to_show,<br />
            {<br />
                &#8216;width&#8217;             : 400,<br />
                &#8216;height&#8217;            : 300,<br />
                &#8216;transitionIn&#8217;      : &#8216;none&#8217;,<br />
                &#8216;transitionOut&#8217;     : &#8216;elastic&#8217;,<br />
                &#8216;centerOnScroll&#8217;    : &#8216;true&#8217;,<br />
                &#8216;overlayOpacity&#8217;    : 0.9,<br />
                &#8216;overlayColor&#8217;      : &#8216;#000&#8242;,<br />
                &#8216;modal&#8217;             : &#8216;true&#8217;<br />
            }<br />
        );</p>
<p>        // in the message is a link with the id &#8220;modal_close&#8221;<br />
        // when you click on that link the modal will close and the cookie is set to &#8220;true&#8221;<br />
        // path &#8220;/&#8221; means it&#8217;s active for the entire root site.. if you set it to &#8220;/admin&#8221; will be active on the &#8220;admin&#8221; folder<br />
        // expires in 7 days<br />
        // &#8220;modal&#8221; is the name i gave the cookie.. you can name it anything you want</p>
<p>        $(&#8216;#modal_close&#8217;).live(&#8216;click&#8217;, function(e) {<br />
            e.preventDefault();<br />
            $.cookie(&#8220;modal&#8221;, &#8220;true&#8221;, { path: &#8216;/&#8217;, expires: 7 });</p>
<p>            $.fancybox.close()<br />
			setTimeout (&#8216;$.fancybox.close ()&#8217;, 12000);<br />
        });<br />
    }</p>
<p>});</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cute Bubbles &#8211; WordPress Theme &#8211; Updated by Rezwan</title>
		<link>http://point47.com/journal/2009/01/cute-bubbles-wordpress-theme/comment-page-1/#comment-29950</link>
		<dc:creator>Rezwan</dc:creator>
		<pubDate>Thu, 15 Dec 2011 06:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://point47.com/journal/?p=29#comment-29950</guid>
		<description>Hello
The theme is very excellent.
Another one of the best theme i have ever seen.
but problem is that SEARCH PROBLEM.

I am not getting solve the search option
any one has solve the search option ???</description>
		<content:encoded><![CDATA[<p>Hello<br />
The theme is very excellent.<br />
Another one of the best theme i have ever seen.<br />
but problem is that SEARCH PROBLEM.</p>
<p>I am not getting solve the search option<br />
any one has solve the search option ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Modal box on page load with jquery fancy box and cookie plugin by Pete</title>
		<link>http://point47.com/journal/2010/06/modal-box-on-page-load-with-jquery-fancy-box-and-cookie-plugin/comment-page-1/#comment-29385</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Thu, 08 Dec 2011 14:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://point47.com/journal/?p=127#comment-29385</guid>
		<description>Does anyone know how to implement an autoclose after x seconds for this? I&#039;ve tried to code it unsuccessfully. 

Thanks for the great script!
Cheers,</description>
		<content:encoded><![CDATA[<p>Does anyone know how to implement an autoclose after x seconds for this? I&#8217;ve tried to code it unsuccessfully. </p>
<p>Thanks for the great script!<br />
Cheers,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Modal box on page load with jquery fancy box and cookie plugin by jj</title>
		<link>http://point47.com/journal/2010/06/modal-box-on-page-load-with-jquery-fancy-box-and-cookie-plugin/comment-page-1/#comment-29182</link>
		<dc:creator>jj</dc:creator>
		<pubDate>Tue, 06 Dec 2011 20:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://point47.com/journal/?p=127#comment-29182</guid>
		<description>Hi man, one question, how i can add the button close in the corner (X) to the first code (code posted by sorin)?

Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Hi man, one question, how i can add the button close in the corner (X) to the first code (code posted by sorin)?</p>
<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Post data from Actionscript 3 to PHP by Davide Ganz</title>
		<link>http://point47.com/journal/2010/06/post-data-from-actionscript-3-to-php/comment-page-1/#comment-28206</link>
		<dc:creator>Davide Ganz</dc:creator>
		<pubDate>Fri, 25 Nov 2011 13:59:12 +0000</pubDate>
		<guid isPermaLink="false">http://point47.com/journal/?p=123#comment-28206</guid>
		<description>Insightful &amp; clear Tutorial!
Well Done
Many Thanks :)</description>
		<content:encoded><![CDATA[<p>Insightful &amp; clear Tutorial!<br />
Well Done<br />
Many Thanks <img src='http://point47.com/journal/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Modal box on page load with jquery fancy box and cookie plugin by daniel</title>
		<link>http://point47.com/journal/2010/06/modal-box-on-page-load-with-jquery-fancy-box-and-cookie-plugin/comment-page-1/#comment-26663</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Tue, 01 Nov 2011 00:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://point47.com/journal/?p=127#comment-26663</guid>
		<description>@markimark

Thanks! This worked perfect.</description>
		<content:encoded><![CDATA[<p>@markimark</p>
<p>Thanks! This worked perfect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Modal box on page load with jquery fancy box and cookie plugin by markimark</title>
		<link>http://point47.com/journal/2010/06/modal-box-on-page-load-with-jquery-fancy-box-and-cookie-plugin/comment-page-1/#comment-24936</link>
		<dc:creator>markimark</dc:creator>
		<pubDate>Fri, 07 Oct 2011 18:18:58 +0000</pubDate>
		<guid isPermaLink="false">http://point47.com/journal/?p=127#comment-24936</guid>
		<description>Did anyone notice that @Ben Landon with his post on 02/03/2011 was the only one that got the code right for having the modal closed when clicked on the overlay??

Thank you Ben!

The pasted code however, is a mess with a lot of wrong or wrong placed characters. If you copy the code that he provided, you need to clean it afterwards.

This is a cleaned version, for ie:
&lt;code&gt;
$(document).ready(function() {

// if the requested cookie does not have the value I am looking for show the modal box
if($.cookie(&quot;modal&quot;) != &#039;true&#039;)
{
var _message_to_show = &#039;nice styled content&#039;;

// on page load show the modal box

$.fancybox(
_message_to_show,
{
&#039;padding&#039;:10,
&#039;width&#039;             : 960,
&#039;height&#039;            : 450,
&#039;type&#039;              : &#039;iframe&#039;,
&#039;scrolling&#039;	        : &#039;no&#039;,
&#039;hideOnContentClick&#039;: &#039;true&#039;,
&#039;overlayOpacity&#039;: 0.8,
&#039;overlayColor&#039;:&#039;#000&#039;,
&#039;onClosed&#039; : function() {
$.cookie(&quot;modal&quot;, &quot;true&quot;, { path: &#039;/&#039;, expires: 7 });
}
});
}
});
&lt;/code&gt;

Maybe that can help someone else. It helped me. Thanks again.</description>
		<content:encoded><![CDATA[<p>Did anyone notice that @Ben Landon with his post on 02/03/2011 was the only one that got the code right for having the modal closed when clicked on the overlay??</p>
<p>Thank you Ben!</p>
<p>The pasted code however, is a mess with a lot of wrong or wrong placed characters. If you copy the code that he provided, you need to clean it afterwards.</p>
<p>This is a cleaned version, for ie:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:610px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$(document).ready(function() {<br />
<br />
// if the requested cookie does not have the value I am looking for show the modal box<br />
if($.cookie(&quot;modal&quot;) != 'true')<br />
{<br />
var _message_to_show = 'nice styled content';<br />
<br />
// on page load show the modal box<br />
<br />
$.fancybox(<br />
_message_to_show,<br />
{<br />
'padding':10,<br />
'width' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : 960,<br />
'height' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 450,<br />
'type' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 'iframe',<br />
'scrolling' &nbsp; &nbsp; &nbsp; &nbsp; : 'no',<br />
'hideOnContentClick': 'true',<br />
'overlayOpacity': 0.8,<br />
'overlayColor':'#000',<br />
'onClosed' : function() {<br />
$.cookie(&quot;modal&quot;, &quot;true&quot;, { path: '/', expires: 7 });<br />
}<br />
});<br />
}<br />
});</div></td></tr></tbody></table></div>
<p>Maybe that can help someone else. It helped me. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Modal box on page load with jquery fancy box and cookie plugin by markimark</title>
		<link>http://point47.com/journal/2010/06/modal-box-on-page-load-with-jquery-fancy-box-and-cookie-plugin/comment-page-1/#comment-24933</link>
		<dc:creator>markimark</dc:creator>
		<pubDate>Fri, 07 Oct 2011 16:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://point47.com/journal/?p=127#comment-24933</guid>
		<description>I can try whatever I want, it is not closing if the overlay is clicked. This is my setup right now:

&lt;code&gt;
jQuery(function($){
				if($.cookie(&quot;intro&quot;) != &#039;true&#039;)
    			{
				window.onload = function() {loadIntro().trigger(&#039;click&#039;);}
				$.cookie(&quot;intro&quot;, &quot;true&quot;, { Path: &#039;/&#039;, expires: 7 });
    			}    
		    });

/* loadIntro */
function loadIntro() {
  // ------------------ loading customers intro page
	$.fancybox({
		&#039;padding&#039;	        : 0,
		&#039;width&#039;             : 960,
		&#039;height&#039;            : 450,
		&#039;scrolling&#039;	        : &#039;no&#039;,
		&#039;autoScale&#039;         : &#039;false&#039;,
		&#039;transitionIn&#039;      : &#039;none&#039;,
		&#039;transitionOut&#039;     : &#039;none&#039;,
		&#039;showCloseButton&#039;   : &#039;true&#039;,
		&#039;modal&#039;             : &#039;false&#039;,
		&#039;hideOnOverlayClick&#039;: &#039;true&#039;,
		&#039;type&#039;              : &#039;iframe&#039;,
		&#039;overlayColor&#039;      :  &#039;#333333&#039;,
		&#039;overlayOpacity&#039;      :  &#039;0.8&#039;,
		&#039;href&#039;: &#039;http://markimark/blog/&#039;
	});
}
&lt;/code&gt;

Does anybody have a solution for this. It should close but it isn´t....

Thanks for any help.</description>
		<content:encoded><![CDATA[<p>I can try whatever I want, it is not closing if the overlay is clicked. This is my setup right now:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:610px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">jQuery(function($){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($.cookie(&quot;intro&quot;) != 'true')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; window.onload = function() {loadIntro().trigger('click');}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.cookie(&quot;intro&quot;, &quot;true&quot;, { Path: '/', expires: 7 });<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
/* loadIntro */<br />
function loadIntro() {<br />
&nbsp; // ------------------ loading customers intro page<br />
&nbsp; &nbsp; $.fancybox({<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'padding' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : 0,<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'width' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : 960,<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'height' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 450,<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'scrolling' &nbsp; &nbsp; &nbsp; &nbsp; : 'no',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'autoScale' &nbsp; &nbsp; &nbsp; &nbsp; : 'false',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'transitionIn' &nbsp; &nbsp; &nbsp;: 'none',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'transitionOut' &nbsp; &nbsp; : 'none',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'showCloseButton' &nbsp; : 'true',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'modal' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : 'false',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'hideOnOverlayClick': 'true',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'type' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 'iframe',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'overlayColor' &nbsp; &nbsp; &nbsp;: &nbsp;'#333333',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'overlayOpacity' &nbsp; &nbsp; &nbsp;: &nbsp;'0.8',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'href': 'http://markimark/blog/'<br />
&nbsp; &nbsp; });<br />
}</div></td></tr></tbody></table></div>
<p>Does anybody have a solution for this. It should close but it isn´t&#8230;.</p>
<p>Thanks for any help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

