<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Matteo Bicocchi&#039;s Blog &#187; javascript</title>
	<atom:link href="http://pupunzi.open-lab.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://pupunzi.open-lab.com</link>
	<description>mb.ideas.repository</description>
	<lastBuildDate>Sun, 12 Feb 2012 12:39:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pupunzi.open-lab.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/f84717aa2c4a99c6f997904a49e41a68?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Matteo Bicocchi&#039;s Blog &#187; javascript</title>
		<link>http://pupunzi.open-lab.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pupunzi.open-lab.com/osd.xml" title="Matteo Bicocchi&#039;s Blog" />
	<atom:link rel='hub' href='http://pupunzi.open-lab.com/?pushpress=hub'/>
		<item>
		<title>mb.YTPlayer updated to version 1.3</title>
		<link>http://pupunzi.open-lab.com/2012/02/12/mb-ytplayer-updated-to-version-1-3/</link>
		<comments>http://pupunzi.open-lab.com/2012/02/12/mb-ytplayer-updated-to-version-1-3/#comments</comments>
		<pubDate>Sun, 12 Feb 2012 12:39:11 +0000</pubDate>
		<dc:creator>Matteo Bicocchi</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mb.ideas.components]]></category>

		<guid isPermaLink="false">http://pupunzi.open-lab.com/?p=2306</guid>
		<description><![CDATA[This is a great update for this component. You can now control the player also when it&#8217;s set as background! Give it a try!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=2306&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://pupunzi.files.wordpress.com/2012/02/ytplayer.jpg"><img class="alignnone size-full wp-image-2307" title="ytplayer" src="http://pupunzi.files.wordpress.com/2012/02/ytplayer.jpg?w=640&#038;h=536" alt="" width="640" height="536" /></a></p>
<p>This is a great update for this component.</p>
<p>You can now control the player also when it&#8217;s set as background!</p>
<h3><a title="jquery.mb.YTPlayer" href="http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-ytplayer/">Give it a try!</a></h3>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pupunzi.wordpress.com/2306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pupunzi.wordpress.com/2306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pupunzi.wordpress.com/2306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pupunzi.wordpress.com/2306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pupunzi.wordpress.com/2306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pupunzi.wordpress.com/2306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pupunzi.wordpress.com/2306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pupunzi.wordpress.com/2306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pupunzi.wordpress.com/2306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pupunzi.wordpress.com/2306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pupunzi.wordpress.com/2306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pupunzi.wordpress.com/2306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pupunzi.wordpress.com/2306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pupunzi.wordpress.com/2306/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=2306&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pupunzi.open-lab.com/2012/02/12/mb-ytplayer-updated-to-version-1-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.768732 11.256901</georss:point>
		<geo:lat>43.768732</geo:lat>
		<geo:long>11.256901</geo:long>
		<media:thumbnail url="http://pupunzi.files.wordpress.com/2012/02/ytplayer.jpg?w=150" />
		<media:content url="http://pupunzi.files.wordpress.com/2012/02/ytplayer.jpg?w=150" medium="image">
			<media:title type="html">ytplayer</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pupunzi</media:title>
		</media:content>

		<media:content url="http://pupunzi.files.wordpress.com/2012/02/ytplayer.jpg" medium="image">
			<media:title type="html">ytplayer</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery.mb.CSSAnimate &#8211; Use CSS3 transition to animate DOM Elements via jQuery</title>
		<link>http://pupunzi.open-lab.com/2011/12/11/jquery-mb-cssanimate-use-css3-transition-to-animate-dom-elements-via-jquery/</link>
		<comments>http://pupunzi.open-lab.com/2011/12/11/jquery-mb-cssanimate-use-css3-transition-to-animate-dom-elements-via-jquery/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 14:35:01 +0000</pubDate>
		<dc:creator>Matteo Bicocchi</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iOs]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mb.ideas.components]]></category>
		<category><![CDATA[animate]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://pupunzi.open-lab.com/?p=2284</guid>
		<description><![CDATA[As most of you know there are new features in CSS3 that let you animate HTML elements using just CSS. Using CSS3 &#8220;transition&#8221; you can control which property to apply, the duration of the transition, the transition timing and the transition delay. The transition considers also the &#8220;transform&#8221; parameter specified in the CSS class. Actually&#160;&#8230; <a href="http://pupunzi.open-lab.com/2011/12/11/jquery-mb-cssanimate-use-css3-transition-to-animate-dom-elements-via-jquery/">Read&#160;more</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=2284&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://pupunzi.github.com/jquery.mb.CSSAnimate/demo.html" target="_blank"><img class="alignnone size-full wp-image-2285" title="mb.CSSAnimate" src="http://pupunzi.files.wordpress.com/2011/12/mb-cssanimate.jpg?w=640&#038;h=495" alt="" width="640" height="495" /></a></p>
<h3>As most of you know there are new features in CSS3 that let you animate HTML elements using just CSS.</h3>
<p>Using CSS3 &#8220;transition&#8221; you can control which <strong>property</strong> to apply, the <strong>duration</strong> of the transition, the transition <strong>timing</strong> and the transition <strong>delay</strong>.<br />
The transition considers also the &#8220;transform&#8221; parameter specified in the CSS class.</p>
<p>Actually jQuery .animate() method doesn&#8217;t consider the CSS3 support and it applies the animation using javascript.</p>
<p>That&#8217;s why I realized the <strong>mb.CSSAnimate()</strong> simple method that uses CSS3 instead of javascript to animate HTML elements; it provides a <strong>callback function</strong> fired once the transition ends as jquery.animate() does and it <strong>fallback to jquery.anomate()</strong> if &#8220;transition&#8221; is not supported by the browser.</p>
<p><strong> Why should we consider to use CSS3 instead of javascript to animate HTML elements?</strong></p>
<p>Well&#8230; First CSS3 animation use less CPU than javascript; the UX is smoothness (especially on mobile devices); on iOs is hardware accelerated; you can animate also background color, rotation, scale, skew or any of the CSS properties available that the default .animate() method doesn&#8217;t provide.</p>
<p><strong>What happens if the browser doesn&#8217;t support CSS3 using mb.CSSAnimate()?</strong></p>
<p>Actually the <strong>mb.CSSAnimate()</strong> method has a fallback to the jquery.animate() one; of course if you were animating a &#8220;transform: rotate()&#8221; property you&#8217;ll lose it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p><strong>How can I use specific prefixed CSS property with mb.CSSAnimate()?</strong></p>
<p>To use specific browsers property with mb.CSSAnimate you just need to remove the prefix from the property.<br />
For example if you want to animate the &#8220;-webkit-transform: rotare(180deg); -moz-transform: rotare(180deg); -o-transform: rotare(180deg); -ms-transform: rotare(180deg)&#8221; property here is how you should call the method:</p>
<p><pre class="brush: jscript;">

$(myObj).CSSAnimate({&quot;transform&quot;: &quot;rotate(180deg)&quot;},1500,&quot;ease-out&quot;, &quot;all&quot;, callback);

</pre></p>
<p><strong>Some useful links:</strong></p>
<p>When can I use CSS3 Transitions?: <a href="http://caniuse.com/css-transitions" target="_blank">http://caniuse.com/css-transitions</a>;<br />
MDN transition: <a href="https://developer.mozilla.org/en/CSS/transition" target="_blank">https://developer.mozilla.org/en/CSS/transition</a><br />
CSS 3 Transitions: <a href="http://net.tutsplus.com/tutorials/html-css-techniques/css-fundametals-css-3-transitions/" target="_blank">http://net.tutsplus.com/tutorials/html-css-techniques/css-fundametals-css-3-transitions/</a><br />
Understanding CSS3 Transitions: <a href="http://www.alistapart.com/articles/understanding-css3-transitions/">http://www.alistapart.com/articles/understanding-css3-transitions/</a></p>
<p><strong>Take a look at the demo:</strong><br />
<a href="http://pupunzi.github.com/jquery.mb.CSSAnimate/demo.html" target="_blank">http://pupunzi.github.com/jquery.mb.CSSAnimate/demo.html</a></p>
<p><strong>Download</strong>:<br />
<a href="https://github.com/downloads/pupunzi/jquery.mb.CSSAnimate/jquery.mb.CSSAnimate.1.0.zip" target="_blank">https://github.com/downloads/pupunzi/jquery.mb.CSSAnimate/jquery.mb.CSSAnimate.1.0.zip</a></p>
<p>I&#8217;ll add documentation and a component page soon.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pupunzi.wordpress.com/2284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pupunzi.wordpress.com/2284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pupunzi.wordpress.com/2284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pupunzi.wordpress.com/2284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pupunzi.wordpress.com/2284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pupunzi.wordpress.com/2284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pupunzi.wordpress.com/2284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pupunzi.wordpress.com/2284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pupunzi.wordpress.com/2284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pupunzi.wordpress.com/2284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pupunzi.wordpress.com/2284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pupunzi.wordpress.com/2284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pupunzi.wordpress.com/2284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pupunzi.wordpress.com/2284/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=2284&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pupunzi.open-lab.com/2011/12/11/jquery-mb-cssanimate-use-css3-transition-to-animate-dom-elements-via-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<georss:point>43.768732 11.256901</georss:point>
		<geo:lat>43.768732</geo:lat>
		<geo:long>11.256901</geo:long>
		<media:thumbnail url="http://pupunzi.files.wordpress.com/2011/12/mb-cssanimate.jpg?w=150" />
		<media:content url="http://pupunzi.files.wordpress.com/2011/12/mb-cssanimate.jpg?w=150" medium="image">
			<media:title type="html">mb.CSSAnimate</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pupunzi</media:title>
		</media:content>

		<media:content url="http://pupunzi.files.wordpress.com/2011/12/mb-cssanimate.jpg" medium="image">
			<media:title type="html">mb.CSSAnimate</media:title>
		</media:content>
	</item>
		<item>
		<title>jquery.mb.zoomify. A new tool to explore your images</title>
		<link>http://pupunzi.open-lab.com/2011/10/29/jquery-mb-zoomify/</link>
		<comments>http://pupunzi.open-lab.com/2011/10/29/jquery-mb-zoomify/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 21:26:36 +0000</pubDate>
		<dc:creator>Matteo Bicocchi</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mb.ideas.components]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[image gallery]]></category>
		<category><![CDATA[pan]]></category>
		<category><![CDATA[zoom]]></category>

		<guid isPermaLink="false">http://pupunzi.open-lab.com/?p=2258</guid>
		<description><![CDATA[The jQuery mb.components family is growing up and a new tool to zoom images has been added. I hope you like it and you enjoy it! Here is the component page where you&#8217;ll find links to the demo page, to the download file and to the doc page: http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-zoomify/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=2258&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<span style="text-align:center; display: block;"><a href="http://pupunzi.open-lab.com/2011/10/29/jquery-mb-zoomify/"><img src="http://img.youtube.com/vi/iNyniPjlM18/2.jpg" alt="" /></a></span>
<p>The jQuery mb.components family is growing up and a new tool to zoom images has been added.</p>
<p>I hope you like it and you enjoy it!</p>
<p>Here is the component page where you&#8217;ll find links to the demo page, to the download file and to the doc page:</p>
<p><a href="http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-zoomify/">http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-zoomify/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pupunzi.wordpress.com/2258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pupunzi.wordpress.com/2258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pupunzi.wordpress.com/2258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pupunzi.wordpress.com/2258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pupunzi.wordpress.com/2258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pupunzi.wordpress.com/2258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pupunzi.wordpress.com/2258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pupunzi.wordpress.com/2258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pupunzi.wordpress.com/2258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pupunzi.wordpress.com/2258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pupunzi.wordpress.com/2258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pupunzi.wordpress.com/2258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pupunzi.wordpress.com/2258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pupunzi.wordpress.com/2258/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=2258&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pupunzi.open-lab.com/2011/10/29/jquery-mb-zoomify/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.768732 11.256901</georss:point>
		<geo:lat>43.768732</geo:lat>
		<geo:long>11.256901</geo:long>
		<media:thumbnail url="http://pupunzi.files.wordpress.com/2011/10/zoomify.jpg?w=150" />
		<media:content url="http://pupunzi.files.wordpress.com/2011/10/zoomify.jpg?w=150" medium="image">
			<media:title type="html">zoomify</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pupunzi</media:title>
		</media:content>
	</item>
		<item>
		<title>How to play background audio on iOs devices’ web pages</title>
		<link>http://pupunzi.open-lab.com/2011/08/18/how-to-play-background-audio-on-ios-devices%e2%80%99-web-pages/</link>
		<comments>http://pupunzi.open-lab.com/2011/08/18/how-to-play-background-audio-on-ios-devices%e2%80%99-web-pages/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 14:09:31 +0000</pubDate>
		<dc:creator>Matteo Bicocchi</dc:creator>
				<category><![CDATA[adslife]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iOs]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[audio]]></category>

		<guid isPermaLink="false">http://pupunzi.open-lab.com/?p=2045</guid>
		<description><![CDATA[This is a horrible hack that works beautifully (&#8217;till next Apple iOs update). It was a while that we where looking for a background audio solution for our Adslife browser game when played on iPad or other iOs devices. Apple&#8217;s policy about audio and video autoplay in iOs browser is to deny this feature. After&#160;&#8230; <a href="http://pupunzi.open-lab.com/2011/08/18/how-to-play-background-audio-on-ios-devices%e2%80%99-web-pages/">Read&#160;more</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=2045&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><img class="alignnone size-full wp-image-2053" title="IosAudio" src="http://pupunzi.files.wordpress.com/2011/08/iosaudio1.jpg?w=640&#038;h=350" alt="" width="640" height="350" /></h2>
<h2>This is a horrible hack that works beautifully (&#8217;till next Apple iOs update).</h2>
<p>It was a while that we where looking for a background audio solution for our <strong><a title="Adslife game" href="http://adslifegame.com" target="_blank">Adslife</a></strong> browser game when played on iPad or other iOs devices. Apple&#8217;s policy about audio and video autoplay in iOs browser is to deny this feature.<br />
After several failed attempts I figured out a simple hack that makes it possible to call  directly the source URL of audio files and play them on the HTML page load.<br />
I first noticed that Safari on iOs plays automatically a mp3 file (or even mp4: videos!) if it is directly called as a URL.<br />
Then, why not include a hidden iframe in the page pointing to the audio file to load and play it once the page and iframe are loaded?</p>
<p>It works!<br />
Once you load the page, just after buffering the mp3, the audio starts playing!</p>
<p>Here is the javascript code:</p>
<p><pre class="brush: jscript;">

var isiOs = (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i));

function bgAudio(opt){
if (isiOs){

var ifr=document.createElement(&quot;iframe&quot;);
ifr.setAttribute('src', opt.mp3);
ifr.setAttribute('id', &quot;bgAudio&quot;);
ifr.setAttribute('width', '0');
ifr.setAttribute('height', '0');
ifr.setAttribute('scrolling', 'no');
ifr.style.border=&quot;0px&quot;;
document.body.appendChild(ifr)

} else{

var audio=document.createElement(&quot;audio&quot;);
audio.setAttribute(&quot;id&quot;,&quot;bgAudio&quot;);
var mp3Source= document.createElement(&quot;source&quot;);
mp3Source.setAttribute('src', opt.mp3);
var oggSource=document.createElement(&quot;source&quot;);
oggSource.setAttribute('src', opt.ogg);

audio.style.display=&quot;none&quot;;

audio.appendChild(mp3Source);
audio.appendChild(oggSource);

document.body.appendChild(audio);

audio.load();
audio.volume=0.6;
audio.play();
}
}
window.onload = function() {
bgAudio({mp3:&quot;http://dl.dropbox.com/u/1976976/segreteria.mp3&quot;, ogg:&quot;http://dl.dropbox.com/u/1976976/segreteria.ogg&quot;});
};

function stopBgndAudio(){
var el= document.getElementById(&quot;bgAudio&quot;);
document.body.removeChild(el);
}

</pre></p>
<h3>And here is a <span style="color:#ff6600;"><strong><a title="ios background audio" href="http://pupunzi.com/iosAudio" target="_blank"><span style="color:#ff6600;">demo page</span></a></strong></span>.</h3>
<p>Actually I tested it on iOs 4.3.5 but I’m quite sure it works on previous versions too.<br />
This hack does not solve the other limitation imposed by Apple on all iOs devices: Play two audios at once <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  .<br />
We can&#8217;t have everything in this life&#8230;</p>
<p>Hope this is helpful &#8211; and that you&#8217;ll play <strong><a title="Adslife game" href="http://adslifegame.com" target="_blank">Adslife </a> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pupunzi.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pupunzi.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pupunzi.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pupunzi.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pupunzi.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pupunzi.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pupunzi.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pupunzi.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pupunzi.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pupunzi.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pupunzi.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pupunzi.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pupunzi.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pupunzi.wordpress.com/2045/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=2045&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pupunzi.open-lab.com/2011/08/18/how-to-play-background-audio-on-ios-devices%e2%80%99-web-pages/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<georss:point>43.768732 11.256901</georss:point>
		<geo:lat>43.768732</geo:lat>
		<geo:long>11.256901</geo:long>
		<media:thumbnail url="http://pupunzi.files.wordpress.com/2011/08/iosaudio1.jpg?w=150" />
		<media:content url="http://pupunzi.files.wordpress.com/2011/08/iosaudio1.jpg?w=150" medium="image">
			<media:title type="html">IosAudio</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pupunzi</media:title>
		</media:content>

		<media:content url="http://pupunzi.files.wordpress.com/2011/08/iosaudio1.jpg" medium="image">
			<media:title type="html">IosAudio</media:title>
		</media:content>
	</item>
		<item>
		<title>Adslife. The game. Have you ever dreamed of being an advertiser?</title>
		<link>http://pupunzi.open-lab.com/2011/07/13/adslife-the-game-have-you-ever-dreamed-of-being-an-advertiser/</link>
		<comments>http://pupunzi.open-lab.com/2011/07/13/adslife-the-game-have-you-ever-dreamed-of-being-an-advertiser/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 13:15:43 +0000</pubDate>
		<dc:creator>Matteo Bicocchi</dc:creator>
				<category><![CDATA[adslife]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://pupunzi.open-lab.com/?p=2018</guid>
		<description><![CDATA[I&#8217;m glad to announce that Adslife is now available as beta release Why should you play this game? Well, first of all this is something different from games you use to play; It is all realized using HTML and Javascript (jquery) and you&#8217;ll not believe it; You compete with other players all around the world&#160;&#8230; <a href="http://pupunzi.open-lab.com/2011/07/13/adslife-the-game-have-you-ever-dreamed-of-being-an-advertiser/">Read&#160;more</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=2018&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://adslifegame.com" target="_blank"><img class="alignnone size-full wp-image-2019" title="alg" src="http://pupunzi.files.wordpress.com/2011/07/alg.jpg?w=640" alt=""   /></a></p>
<h1>I&#8217;m glad to announce that Adslife is now available as beta release</h1>
<h3>Why should you play this game?</h3>
<p>Well, first of all this is something different from games you use to play;<br />
It is all realized using HTML and Javascript (jquery) and you&#8217;ll not believe it;<br />
You compete with other players all around the world not with guns but with beauty!<br />
You can work as  barman if you are desperate;<br />
Your masterpieces can be exposed to the <a href="http://adslifegame.com/m" target="_blank">Adslife Museum</a>!<br />
You can become a referral for other bids;</p>
<p>You can&#8230; Just start play and you will discover Adslife&#8217;s world.</p>
<p>If you don&#8217;t understand what Adslife is: <a href="http://adslifegame.com/applications/adslife/site/adslife-introduction.jsp" target="_blank">http://adslifegame.com/applications/adslife/site/adslife-introduction.jsp</a><br />
If you want to see how to make your bid: <a href="http://adslifegame.com/applications/adslife/site/adslife-videos.jsp" target="_blank">http://adslifegame.com/applications/adslife/site/adslife-videos.jsp</a></p>
<h3><span style="color:#ff6600;"><a href="http://adslifegame.com" target="_blank"><span style="color:#ff6600;">Enjoy the game and help us making a better web!</span></a></span></h3>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pupunzi.wordpress.com/2018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pupunzi.wordpress.com/2018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pupunzi.wordpress.com/2018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pupunzi.wordpress.com/2018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pupunzi.wordpress.com/2018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pupunzi.wordpress.com/2018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pupunzi.wordpress.com/2018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pupunzi.wordpress.com/2018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pupunzi.wordpress.com/2018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pupunzi.wordpress.com/2018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pupunzi.wordpress.com/2018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pupunzi.wordpress.com/2018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pupunzi.wordpress.com/2018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pupunzi.wordpress.com/2018/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=2018&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pupunzi.open-lab.com/2011/07/13/adslife-the-game-have-you-ever-dreamed-of-being-an-advertiser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.768732 11.256901</georss:point>
		<geo:lat>43.768732</geo:lat>
		<geo:long>11.256901</geo:long>
		<media:thumbnail url="http://pupunzi.files.wordpress.com/2011/07/alg.jpg?w=150" />
		<media:content url="http://pupunzi.files.wordpress.com/2011/07/alg.jpg?w=150" medium="image">
			<media:title type="html">alg</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pupunzi</media:title>
		</media:content>

		<media:content url="http://pupunzi.files.wordpress.com/2011/07/alg.jpg" medium="image">
			<media:title type="html">alg</media:title>
		</media:content>
	</item>
		<item>
		<title>jquery.mb.extruder updated to version 2.3</title>
		<link>http://pupunzi.open-lab.com/2011/05/20/jquery-mb-extruder-updated-to-version-2-3/</link>
		<comments>http://pupunzi.open-lab.com/2011/05/20/jquery-mb-extruder-updated-to-version-2-3/#comments</comments>
		<pubDate>Thu, 19 May 2011 22:42:11 +0000</pubDate>
		<dc:creator>Matteo Bicocchi</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mb.ideas.components]]></category>
		<category><![CDATA[mb.components]]></category>
		<category><![CDATA[mb.extruder]]></category>

		<guid isPermaLink="false">http://pupunzi.open-lab.com/?p=1992</guid>
		<description><![CDATA[jquery.mb.extruder has been updated to version 2.3 This release fixes several bugs and introduce a new parameter to control the open on mouseover behaviour: &#8220;autoOpenTime&#8221; (0= do not open onmouseover &#8211; value in milliseconds) Go to the component page or see the demo<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=1992&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="http://pupunzi.com/media/components/mb.extruder.png" src="http://pupunzi.com/media/components/mb.extruder.png" alt="" width="657" height="521" /></p>
<h2>jquery.mb.extruder has been updated to version 2.3</h2>
<p>This release fixes several bugs and introduce a new parameter to control the open on mouseover behaviour: &#8220;autoOpenTime&#8221; (0= do not open onmouseover &#8211; value in milliseconds)</p>
<p>Go to the <a title="jquery.mb.extruder page" href="http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-extruder/">component page</a> or <a title="jquery.mb.extruder demo" href="http://pupunzi.com/#mb.components/mb.extruder/extruder.html" target="_blank">see the demo</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pupunzi.wordpress.com/1992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pupunzi.wordpress.com/1992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pupunzi.wordpress.com/1992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pupunzi.wordpress.com/1992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pupunzi.wordpress.com/1992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pupunzi.wordpress.com/1992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pupunzi.wordpress.com/1992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pupunzi.wordpress.com/1992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pupunzi.wordpress.com/1992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pupunzi.wordpress.com/1992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pupunzi.wordpress.com/1992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pupunzi.wordpress.com/1992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pupunzi.wordpress.com/1992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pupunzi.wordpress.com/1992/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=1992&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pupunzi.open-lab.com/2011/05/20/jquery-mb-extruder-updated-to-version-2-3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<georss:point>43.768732 11.256901</georss:point>
		<geo:lat>43.768732</geo:lat>
		<geo:long>11.256901</geo:long>
		<media:thumbnail url="http://pupunzi.files.wordpress.com/2011/05/mb-extruder.png?w=150" />
		<media:content url="http://pupunzi.files.wordpress.com/2011/05/mb-extruder.png?w=150" medium="image">
			<media:title type="html">mb.extruder</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pupunzi</media:title>
		</media:content>

		<media:content url="http://pupunzi.com/media/components/mb.extruder.png" medium="image">
			<media:title type="html">http://pupunzi.com/media/components/mb.extruder.png</media:title>
		</media:content>
	</item>
		<item>
		<title>pupunzi.com has a new skin</title>
		<link>http://pupunzi.open-lab.com/2011/05/15/pupunzi-com-has-a-new-skin/</link>
		<comments>http://pupunzi.open-lab.com/2011/05/15/pupunzi-com-has-a-new-skin/#comments</comments>
		<pubDate>Sun, 15 May 2011 20:58:57 +0000</pubDate>
		<dc:creator>Matteo Bicocchi</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[graphic design]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mb.ideas.components]]></category>

		<guid isPermaLink="false">http://pupunzi.open-lab.com/?p=1977</guid>
		<description><![CDATA[I’m glad to announce that the new pupunzi.com site is out! I really liked the site as it was before, and as it happens with all the changes,  I&#8217;m feeling both sad and happy&#8230; But everything must change with time. This new site gets advantage of all the new HTML5 features (it works great with &#160;&#8230; <a href="http://pupunzi.open-lab.com/2011/05/15/pupunzi-com-has-a-new-skin/">Read&#160;more</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=1977&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://pupunzi.com"><img class="alignnone size-full wp-image-1978" title="pupunziHome" src="http://pupunzi.files.wordpress.com/2011/05/pupunzihome.jpg?w=640&#038;h=339" alt="" width="640" height="339" /></a></p>
<h2>I’m glad to announce that the new pupunzi.com site is out!</h2>
<p>I really liked the site <a href="http://pupunzi.com/v1" target="_blank">as it was before</a>, and as it happens with all the changes,  I&#8217;m feeling both sad and happy&#8230; But everything must change with time.<br />
This new site gets advantage of all the new HTML5 features (it works great with  &#8220;modern&#8221; browsers including IE9) and gives the idea of what it&#8217;s possible to do with the new web technology generation.</p>
<p>Previous path to components and sections are preserved to maintain all the trackback links unchanged; the graphic is completely new and striking; there are sounds ( you can turn off)  that automatically turn off once the page looses focus; there are tree more jquery plugins published and whaiting for you:</p>
<ol>
<li><a title="bgndgallery" href="http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-bgndgallery/" target="_blank">jquery.mb.bgndGallery</a></li>
<li><a title="miniaudioplayer" href="http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-miniaudioplayer/" target="_blank">jquery.mb.miniAudioPlayer</a></li>
<li><a title="valueslider" href="http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-valueslider/" target="_blank">jquery.mb.valueSlider</a></li>
</ol>
<p>Take a look and let me know your impressions.</p>
<h2><a title="http://pupunzi.com" href="http://pupunzi.com" target="_blank">http://pupunzi.com</a></h2>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pupunzi.wordpress.com/1977/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pupunzi.wordpress.com/1977/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pupunzi.wordpress.com/1977/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pupunzi.wordpress.com/1977/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pupunzi.wordpress.com/1977/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pupunzi.wordpress.com/1977/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pupunzi.wordpress.com/1977/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pupunzi.wordpress.com/1977/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pupunzi.wordpress.com/1977/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pupunzi.wordpress.com/1977/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pupunzi.wordpress.com/1977/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pupunzi.wordpress.com/1977/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pupunzi.wordpress.com/1977/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pupunzi.wordpress.com/1977/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=1977&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pupunzi.open-lab.com/2011/05/15/pupunzi-com-has-a-new-skin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<georss:point>43.768732 11.256901</georss:point>
		<geo:lat>43.768732</geo:lat>
		<geo:long>11.256901</geo:long>
		<media:thumbnail url="http://pupunzi.files.wordpress.com/2011/05/pupunzihome.jpg?w=150" />
		<media:content url="http://pupunzi.files.wordpress.com/2011/05/pupunzihome.jpg?w=150" medium="image">
			<media:title type="html">pupunziHome</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pupunzi</media:title>
		</media:content>

		<media:content url="http://pupunzi.files.wordpress.com/2011/05/pupunzihome.jpg" medium="image">
			<media:title type="html">pupunziHome</media:title>
		</media:content>
	</item>
		<item>
		<title>Licorize API: How to include Licorize&#8217; bookmarks into your page</title>
		<link>http://pupunzi.open-lab.com/2011/05/13/licorize-api-include-bookmarks-from-licorize-into-your-page/</link>
		<comments>http://pupunzi.open-lab.com/2011/05/13/licorize-api-include-bookmarks-from-licorize-into-your-page/#comments</comments>
		<pubDate>Fri, 13 May 2011 21:12:56 +0000</pubDate>
		<dc:creator>Matteo Bicocchi</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[licorize]]></category>
		<category><![CDATA[mb.ideas.components]]></category>

		<guid isPermaLink="false">http://pupunzi.open-lab.com/?p=1908</guid>
		<description><![CDATA[Did you know that Licorize has an API that you can use via javascript to get public bookmarks filtered by tags, projects, users? If you are interested on showing your latest bookmarks inside your website, Licorize has a public API that let you retrieve them via a jsonp call. On Licorize site there&#8217;s a section&#160;&#8230; <a href="http://pupunzi.open-lab.com/2011/05/13/licorize-api-include-bookmarks-from-licorize-into-your-page/">Read&#160;more</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=1908&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><a href="http://pupunzi.files.wordpress.com/2011/05/licoapi21.jpg"><img class="alignnone size-full wp-image-1988" title="licoapi2" src="http://pupunzi.files.wordpress.com/2011/05/licoapi21.jpg?w=640&#038;h=498" alt="" width="640" height="498" /></a></h3>
<h3>Did you know that Licorize has an API that you can use via javascript to get public bookmarks filtered by tags, projects, users?</h3>
<p>If you are interested on showing your latest bookmarks inside your website, <a title="Licorize" href="http://licorize.com" target="_blank">Licorize</a> has a <a title="Licorize API" href="http://licorize.com/applications/licorize/site/api/" target="_blank">public API</a> that let you retrieve them via a jsonp call.<br />
On Licorize site there&#8217;s a section dedicated to the documentation quite exaustive; the API expose method to authenticate in Licorize via OAuth or XAuth, the GET and the SET methods (create, edit, delete strips) and few examples of use in Java and Objective-C/Cocoa.</p>
<h3>But here I want to explain how you can insert public Licorize strips into your HTML page using the API via javascript (jquery).</h3>
<p>First we have to define where the list of bookmark will be inserted into the DOM of our HTML page:</p>
<p><pre class="brush: xml;">
&lt;div id=&quot;licorize_links&quot; class=&quot;feeds&quot;&gt;&lt;/div&gt;
</pre></p>
<p>To retrieve the list of bookmarks from Licorize we need to make an ajax call to the proper API URL; this call will return a JSON object containing all the strips filtered by the parameters passed to the request. For example, if I want to get all my public strips, the URL will be:</p>
<p><pre class="brush: jscript;">
http://licorize.com/api/1/users/pupunzi/strips/list.jsonp
</pre></p>
<p><strong>Where:</strong></p>
<p><strong>http://licorize.com/api/1/ </strong>is the base API url<br />
<strong>/users/</strong> define the filter by user<br />
<strong>/pupunzi/</strong> is my user name in Licorize<br />
<strong>/strips/</strong> define the objects I want to get<br />
<strong>/list.jsonp</strong> is the type of data to be returned</p>
<p><strong>Some other example of URLs can be:</strong></p>
<p style="padding-left:30px;"><strong>Get Licorize User Public Strips List</strong>: http://api.licorize.com/api/1/users/<strong>[username]</strong>/strips/list.jsonp<strong><br />
Get Licorize Public Project Strips List</strong>: http://api.licorize.com/api/1/users/<strong>[username]</strong>/<strong>[projectName]</strong>/strips/list.jsonp<br />
<strong>Get Licorize User Strips &#8211; in Visible Projects &#8211; Filtered By Tag</strong>: http://api.licorize.com/api/1/users/<strong>[username]</strong>/tags/<strong>[tagName]</strong>/strips/list.jsonp<br />
<strong>Get All Licorize Strips &#8211; in Visible Projects &#8211; Filtered By Tag</strong>: http://api.licorize.com/api/1/tags/<strong>[tagName]</strong>/strips/list.jsonp</p>
<p>The request needs some other parameters that we will pass as JSON object <em>data</em>:</p>
<p><pre class="brush: jscript;">
var req = {
    &quot;embedded&quot;: &quot;yes&quot;, // define the type of use of the strips
    &quot;millis&quot;: 0,
    // 0 means from now; it is a value int in milliseconds that define the date of the last saved strip we whant to get
    &quot;limitResultTo&quot;: 10,
    // is the number of strips we want to get
    &quot;orderBy&quot;: &quot;asc&quot;
    // or &quot;desc&quot; define the order of the retried strips
};
</pre></p>
<p>Here is the AJAX call:</p>
<p><pre class="brush: jscript;">
$.ajax({
url: &quot;http://licorize.com/api/1/users/pupunzi/strips/list.jsonp&quot;,
data: req,
dataType: 'jsonp',
jsonp: &quot;__jsonp_callback&quot;,
jsonpCallback: &quot;listCallback&quot;,
success: function(response) {
               var strips= response.strips;
               //here goes the code to parse the response...
        }
});
</pre></p>
<p>The JSON that will be returned (response) will contain several information; the part of this response we need for our scope is <em>response.strips</em>.</p>
<p>Each strip element contains all the DATA of the strip as JSON object:</p>
<p><pre class="brush: jscript;">
{&quot;type&quot;:&quot;BOOKMARK&quot;,
  &quot;id&quot;:3153587,
  &quot;position&quot;:0,
  &quot;millis&quot;:1305145392843,
  &quot;lastMod&quot;:1305153539000,
  &quot;creator&quot;:&quot;Matteo Bicocchi&quot;,
  &quot;title&quot;:&quot;Free Music Archive: Experimental&quot;,
  &quot;url&quot;:&quot;http://freemusicarchive.org/genre/Experimental/&quot;,
  &quot;tags&quot;:&quot;experimental, music&quot;,
  &quot;teamName&quot;:&quot;Web technology - resources&quot;,
  &quot;ownerName&quot;:&quot;Matteo Bicocchi&quot;,
  &quot;gravatarUrl&quot;:&quot;http://www.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=40&amp;d=identicon&quot;,
  &quot;thumbUrl&quot;:&quot;http://s3.amazonaws.com/Licorize/thumbs/freemusicarchive.org/3b54a64dd887b428ded06cdf7850cdf0.jpg&quot;}
</pre></p>
<p>Inside the &#8220;success&#8221; callback of the AJAX call you can now loop the strips, get the desired parameters and create the HTML structure:</p>
<p><pre class="brush: jscript;">

var LicorizeContainer= $(&quot;#licorize_links&quot;);

for (var i in strips) {
var stripContainer= $(&quot;&lt;/pre&gt;
&lt;div&gt;&quot;).addClass(&quot;stripContainer&quot;);&lt;/div&gt;
&lt;pre&gt;

      var strip = strips[i];
var stripTitle= $(&quot;&lt;/pre&gt;
&lt;div&gt;&quot;).addClass(&quot;stripTitle&quot;).html(strip.title);&lt;/div&gt;
&lt;pre&gt;
      stripContainer.append(stripTitle);
      var ...

      LicorizeContainer.append(stripContainer)
}

</pre></p>
<p>Now that all the strips in the response have been parsed you can style them via CSS as you need.</p>
<p>For a <strong>working demo</strong>:</p>
<h3><strong> <a title="Licorize API" href="http://jsfiddle.net/pupunzi/62beA/" target="_blank">http://jsfiddle.net/pupunzi/62beA/</a></strong></h3>
<p>to know more about <strong>Licorize</strong>:</p>
<h3><a title="Licorize" href="http://licorize.com" target="_blank">http://licorize.com</a></h3>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pupunzi.wordpress.com/1908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pupunzi.wordpress.com/1908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pupunzi.wordpress.com/1908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pupunzi.wordpress.com/1908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pupunzi.wordpress.com/1908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pupunzi.wordpress.com/1908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pupunzi.wordpress.com/1908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pupunzi.wordpress.com/1908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pupunzi.wordpress.com/1908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pupunzi.wordpress.com/1908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pupunzi.wordpress.com/1908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pupunzi.wordpress.com/1908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pupunzi.wordpress.com/1908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pupunzi.wordpress.com/1908/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=1908&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pupunzi.open-lab.com/2011/05/13/licorize-api-include-bookmarks-from-licorize-into-your-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.768732 11.256901</georss:point>
		<geo:lat>43.768732</geo:lat>
		<geo:long>11.256901</geo:long>
		<media:thumbnail url="http://pupunzi.files.wordpress.com/2011/05/licoapi21.jpg?w=150" />
		<media:content url="http://pupunzi.files.wordpress.com/2011/05/licoapi21.jpg?w=150" medium="image">
			<media:title type="html">licoapi2</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pupunzi</media:title>
		</media:content>

		<media:content url="http://pupunzi.files.wordpress.com/2011/05/licoapi21.jpg" medium="image">
			<media:title type="html">licoapi2</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery 1.5.2 ajax module and local files issue</title>
		<link>http://pupunzi.open-lab.com/2011/04/24/jquery-1-5-2-ajax-module-and-local-files-issue/</link>
		<comments>http://pupunzi.open-lab.com/2011/04/24/jquery-1-5-2-ajax-module-and-local-files-issue/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 19:45:20 +0000</pubDate>
		<dc:creator>Matteo Bicocchi</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://pupunzi.open-lab.com/?p=1893</guid>
		<description><![CDATA[In the new jQuery 1.5 version the ajax module has been completely rewritten introducing important changes. One of the most consistent change is that now the $.ajax() call returns a jXHR object that is a superset of the browser’s native XMLHttpRequest object. As an example the ajax response now contains  the responsetext as well as&#160;&#8230; <a href="http://pupunzi.open-lab.com/2011/04/24/jquery-1-5-2-ajax-module-and-local-files-issue/">Read&#160;more</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=1893&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the new jQuery 1.5 version the ajax module has been completely rewritten introducing important changes.<br />
One of the most consistent change is that now the $.ajax() call returns a jXHR object that is a superset of the browser’s native XMLHttpRequest object.<br />
As an example the ajax response now contains  the responsetext as well as the getResponseHeader() method and provides consistency to the XMLHttpRequest object across platforms (and allows you to perform previously-impossible tasks like aborting JSONP requests).<br />
But something unexpected happens once I tested my components with this new jQuery version.<br />
All the ajax requests did&#8217;t work if run as local file (Ex: file:///Users/pupunzi/DEV/jquery.mb.components/jquery.mb.extruder/demo.html).<br />
That was something I pointed out during the beta testing of this latest release but once the official 1.5 was out the problem still exist.</p>
<p>Getting over again this problem I found out what was wrong: <strong>all my ajax requests did&#8217;t expressly declarate the dataType attribute when called</strong>; this, for some reason, have no default fallback (dataType:&#8221;html&#8221;) if the request is made from a local file using the v. 1.5 of jQuery but it is resolved correctly once called from a web server.</p>
<p>So, after adding the correct dataType, all the ajax calls now works correctly even if called directly from a local file:</p>
<p>before:</p>
<p><pre class="brush: jscript;">
$.ajax({
type: &quot;GET&quot;,
url: url,
data:pageData,
success: function(response) {...}
})
</pre></p>
<p>after:</p>
<p><pre class="brush: jscript;">
$.ajax({
type: &quot;GET&quot;,
url: url,
data:pageData,
dataType:&quot;html&quot;,
success: function(response) {...}
})
</pre></p>
<p>There&#8217;s no documentation about this issue on the jquery site and maybe someone will find this information usefull.<br />
For an accurate documentation on the new ajax module read: <a href="http://api.jquery.com/category/version/1.5/" target="_blank">http://api.jquery.com/category/version/1.5/</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pupunzi.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pupunzi.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pupunzi.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pupunzi.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pupunzi.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pupunzi.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pupunzi.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pupunzi.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pupunzi.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pupunzi.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pupunzi.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pupunzi.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pupunzi.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pupunzi.wordpress.com/1893/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=1893&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pupunzi.open-lab.com/2011/04/24/jquery-1-5-2-ajax-module-and-local-files-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>43.768732 11.256901</georss:point>
		<geo:lat>43.768732</geo:lat>
		<geo:long>11.256901</geo:long>
		<media:content url="http://0.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pupunzi</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery.mb.verticalScroll is out!</title>
		<link>http://pupunzi.open-lab.com/2010/12/11/jquery-mb-verticalscroll-is-out/</link>
		<comments>http://pupunzi.open-lab.com/2010/12/11/jquery-mb-verticalscroll-is-out/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 16:37:16 +0000</pubDate>
		<dc:creator>Matteo Bicocchi</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mb.ideas.components]]></category>

		<guid isPermaLink="false">http://pupunzi.open-lab.com/?p=1840</guid>
		<description><![CDATA[A good way to manage long list in short space! jQuery.mb.verticalSlider let you show long list of elements managing pagination, it can work with elements already in the DOM of your page or loading them via ajax when needed. And it uses mouse wheel of course. take a look!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=1840&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="verticalSlider" src="http://pupunzi.com/gitHub/mb.verticalSlider.png" alt="verticalSlider" width="481" height="346" /></p>
<h2>A good way to manage long list in short space!</h2>
<p>jQuery.mb.verticalSlider let you show long list of elements managing  pagination, it can work with elements already in the DOM of your page or  loading them via ajax when needed. And it uses mouse wheel of course.</p>
<h3 style="text-align:right;"><a href="http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-verticalslider/"><span style="color:#808080;">take a look!</span></a></h3>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pupunzi.wordpress.com/1840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pupunzi.wordpress.com/1840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pupunzi.wordpress.com/1840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pupunzi.wordpress.com/1840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pupunzi.wordpress.com/1840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pupunzi.wordpress.com/1840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pupunzi.wordpress.com/1840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pupunzi.wordpress.com/1840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pupunzi.wordpress.com/1840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pupunzi.wordpress.com/1840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pupunzi.wordpress.com/1840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pupunzi.wordpress.com/1840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pupunzi.wordpress.com/1840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pupunzi.wordpress.com/1840/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pupunzi.open-lab.com&amp;blog=6146833&amp;post=1840&amp;subd=pupunzi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pupunzi.open-lab.com/2010/12/11/jquery-mb-verticalscroll-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.768732 11.256901</georss:point>
		<geo:lat>43.768732</geo:lat>
		<geo:long>11.256901</geo:long>
		<media:thumbnail url="http://pupunzi.files.wordpress.com/2010/12/mb-verticalslider.png?w=150" />
		<media:content url="http://pupunzi.files.wordpress.com/2010/12/mb-verticalslider.png?w=150" medium="image">
			<media:title type="html">mb.verticalSlider</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/03604fe1ab8aedd7fd69ba097439593c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pupunzi</media:title>
		</media:content>

		<media:content url="http://pupunzi.com/gitHub/mb.verticalSlider.png" medium="image">
			<media:title type="html">verticalSlider</media:title>
		</media:content>
	</item>
	</channel>
</rss>
