<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>World Gone WebJavascript &#187; World Gone Web</title>
	<atom:link href="http://www.worldgoneweb.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.worldgoneweb.com</link>
	<description></description>
	<lastBuildDate>Sun, 09 Oct 2011 20:57:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Javascript Completion in Textmate</title>
		<link>http://www.worldgoneweb.com/2010/javascript-completion-in-textmate/</link>
		<comments>http://www.worldgoneweb.com/2010/javascript-completion-in-textmate/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 22:51:03 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[completion]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=363</guid>
		<description><![CDATA[Thomas Aylott, the author of the JavaScript Bundle for Textmate, announced that he added the completion feature to his package. This is great news. as far as I know, this is the first completion made available for Textmate and I understand it is easily extended so we could see several other languages being supported soon. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/04/Screen-shot-2010-04-18-at-12.20.54-AM-300x153.png" alt="" title="TextMate JavaScript Bundle" width="356" height="184" class="aligncenter size-medium wp-image-364" /></p>
<p><a href="http://subtlegradient.com/articles/">Thomas Aylott</a>, the author of the <a href="http://github.com/subtleGradient/javascript.tmbundle">JavaScript Bundle for Textmate</a>, announced that he added the <a href="http://subtlegradient.com/articles/2008/09/21/new_textmate_code_completion_and_smart_tooltips.html">completion feature</a> to his package. This is great news. as far as I know, this is the first completion made available for Textmate and I understand it is easily extended so we could see several other languages being supported soon. If that&#8217;s the case, this will make Textmate a real contender not only to text editors but full featured IDE. This is exiting.</p>
<p>To install the bundle, just head over to <a href="http://github.com/subtleGradient">Thomas Aylott&#8217;s GitHub page</a> and download the <a href="http://github.com/subtleGradient/javascript.tmbundle">Javascript bundle</a> (not the Javascript-tools one) and extract it. Rename the generated folder javascript.bundle and double click it. Once the bundle is installed, enter the beginning of a javascript line of code and press option+escape to show the completion.</p>
<p>At first, I was getting the following error message in Textmate:</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><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 /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>custom_require.rb:<span style="color: #000000;">27</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>gem_original_require<span style="color: #ff0000;">': no such file to load -- json (MissingSourceFile)</span></div></td></tr></tbody></table></div>
</p>
<p>It was fixed by running the following command</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><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 /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> json</div></td></tr></tbody></table></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2010/javascript-completion-in-textmate/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2010/04/Screen-shot-2010-04-18-at-12.20.54-AM-150x150.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2010/04/Screen-shot-2010-04-18-at-12.20.54-AM.png" medium="image">
			<media:title type="html">TextMate JavaScript Bundle</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2010/04/Screen-shot-2010-04-18-at-12.20.54-AM-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>Linking to Twitter and Facebook from a website</title>
		<link>http://www.worldgoneweb.com/2010/linking-to-twitter-and-facebook-from-a-website/</link>
		<comments>http://www.worldgoneweb.com/2010/linking-to-twitter-and-facebook-from-a-website/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 22:07:48 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Teeorama]]></category>
		<category><![CDATA[bitly]]></category>
		<category><![CDATA[colorbox]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=313</guid>
		<description><![CDATA[This week I&#8217;ve worked on a social lightbox for Teeorama allowing our visitors to tweet or write on their Facebook walls from our tee-shirt shop.The lightbox itself is built using ColorBox, a powerful and customizable lightbox library built on JQuery (MIT License). The Twitter tool is fairly easy to setup, I used bit.ly to generate [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.40.48-PM.png" alt="" title="Teeorama Social Lightbox" width="400" height="240" class="aligncenter size-full wp-image-314" /></p>
<p><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.41.05-PM.png" alt="" title="Share on Facebook/Twitter" width="53" height="218" class="alignleft size-full wp-image-315" />This week I&#8217;ve worked on a social lightbox for <a href="http://teeorama.com/">Teeorama</a> allowing our visitors to <a href="http://www.twitter.com/">tweet</a> or write on their <a href="http://www.facebook.com/">Facebook</a> walls from <a href="http://teeorama.com/">our tee-shirt shop</a>.The lightbox itself is built using <a href="http://colorpowered.com/colorbox/">ColorBox</a>, a powerful and customizable lightbox library built on <a href="http://jquery.com/">JQuery</a> (MIT License). The <a href="http://www.twitter.com/">Twitter</a> tool is fairly easy to setup, I used <a href="http://bit.ly/">bit.ly</a> to generate the shortened URL of the current page and placed it, along with a default content, in the text box. When the user clicks on submit, he or she is redirected to twitter. The update box contains what was typed in the teeorama box and one click on the update button is enough to validate the tweet.The follow button is even simpler, it is nothing but a link to <a href="https://twitter.com/teeorama">teeorama&#8217;s twitter account</a>.<a href="http://www.facebook.com/">Facebook</a> is both more powerful (you can publish to your wall without leaving the teeorama page) and a bit trickier to setup.First, you need to head over to developers.facebook.com/setup.php to register your site as a Connect enabled website. Upload the <em>xd_receiver.htm</em> file to your server and validate. You now have access to your <a href="http://www.facebook.com/developers/apps.php">Facebook Connect</a> Tools, API documentation and sandbox as well as to a gallery of widgets or code samples you can use. I chose to use the <em>Comment Box</em>.</p>
<p><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.39.40-PM.png" alt="" title="Facebook Connect Tools" width="400" height="194" class="alignleft size-full wp-image-317" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2010/linking-to-twitter-and-facebook-from-a-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.40.48-PM-150x150.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.40.48-PM.png" medium="image">
			<media:title type="html">Teeorama Social Lightbox</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.40.48-PM-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.41.05-PM.png" medium="image">
			<media:title type="html">Share on Facebook/Twitter</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.41.05-PM-53x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.39.40-PM.png" medium="image">
			<media:title type="html">Facebook Connect Tools</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.39.40-PM-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>Jash &#8211; Javascript Shell</title>
		<link>http://www.worldgoneweb.com/2007/jash-javascript-shell/</link>
		<comments>http://www.worldgoneweb.com/2007/jash-javascript-shell/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 22:23:02 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/wordpress/?p=28</guid>
		<description><![CDATA[Firefox est depuis longtemps le navigateur par defaut du web developeur, et pour cause, il s&#8217;accompagne de deux outils incontournables : firebug et la web developper toolbar. Cependant, de plus en plus d&#8217;outils permettent, sinon de developper completement sous IE, de debugguer ses scripts et ses styles plus facilement. Jash, le javascript shell est l&#8217;un [...]]]></description>
			<content:encoded><![CDATA[<p>Firefox est depuis longtemps le navigateur par defaut du web developeur, et pour cause, il s&#8217;accompagne de deux outils incontournables : firebug et la web developper toolbar.</p>
<p>Cependant, de plus en plus d&#8217;outils permettent, sinon de developper completement sous IE, de debugguer ses scripts et ses styles plus facilement.</p>
<p><img src="http://www.samanthahalfon.net/wordpress/wp-content/uploads/2007/12/picture-1.png" title="Jash" alt="Jash" align="middle" width="500" /></p>
<p><a href="http://billyreisinger.com/jash/">Jash, le javascript shell</a> est l&#8217;un de cela. Jash, en tant que shell, offre avant tout une console Javascript capable d&#8217;interagir avec les informations (DOM ou script) de la page. Jash permet aussi une inspection des elements HTML du DOM.</p>
<p>Le code source de jash peut etre telecharge et inclut dans une page web mais l&#8217;utilisation de l&#8217;outil ne necessite aucune installation, il suffit de creer un <a href="javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://www.billyreisinger.com/jash/source/latest/Jash.js';})();">bookmarklet</a> pour ensuite ouvrir la console sur la page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2007/jash-javascript-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://www.samanthahalfon.net/wordpress/wp-content/uploads/2007/12/picture-1.png" />
		<media:content url="http://www.samanthahalfon.net/wordpress/wp-content/uploads/2007/12/picture-1.png" medium="image">
			<media:title type="html">Jash</media:title>
		</media:content>
	</item>
		<item>
		<title>Lancer Skype depuis un lien html</title>
		<link>http://www.worldgoneweb.com/2007/lancer-skype-depuis-un-lien-html/</link>
		<comments>http://www.worldgoneweb.com/2007/lancer-skype-depuis-un-lien-html/#comments</comments>
		<pubDate>Thu, 25 Jan 2007 23:24:08 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://meanstreets.dyndns.org/samanthahalfonnet/wordpress/?p=5</guid>
		<description><![CDATA[J&#8217;ai décidé de mettre mon pseudo Skype sur mon site perso et je souhaitais en faire un lien direct permettant de lancer Skype et de m&#8217;appeler&#8230; une rapide recherche sur Internet et je trouvais un script Javascript (mis à disposition des développeurs par Skype) permettant de lancer un appel, de visualiser un profil ou d&#8217;ajouter [...]]]></description>
			<content:encoded><![CDATA[<p>J&#8217;ai décidé de mettre mon pseudo Skype sur mon <a href="http://www.samanthahalfon.net/" title="samanthahalfon.net">site perso</a> et je souhaitais en faire un lien direct permettant de lancer Skype et de m&#8217;appeler&#8230; une rapide recherche sur Internet et je trouvais un script Javascript (mis à disposition des développeurs par Skype) permettant de lancer un appel, de visualiser un profil ou d&#8217;ajouter un contact dans Skype. L&#8217;utilisation de ce bout de code est documentée sur le <a href="http://www.skype.com/intl/fr/share/buttons/advanced.html" title="skype.com">site de Skype</a>.</p>
<p>Voici la procédure à suive :</p>
<ul>
<li>Ajouter une référence vers le script dans la page.</li>
</ul>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><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 /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;script type=&quot;text/javascript&quot;<br />
src=&quot;http://download.skype.com/share/skypebuttons/js/skypeCheck.js&quot;&amp;gt;<br />
&amp;lt;/script&amp;gt;</div></td></tr></tbody></table></div>
<ul>
<li> puis placer des liens de la forme suivante :</li>
</ul>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><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 /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;a href=&quot;skype:echo123?call&quot; onclick=&quot;return skypeCheck();&quot;&amp;gt;</div></td></tr></tbody></table></div>
<p>Si le script détecte que le visiteur n&#8217;a pas installé Skype sur sa machine, il le redirigera vers la page de téléchargement de Skype.</p>
<p>Les actions possible sont les suivantes :</p>
<ul>
<li>appel : &#8220;skype:user1?call&#8221;</li>
<li>ajouter un contact : &#8220;skype:user1?add&#8221;</li>
<li>chat : &#8220;skype:user1?chat&#8221;</li>
<li>visionner un profil : &#8220;skype:user1?userinfo&#8221;</li>
</ul>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><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 /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2007/lancer-skype-depuis-un-lien-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>getElementsByClass</title>
		<link>http://www.worldgoneweb.com/2007/getelementsbyclass/</link>
		<comments>http://www.worldgoneweb.com/2007/getelementsbyclass/#comments</comments>
		<pubDate>Thu, 25 Jan 2007 23:11:04 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://meanstreets.dyndns.org/samanthahalfonnet/wordpress/?p=4</guid>
		<description><![CDATA[Lors du développement de mon site perso, j&#8217;ai eu besoin d&#8217;une fonction javascript qui retourne une liste d&#8217;éléments dont le nom de classe est passé en paramètre. J&#8217;ai utilisé le code ci-dessous : 123456789101112131415document.getElementsByClassName = function(className) { var expression = new RegExp('(^&#124; )'+className+'( &#124;$)'); var allelements = document.body.getElementsByTagName('*'); var elements = []; for(var i=0; i [...]]]></description>
			<content:encoded><![CDATA[<p>Lors du développement de mon <a href="http://www.samanthahalfon.net" title="http://www.samanthahalfon.net">site perso</a>, j&#8217;ai eu besoin d&#8217;une fonction javascript qui retourne une liste d&#8217;éléments dont le nom de classe est passé en paramètre. J&#8217;ai utilisé le code ci-dessous :</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><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 /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">document.getElementsByClassName = function(className)<br />
{<br />
var expression = new RegExp('(^| )'+className+'( |$)');<br />
var allelements = document.body.getElementsByTagName('*');<br />
var elements = [];<br />
for(var i=0; i &amp;lt; allelements.length; i++)<br />
{<br />
var element = allelements[i];<br />
if(expression.test(element.className))<br />
{<br />
elements.push(element);<br />
}<br />
}<br />
return elements;<br />
};</div></td></tr></tbody></table></div>
<p>Ce bout de code est l&#8217;oeuvre de Chris Ravenscroft et vous trouverez sur son blog &#8211; <a href="http://nexus.zteo.com/2007/01/14/where-is-getelementsbyclassname/" title="Clic!Dev, Tate and many more projects">Clic!Dev, &#8216;Tate and many more projects </a>-  une explication détaillée de son fonctionnement (notemment pour ce qui concerne l&#8217;usage des expressions régulières en javascript).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2007/getelementsbyclass/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
	</channel>
</rss>

