<?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/"
	>

<channel>
	<title>Mohammed CHERIFI &#187; Tutoriaux</title>
	<atom:link href="http://www.mcherifi.org/category/tutoriaux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mcherifi.org</link>
	<description>Another Web Developper Blog!</description>
	<lastBuildDate>Tue, 31 Jan 2012 18:42:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Comment mettre à jour ses extensions Firefox &#171;&#160;périmées&#160;&#187;?</title>
		<link>http://www.mcherifi.org/tutoriaux/comment-mettre-a-jour-ses-extensions-firefox-perimees.html</link>
		<comments>http://www.mcherifi.org/tutoriaux/comment-mettre-a-jour-ses-extensions-firefox-perimees.html#comments</comments>
		<pubDate>Tue, 02 Feb 2010 12:20:43 +0000</pubDate>
		<dc:creator>Mohammed CHERIFI</dc:creator>
				<category><![CDATA[Tutoriaux]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firefox-addon]]></category>
		<category><![CDATA[install.rdf]]></category>
		<category><![CDATA[minVersion]]></category>

		<guid isPermaLink="false">http://www.mcherifi.org/?p=549</guid>
		<description><![CDATA[TweetL&#8217;une des problématiques qu&#8217;on rencontre souvent sous Firefox c&#8217;est quand on installe la version la plus récente, on risque de perdre la moitié des extensions installées! pour la simple raison que ces extensions ne sont pas compatible avec la dernière version, et c&#8217;est souvent embêtant d&#8217;attendre que l&#8217;éditeur de l&#8217;extension la mets à jour pour [...]]]></description>
			<content:encoded><![CDATA[<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.mcherifi.org/tutoriaux/comment-mettre-a-jour-ses-extensions-firefox-perimees.html" data-text="Comment mettre à jour ses extensions Firefox \"périmées\"?" data-count="horizontal">Tweet</a><p><div id="attachment_554" class="wp-caption alignleft" style="width: 160px"><img src="http://www.mcherifi.org/wp-content/uploads/2010/02/firefox_addons-150x150.jpg" alt="Photo by Foomandoonian sous Creative Common" title="Firefox Addons" width="150" height="150" class="size-thumbnail wp-image-554" /><p class="wp-caption-text">Photo par foomandoonian</p></div>L&#8217;une des problématiques qu&#8217;on rencontre souvent sous Firefox c&#8217;est quand on installe la version la plus récente, on risque de perdre la moitié des extensions installées! pour la simple raison que ces extensions ne sont pas compatible avec la dernière version, et c&#8217;est souvent embêtant d&#8217;attendre que l&#8217;éditeur de l&#8217;extension la mets à jour pour que ça marche!</p>
<p>Dans ce tutorial, je vous montrerai une astuce que j&#8217;utilise très souvent pour faire marcher mes extensions &laquo;&nbsp;périmées&nbsp;&raquo; sur une nouvelle version de Firefox!</p>
<h2>Comment ça marche?</h2>
<p>Les extensions Firefox sont des fichiers qui portent le format .xpi, c&#8217;est enfaite juste un paquet .zip renommé en .xpi, si on le renomme et on le décompresse on trouve qu&#8217;il contient un bon nombre de fichiers, parmi ces dernier on trouve:</p>
<ul>
<li>[DIR] chrome</li>
<li>[DIR] defaults</li>
<li><strong>install.rdf</strong> (le fichier qui nous interesse)</li>
</ul>
<p>Il se peut que vous trouvez d&#8217;autres fichiers/répertoires ça dépend de l&#8217;extension que vous avez téléchargé, pour cet exemple j&#8217;ai choisis <a target="_blank" href="http://tamperdata.mozdev.org/installation.html">TamperData</a>, une de mes extensions indispensables! vous aurez donc à re-télécharger le .xpi de votre extension &laquo;&nbsp;périmée&nbsp;&raquo; depuis le site de son éditeur ou de <a href="http://www.mozdev.org" target="_blank">mozdev.org</a> puis continuant..</p>
<h2>A quoi sert install.rdf?</h2>
<p>Le fichier install.rdf permet de déterminer les informations concernant le plugin Firefox, ces informations sont représentées en <a title="Extensible Markup Language" href="http://fr.wikipedia.org/wiki/.xml" target="_blank">XML</a> sous forme de balises <a href="http://fr.wikipedia.org/wiki/Metadata" title="Métadonnées" target="_blank">metadata</a> et permettent de définir la version, auteur, versions compatibles, mise à jours etc.., et de tout ça ce qui nous importe est : </p>
<p><img src="http://www.mcherifi.org/wp-content/uploads/2010/02/install.rdf.jpg" alt="install.rdf" title="install.rdf" width="510" height="152" class="alignnone size-full wp-image-585" /></p>
<p>Vous l&#8217;avez bien compris! c&#8217;est le champ <em>maxVersion</em> qu&#8217;il faut modifier pour que votre extension marche sur la dernière version récemment sortie! Mettez le numéro de la dernière version ou même plus si ça vous chante, compresser à nouveau le répertoire en ext.zip et renomer le en .xpi, faite le glisser sur une fenêtre firefox, et hop ça marche!</p>
<p>L&#8217;avantage de cette astuce c&#8217;est que ça vous éviderai de croiser les mains pendant une demi journée (voir plus) à attendre que l&#8217;éditeur d&#8217;une extension met à jour son install.rdf, (c&#8217;est vous qui le fait à sa place :P)</p>



Partager cet article:


	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=twitter&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&d=http://twitter.com/home?status=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F%20-%20TARGET" title="Twitter"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=facebook-post&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&d=http://www.facebook.com/share.php?u=TARGET%26t=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F" title="Facebook"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F&amp;annotation=L%27une%20des%20probl%C3%A9matiques%20qu%27on%20rencontre%20souvent%20sous%20Firefox%20c%27est%20quand%20on%20installe%20la%20version%20la%20plus%20r%C3%A9cente%2C%20on%20risque%20de%20perdre%20la%20moiti%C3%A9%20des%20extensions%20install%C3%A9es%21%20pour%20la%20simple%20raison%20que%20ces%20extensions%20ne%20sont%20pas%20compatible%20avec%20la%20der" title="Google Bookmarks"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F&amp;notes=L%27une%20des%20probl%C3%A9matiques%20qu%27on%20rencontre%20souvent%20sous%20Firefox%20c%27est%20quand%20on%20installe%20la%20version%20la%20plus%20r%C3%A9cente%2C%20on%20risque%20de%20perdre%20la%20moiti%C3%A9%20des%20extensions%20install%C3%A9es%21%20pour%20la%20simple%20raison%20que%20ces%20extensions%20ne%20sont%20pas%20compatible%20avec%20la%20der" title="del.icio.us"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html" title="Netvibes"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.viadeo.com/shareit/share/?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F&urllanguage=fr" title="viadeo FR"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/viadeo.png" title="viadeo FR" alt="viadeo FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F&amp;bodytext=L%27une%20des%20probl%C3%A9matiques%20qu%27on%20rencontre%20souvent%20sous%20Firefox%20c%27est%20quand%20on%20installe%20la%20version%20la%20plus%20r%C3%A9cente%2C%20on%20risque%20de%20perdre%20la%20moiti%C3%A9%20des%20extensions%20install%C3%A9es%21%20pour%20la%20simple%20raison%20que%20ces%20extensions%20ne%20sont%20pas%20compatible%20avec%20la%20der" title="Digg"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F&amp;source=Mohammed+CHERIFI+Another+Web+Developper+Blog%21&amp;summary=L%27une%20des%20probl%C3%A9matiques%20qu%27on%20rencontre%20souvent%20sous%20Firefox%20c%27est%20quand%20on%20installe%20la%20version%20la%20plus%20r%C3%A9cente%2C%20on%20risque%20de%20perdre%20la%20moiti%C3%A9%20des%20extensions%20install%C3%A9es%21%20pour%20la%20simple%20raison%20que%20ces%20extensions%20ne%20sont%20pas%20compatible%20avec%20la%20der" title="LinkedIn"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html" title="Slashdot"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html" title="Sphinn"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F" title="Mixx"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html" title="Identi.ca"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;partner=sociable" title="Print"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=pingfm&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&d=http://ping.fm/ref/?link=TARGET%26title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F%26body=L%27une%20des%20probl%C3%A9matiques%20qu%27on%20rencontre%20souvent%20sous%20Firefox%20c%27est%20quand%20on%20installe%20la%20version%20la%20plus%20r%C3%A9cente%2C%20on%20risque%20de%20perdre%20la%20moiti%C3%A9%20des%20extensions%20install%C3%A9es%21%20pour%20la%20simple%20raison%20que%20ces%20extensions%20ne%20sont%20pas%20compatible%20avec%20la%20der" title="Ping.fm"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=mailto&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&d=mailto:?subject=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F%26body=TARGET" title="email"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F&amp;selection=L%27une%20des%20probl%C3%A9matiques%20qu%27on%20rencontre%20souvent%20sous%20Firefox%20c%27est%20quand%20on%20installe%20la%20version%20la%20plus%20r%C3%A9cente%2C%20on%20risque%20de%20perdre%20la%20moiti%C3%A9%20des%20extensions%20install%C3%A9es%21%20pour%20la%20simple%20raison%20que%20ces%20extensions%20ne%20sont%20pas%20compatible%20avec%20la%20der" title="Posterous"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/posterous.png" title="Posterous" alt="Posterous" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F" title="Reddit"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;submitHeadline=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F&amp;submitSummary=L%27une%20des%20probl%C3%A9matiques%20qu%27on%20rencontre%20souvent%20sous%20Firefox%20c%27est%20quand%20on%20installe%20la%20version%20la%20plus%20r%C3%A9cente%2C%20on%20risque%20de%20perdre%20la%20moiti%C3%A9%20des%20extensions%20install%C3%A9es%21%20pour%20la%20simple%20raison%20que%20ces%20extensions%20ne%20sont%20pas%20compatible%20avec%20la%20der&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;partner=sociable" title="PDF"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/feed" title="RSS"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F" title="Diigo"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F&amp;u=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html" title="Fark"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html&amp;title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F" title="Blogosphere News"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://cimlap.blogter.hu/index.php?action=suggest_link&amp;title=Comment%20mettre%20%C3%A0%20jour%20ses%20extensions%20Firefox%20%22p%C3%A9rim%C3%A9es%22%3F&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html" title="blogtercimlap"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/blogter.png" title="blogtercimlap" alt="blogtercimlap" class="sociable-hovers" /></a>


<br/><br/>
<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-mettre-a-jour-ses-extensions-firefox-perimees.html" layout="standard" show_faces="true" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcherifi.org/tutoriaux/comment-mettre-a-jour-ses-extensions-firefox-perimees.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enchainer plusieurs animations avec jQuery</title>
		<link>http://www.mcherifi.org/tutoriaux/enchainer-plusieurs-animations-avec-jquery.html</link>
		<comments>http://www.mcherifi.org/tutoriaux/enchainer-plusieurs-animations-avec-jquery.html#comments</comments>
		<pubDate>Wed, 23 Sep 2009 23:08:07 +0000</pubDate>
		<dc:creator>Mohammed CHERIFI</dc:creator>
				<category><![CDATA[Tutoriaux]]></category>
		<category><![CDATA[animate]]></category>
		<category><![CDATA[chain animation]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.mcherifi.org/?p=176</guid>
		<description><![CDATA[TweetBonjour à tous!
Savez vous qu&#8217;avec jQuery il est possible d&#8217;enchainer plusieurs animations à la fois dans une seule instruction? alors la réponse est OUI, on peut même aller plus loin avec un peu d&#8217;imagination et c&#8217;est vraiment très facile à mettre en œuvre! En fait chaque méthode dans jQuery retourne l’objet lui-même, ainsi on peut [...]]]></description>
			<content:encoded><![CDATA[<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.mcherifi.org/tutoriaux/enchainer-plusieurs-animations-avec-jquery.html" data-text="Enchainer plusieurs animations avec jQuery" data-count="horizontal">Tweet</a><p>Bonjour à tous!</p>
<p>Savez vous qu&#8217;avec jQuery il est possible d&#8217;enchainer plusieurs animations à la fois dans une seule instruction? alors la réponse est OUI, on peut même aller plus loin avec un peu d&#8217;imagination et c&#8217;est vraiment très facile à mettre en œuvre! En fait chaque méthode dans jQuery retourne l’objet lui-même, ainsi on peut enchaîner à une autre méthode :</p>
<p>Exemple :</p>
<pre class="brush: html">
&lt;script type=&quot;text/javascript&quot;&gt;// &lt;![CDATA[
jQuery(window).ready(function(){
$(&#039;#testcode1&#039;).click(function(){
$(&#039;#mondiv&#039;).animate({width:&#039;200px&#039;, fontSize: &quot;18px&quot;, borderWidth:&#039;3px&#039;, marginLeft:&#039;100px&#039;, opacity:&#039;0.8&#039;, padding:&#039;10px&#039;},2000)
.animate({width:&#039;120px&#039;, marginLeft:&#039;0&#039;, fontSize: &quot;12px&quot;, borderWidth:0, opacity:&#039;1&#039;, padding:&#039;0&#039;},2000);
return false;
});
});
// ]]&gt;&lt;/script&gt;
&lt;a id=&quot;testcode1&quot;&gt;Tester le code&lt;/a&gt;
&lt;div id=&quot;mondiv&quot; style=&quot;border: 1px solid #ffffff; background: #077f2e none repeat scroll 0% 0%; width: 120px; height: 120px;&quot;&gt;Un div de test&lt;/div&gt;
</pre>
<p><script type="text/javascript">// <![CDATA[
jQuery(window).ready(function(){
$('#testcode1').click(function(){
$('#mondiv').animate({width:'200px', fontSize: "18px", borderWidth:'3px', marginLeft:'100px', opacity:'0.8', padding:'10px'},2000)
.animate({width:'120px', marginLeft:'0', fontSize: "12px", borderWidth:0, opacity:'1', padding:'0'},2000);
return false;
});
});
// ]]&gt;</script><br />
<strong>Resultat</strong><br />
<a id="testcode1">Tester le code</a></p>
<div id="mondiv" style="border: 1px solid #ffffff; background: #077f2e none repeat scroll 0% 0%; width: 120px; height: 120px;">Un div de test</div>
<p>La fonction animate() est une fonction native en jQuery, elle permet d&#8217;animer les propriétés CSS d&#8217;un objet jQuery dans une durée bien déterminée , la syntaxe comme dans l&#8217;exemple si-dessus est très simple!</p>
<p>On peut animer une seule, ou plusieurs propriétés CSS à la fois! Par exemple pour animer la largeur d&#8217;un div ayant l&#8217;id test et la mettre à 300px sur 2secondes le code sera :</p>
<pre class="brush: javascript">
$(&#039;#test&#039;).animate({width&#039;:&#039;300px&#039;},2000);
</pre>
<p>Ainsi on peut enchainer autant qu&#8217;on veux, le reste dépend de votre imagination ^^, à noter que la durée de l&#8217;animation (2000) est en millisecondes, d&#8217;où 1 seconde = 1000 ms</p>
<p><strong>Un autre Exemple d&#8217;enchainement d&#8217;animation</strong></p>
<p>Dans cette exemple, on va animer un div ayant un arrière plan rouge, et une image d&#8217;étoile pour construire le drapeau du maroc à la fin de l&#8217;animation</p>
<p><a href="/data/jquery/animation/animate.html" target="blank">Voir le resultat</a></p>
<p><strong>Code</strong></p>
<pre class="brush: html">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!-- 	www.mcherifi.org --&gt;
	jQuery(window).ready(function(){
		$(&#039;#animationlink&#039;).click(function(){
			$(&#039;#mondiv&#039;).animate({left:&#039;400px&#039;, opacity:&#039;0.3&#039;, width:&#039;40px&#039;, height:&#039;70px&#039;, borderWidth:&#039;20px&#039;}, 1500)
				.animate({top:&#039;300px&#039;, opacity:&#039;0.8&#039;, left:&#039;100px&#039;, width:&#039;70px&#039;, height:&#039;70px&#039;, borderWidth:&#039;7px&#039;}, 1500)
				.animate({top:&#039;160px&#039;, opacity:&#039;0.4&#039;, left:&#039;500px&#039;, width:&#039;170px&#039;, borderWidth:&#039;3px&#039;}, 1200)
				.animate({top:0,  opacity:&#039;0.2&#039;,  left:0, width:&#039;200px&#039;, height:&#039;200px&#039;, borderWidth:&#039;1px&#039;}, 700)
				.animate({opacity:&#039;1&#039;, borderWidth:&#039;2px&#039;}, 1000);

			$(&#039;#monetoile&#039;).css(&#039;opacity&#039;, 0).animate({left:&#039;500px&#039;, top:&#039;400px&#039;, opacity:&#039;0.5&#039;, height:&#039;80px&#039;, width:&#039;100px&#039;}, 1300)
				.animate({left:&#039;260px&#039;, top:&#039;250px&#039;, opacity:&#039;0.8&#039;}, 1000)
				.animate({left:&#039;100px&#039;, width:&#039;0&#039;, opacity:&#039;0.2&#039;}, 1200)
				.animate({width:&#039;154px&#039;, top:&#039;100px&#039;, left:&#039;150px&#039;, opacity:&#039;0.5&#039;}, 1000)
				.animate({left:&#039;30px&#039;, height:&#039;135px&#039;, width:&#039;154px&#039;, top:&#039;30px&#039;, opacity:&#039;1&#039;}, 1200);

			return false;
		});
	});

&lt;/script&gt;
&lt;title&gt;Mohammed CHERIFI - Enchainement d&#039;une animation sous jQUery&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;	

	#contenaire{
		position:relative;
		margin:10px;
	}

	#mondiv{
		background:#f00;
		width:150px;
		height:150px;
		border:1px solid #077F2E;
		position:absolute;
	}

	#monetoile{
		position:absolute;
		display:none;
	}

&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;

	&lt;a href=&quot;#&quot; id=&quot;animationlink&quot;&gt;Animaer&lt;/a&gt;&lt;br /&gt;

	&lt;div id=&quot;contenaire&quot;&gt;
		&lt;div id=&quot;mondiv&quot;&gt;&lt;/div&gt;
		&lt;img id=&quot;monetoile&quot; src=&quot;star.gif&quot; alt=&quot;I Love Morocco&quot; width=&quot;154&quot; height=&quot;135&quot;/&gt;
	&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><a href="/data/animation/animatetuto.zip">Télécharger le code source de l&#8217;amination</a></p>



Partager cet article:


	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=twitter&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&d=http://twitter.com/home?status=Enchainer%20plusieurs%20animations%20avec%20jQuery%20-%20TARGET" title="Twitter"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=facebook-post&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&d=http://www.facebook.com/share.php?u=TARGET%26t=Enchainer%20plusieurs%20animations%20avec%20jQuery" title="Facebook"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;title=Enchainer%20plusieurs%20animations%20avec%20jQuery&amp;annotation=Bonjour%20%C3%A0%20tous%21%0D%0A%0D%0ASavez%20vous%20qu%27avec%20jQuery%20il%20est%20possible%20d%27enchainer%20plusieurs%20animations%20%C3%A0%20la%20fois%20dans%20une%20seule%20instruction%3F%20alors%20la%20r%C3%A9ponse%20est%20OUI%2C%20on%20peut%20m%C3%AAme%20aller%20plus%20loin%20avec%20un%20peu%20d%27imagination%20et%20c%27est%20vraiment%20tr%C3%A8s%20facile%20%C3%A0" title="Google Bookmarks"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;title=Enchainer%20plusieurs%20animations%20avec%20jQuery&amp;notes=Bonjour%20%C3%A0%20tous%21%0D%0A%0D%0ASavez%20vous%20qu%27avec%20jQuery%20il%20est%20possible%20d%27enchainer%20plusieurs%20animations%20%C3%A0%20la%20fois%20dans%20une%20seule%20instruction%3F%20alors%20la%20r%C3%A9ponse%20est%20OUI%2C%20on%20peut%20m%C3%AAme%20aller%20plus%20loin%20avec%20un%20peu%20d%27imagination%20et%20c%27est%20vraiment%20tr%C3%A8s%20facile%20%C3%A0" title="del.icio.us"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=Enchainer%20plusieurs%20animations%20avec%20jQuery&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html" title="Netvibes"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.viadeo.com/shareit/share/?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&title=Enchainer%20plusieurs%20animations%20avec%20jQuery&urllanguage=fr" title="viadeo FR"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/viadeo.png" title="viadeo FR" alt="viadeo FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;title=Enchainer%20plusieurs%20animations%20avec%20jQuery&amp;bodytext=Bonjour%20%C3%A0%20tous%21%0D%0A%0D%0ASavez%20vous%20qu%27avec%20jQuery%20il%20est%20possible%20d%27enchainer%20plusieurs%20animations%20%C3%A0%20la%20fois%20dans%20une%20seule%20instruction%3F%20alors%20la%20r%C3%A9ponse%20est%20OUI%2C%20on%20peut%20m%C3%AAme%20aller%20plus%20loin%20avec%20un%20peu%20d%27imagination%20et%20c%27est%20vraiment%20tr%C3%A8s%20facile%20%C3%A0" title="Digg"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;title=Enchainer%20plusieurs%20animations%20avec%20jQuery&amp;source=Mohammed+CHERIFI+Another+Web+Developper+Blog%21&amp;summary=Bonjour%20%C3%A0%20tous%21%0D%0A%0D%0ASavez%20vous%20qu%27avec%20jQuery%20il%20est%20possible%20d%27enchainer%20plusieurs%20animations%20%C3%A0%20la%20fois%20dans%20une%20seule%20instruction%3F%20alors%20la%20r%C3%A9ponse%20est%20OUI%2C%20on%20peut%20m%C3%AAme%20aller%20plus%20loin%20avec%20un%20peu%20d%27imagination%20et%20c%27est%20vraiment%20tr%C3%A8s%20facile%20%C3%A0" title="LinkedIn"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Enchainer%20plusieurs%20animations%20avec%20jQuery&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html" title="Slashdot"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html" title="Sphinn"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;title=Enchainer%20plusieurs%20animations%20avec%20jQuery" title="Mixx"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html" title="Identi.ca"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;partner=sociable" title="Print"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=pingfm&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&d=http://ping.fm/ref/?link=TARGET%26title=Enchainer%20plusieurs%20animations%20avec%20jQuery%26body=Bonjour%20%C3%A0%20tous%21%0D%0A%0D%0ASavez%20vous%20qu%27avec%20jQuery%20il%20est%20possible%20d%27enchainer%20plusieurs%20animations%20%C3%A0%20la%20fois%20dans%20une%20seule%20instruction%3F%20alors%20la%20r%C3%A9ponse%20est%20OUI%2C%20on%20peut%20m%C3%AAme%20aller%20plus%20loin%20avec%20un%20peu%20d%27imagination%20et%20c%27est%20vraiment%20tr%C3%A8s%20facile%20%C3%A0" title="Ping.fm"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=mailto&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&d=mailto:?subject=Enchainer%20plusieurs%20animations%20avec%20jQuery%26body=TARGET" title="email"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;title=Enchainer%20plusieurs%20animations%20avec%20jQuery&amp;selection=Bonjour%20%C3%A0%20tous%21%0D%0A%0D%0ASavez%20vous%20qu%27avec%20jQuery%20il%20est%20possible%20d%27enchainer%20plusieurs%20animations%20%C3%A0%20la%20fois%20dans%20une%20seule%20instruction%3F%20alors%20la%20r%C3%A9ponse%20est%20OUI%2C%20on%20peut%20m%C3%AAme%20aller%20plus%20loin%20avec%20un%20peu%20d%27imagination%20et%20c%27est%20vraiment%20tr%C3%A8s%20facile%20%C3%A0" title="Posterous"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/posterous.png" title="Posterous" alt="Posterous" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;title=Enchainer%20plusieurs%20animations%20avec%20jQuery" title="Reddit"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;submitHeadline=Enchainer%20plusieurs%20animations%20avec%20jQuery&amp;submitSummary=Bonjour%20%C3%A0%20tous%21%0D%0A%0D%0ASavez%20vous%20qu%27avec%20jQuery%20il%20est%20possible%20d%27enchainer%20plusieurs%20animations%20%C3%A0%20la%20fois%20dans%20une%20seule%20instruction%3F%20alors%20la%20r%C3%A9ponse%20est%20OUI%2C%20on%20peut%20m%C3%AAme%20aller%20plus%20loin%20avec%20un%20peu%20d%27imagination%20et%20c%27est%20vraiment%20tr%C3%A8s%20facile%20%C3%A0&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;partner=sociable" title="PDF"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/feed" title="RSS"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;title=Enchainer%20plusieurs%20animations%20avec%20jQuery" title="Diigo"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=Enchainer%20plusieurs%20animations%20avec%20jQuery&amp;u=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html" title="Fark"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html&amp;title=Enchainer%20plusieurs%20animations%20avec%20jQuery" title="Blogosphere News"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://cimlap.blogter.hu/index.php?action=suggest_link&amp;title=Enchainer%20plusieurs%20animations%20avec%20jQuery&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html" title="blogtercimlap"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/blogter.png" title="blogtercimlap" alt="blogtercimlap" class="sociable-hovers" /></a>


<br/><br/>
<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fenchainer-plusieurs-animations-avec-jquery.html" layout="standard" show_faces="true" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcherifi.org/tutoriaux/enchainer-plusieurs-animations-avec-jquery.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Comment contourner un .htaccess?</title>
		<link>http://www.mcherifi.org/tutoriaux/comment-contourner-un-htaccess.html</link>
		<comments>http://www.mcherifi.org/tutoriaux/comment-contourner-un-htaccess.html#comments</comments>
		<pubDate>Sun, 05 Jul 2009 14:24:32 +0000</pubDate>
		<dc:creator>Mohammed CHERIFI</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Tutoriaux]]></category>
		<category><![CDATA[.htacces]]></category>
		<category><![CDATA[bypass htaccess]]></category>
		<category><![CDATA[contourner htaccess]]></category>
		<category><![CDATA[hacking htaccess]]></category>
		<category><![CDATA[htaccess limit flaw]]></category>

		<guid isPermaLink="false">http://localhost/?p=8</guid>
		<description><![CDATA[TweetL&#8217;objectif de ce tutorial est d&#8217;expliquer une faille qui a été découverte dans les .htaccess, cette faille qui affecte un nombre importants de sites qui utilisent les fichiers .htaccess comme solution afin de restreindre l&#8217;accès à certains fichiers sensibles!
Apache c&#8217;est quoi?
Apache HTTP Server, souvent appelé Apache, est un logiciel de serveur HTTP produit par l&#8217;Apache [...]]]></description>
			<content:encoded><![CDATA[<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.mcherifi.org/tutoriaux/comment-contourner-un-htaccess.html" data-text="Comment contourner un .htaccess?" data-count="horizontal">Tweet</a><p>L&#8217;objectif de ce tutorial est d&#8217;expliquer une faille qui a été découverte dans les .htaccess, cette faille qui affecte un nombre importants de sites qui utilisent les fichiers .htaccess comme solution afin de restreindre l&#8217;accès à certains fichiers sensibles!</p>
<h2>Apache c&#8217;est quoi?</h2>
<p><a href="http://fr.wikipedia.org/wiki/Apache_HTTP_Server" target="_blank">Apache HTTP Server</a>, souvent appelé Apache, est un logiciel de serveur HTTP produit par l&#8217;<a href="http://fr.wikipedia.org/wiki/Apache_Software_Foundation">Apache Software Foundation</a>. il permet tout simplement d&#8217;héberger un site web, il peut évidement tourner sur plusieurs plateformes, sur un total de 182 millions de sites, Apache est utilisé pour 91,5 millions, contre 62,8 millions pour Microsoft IIS.</p>
<h2>Un .htaccess à quoi ça sert?</h2>
<p>un .htacces est un fichier interprété par le serveur apache qui agit sur le répertoire dans-lequel il se trouve, il est généralement utilisé pour protéger l&#8217;accès à un répertoire ou un fichier par un mot de passe, définir les pages d&#8217;erreurs personnalisées, gérer la réécriture d&#8217;url, définir les mime-type et encore plus&#8230;, mais ce qui nous intéresse le plus dans ce tutoriel, c&#8217;est restriction d&#8217;accès à un répertoire ou un fichier.</p>
<h2>Problème :</h2>
<p>Parmi les utilités d&#8217;un .htaccess, il existe <a href="http://www.blogger.com/httpd.apache.org/docs/1.3/mod/core.html#limit">la directive LIMIT</a> qui permet de restreindre l&#8217;accès à certains parties sur un site web, en effet cette protection peut facilement être contournée si elle n&#8217;est pas correctement mise en place</p>
<h2>Exemple :</h2>
<p>On considère que nous avons un serveur web local et qu&#8217;on veut restreindre l&#8217;accès au répertoire /sercret/ , on y met un .htaccess contenant le code suivant :</p>
<pre class="brush: plain">AuthUserFile /repertoire/de/votre/fichier/.htpasswd
AuthName &quot;Accès protégé&quot;
Require valid-user
AuthType Basic</pre>
<p>Ce fichier permet d’indiquer à Apache de refuser toute requête GET ou POST si l’utilisateur n’est pas identifié avec un login et un mot de passe apparaissant dans le fichier .htpasswd</p>
<p>Pour accéder à ce dossier, nous appelons l&#8217;url http://localhost/secret/ via un navigateur web .<br />
La requête envoyée ressemblera à :</p>
<pre class="brush: plain">GET /secret HTTP/1.1
Host: localhost
Connection: close</pre>
<p>on aura le prompt qui nous demandera les identifiant pour accéder au dossier, jusque là tout est normale, le serveur apache ne fait qu&#8217;interpréter la requête qu&#8217;on lui demande.</p>
<p>maintenant imaginons qu&#8217;on envoie une requête différente de GET et POST</p>
<h2>Exemple :</h2>
<pre class="brush: plain">AuthUserFile /repertoire/de/votre/fichier/.htpasswd
AuthName &quot;Accès protégé&quot;
Require valid-user
AuthType Basic
Deny from all
</pre>
<p>Dans ce cas Apache interprétera la requête et n&#8217;affichera aucune erreur, bien qu&#8217;on a pas utilisé GET ou POST qui sont restreint grâce à la directive LIMIT, apache agira gentiment et nous affichera le contenu du répertoire /secret/ ;)</p>
<p>Logiquement apache est censé interdire l&#8217;accès à tout ficher dans le répertoire concerné, le soucis c&#8217;est que cette protection est appliqué seulement si le navigateur appelle la page via GET ou POST, par defaut nos navigateurs appellent implicitement les page avec des recettes GET, pour contourner cette protection, il suffit de se servir d&#8217;un outil comme <a href="http://netcat.sourceforge.net/">NetCat</a> ou bien <a href="https://addons.mozilla.org/fr/firefox/addon/3829">LiveHttpHeaders (Extension Firefox)</a> on modifiant le GET par n&#8217;importe koi et vous hop vous aurez le contenu de la page qui s&#8217;affichera :)</p>
<h2>Comment se protéger ?</h2>
<p>c&#8217;est assez simple, n&#8217;utilisez pas la directive LIMIT dans vos .htaccess pour restreindre l&#8217;accès à vos fichiers sensibles, virez les lignes &lt;Limit&gt; &#8230; &lt;/Limit&gt; de tous vos fichiers .htaccess, ça vous évitera ce genre de problèmes</p>



Partager cet article:


	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=twitter&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&d=http://twitter.com/home?status=Comment%20contourner%20un%20.htaccess%3F%20-%20TARGET" title="Twitter"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=facebook-post&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&d=http://www.facebook.com/share.php?u=TARGET%26t=Comment%20contourner%20un%20.htaccess%3F" title="Facebook"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;title=Comment%20contourner%20un%20.htaccess%3F&amp;annotation=L%27objectif%20de%20ce%20tutorial%20est%20d%27expliquer%20une%20faille%20qui%20a%20%C3%A9t%C3%A9%20d%C3%A9couverte%20dans%20les%20.htaccess%2C%20cette%20faille%20qui%20affecte%20un%20nombre%20importants%20de%20sites%20qui%20utilisent%20les%20fichiers%20.htaccess%20comme%20solution%20afin%20de%20restreindre%20l%27acc%C3%A8s%20%C3%A0%20certains%20fichi" title="Google Bookmarks"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;title=Comment%20contourner%20un%20.htaccess%3F&amp;notes=L%27objectif%20de%20ce%20tutorial%20est%20d%27expliquer%20une%20faille%20qui%20a%20%C3%A9t%C3%A9%20d%C3%A9couverte%20dans%20les%20.htaccess%2C%20cette%20faille%20qui%20affecte%20un%20nombre%20importants%20de%20sites%20qui%20utilisent%20les%20fichiers%20.htaccess%20comme%20solution%20afin%20de%20restreindre%20l%27acc%C3%A8s%20%C3%A0%20certains%20fichi" title="del.icio.us"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=Comment%20contourner%20un%20.htaccess%3F&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html" title="Netvibes"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.viadeo.com/shareit/share/?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&title=Comment%20contourner%20un%20.htaccess%3F&urllanguage=fr" title="viadeo FR"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/viadeo.png" title="viadeo FR" alt="viadeo FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;title=Comment%20contourner%20un%20.htaccess%3F&amp;bodytext=L%27objectif%20de%20ce%20tutorial%20est%20d%27expliquer%20une%20faille%20qui%20a%20%C3%A9t%C3%A9%20d%C3%A9couverte%20dans%20les%20.htaccess%2C%20cette%20faille%20qui%20affecte%20un%20nombre%20importants%20de%20sites%20qui%20utilisent%20les%20fichiers%20.htaccess%20comme%20solution%20afin%20de%20restreindre%20l%27acc%C3%A8s%20%C3%A0%20certains%20fichi" title="Digg"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;title=Comment%20contourner%20un%20.htaccess%3F&amp;source=Mohammed+CHERIFI+Another+Web+Developper+Blog%21&amp;summary=L%27objectif%20de%20ce%20tutorial%20est%20d%27expliquer%20une%20faille%20qui%20a%20%C3%A9t%C3%A9%20d%C3%A9couverte%20dans%20les%20.htaccess%2C%20cette%20faille%20qui%20affecte%20un%20nombre%20importants%20de%20sites%20qui%20utilisent%20les%20fichiers%20.htaccess%20comme%20solution%20afin%20de%20restreindre%20l%27acc%C3%A8s%20%C3%A0%20certains%20fichi" title="LinkedIn"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Comment%20contourner%20un%20.htaccess%3F&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html" title="Slashdot"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html" title="Sphinn"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;title=Comment%20contourner%20un%20.htaccess%3F" title="Mixx"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html" title="Identi.ca"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;partner=sociable" title="Print"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=pingfm&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&d=http://ping.fm/ref/?link=TARGET%26title=Comment%20contourner%20un%20.htaccess%3F%26body=L%27objectif%20de%20ce%20tutorial%20est%20d%27expliquer%20une%20faille%20qui%20a%20%C3%A9t%C3%A9%20d%C3%A9couverte%20dans%20les%20.htaccess%2C%20cette%20faille%20qui%20affecte%20un%20nombre%20importants%20de%20sites%20qui%20utilisent%20les%20fichiers%20.htaccess%20comme%20solution%20afin%20de%20restreindre%20l%27acc%C3%A8s%20%C3%A0%20certains%20fichi" title="Ping.fm"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/wp-content/plugins/sociable/awesmate.php?c=mailto&t=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&d=mailto:?subject=Comment%20contourner%20un%20.htaccess%3F%26body=TARGET" title="email"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;title=Comment%20contourner%20un%20.htaccess%3F&amp;selection=L%27objectif%20de%20ce%20tutorial%20est%20d%27expliquer%20une%20faille%20qui%20a%20%C3%A9t%C3%A9%20d%C3%A9couverte%20dans%20les%20.htaccess%2C%20cette%20faille%20qui%20affecte%20un%20nombre%20importants%20de%20sites%20qui%20utilisent%20les%20fichiers%20.htaccess%20comme%20solution%20afin%20de%20restreindre%20l%27acc%C3%A8s%20%C3%A0%20certains%20fichi" title="Posterous"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/posterous.png" title="Posterous" alt="Posterous" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;title=Comment%20contourner%20un%20.htaccess%3F" title="Reddit"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;submitHeadline=Comment%20contourner%20un%20.htaccess%3F&amp;submitSummary=L%27objectif%20de%20ce%20tutorial%20est%20d%27expliquer%20une%20faille%20qui%20a%20%C3%A9t%C3%A9%20d%C3%A9couverte%20dans%20les%20.htaccess%2C%20cette%20faille%20qui%20affecte%20un%20nombre%20importants%20de%20sites%20qui%20utilisent%20les%20fichiers%20.htaccess%20comme%20solution%20afin%20de%20restreindre%20l%27acc%C3%A8s%20%C3%A0%20certains%20fichi&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;partner=sociable" title="PDF"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mcherifi.org/feed" title="RSS"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;title=Comment%20contourner%20un%20.htaccess%3F" title="Diigo"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=Comment%20contourner%20un%20.htaccess%3F&amp;u=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html" title="Fark"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html&amp;title=Comment%20contourner%20un%20.htaccess%3F" title="Blogosphere News"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://cimlap.blogter.hu/index.php?action=suggest_link&amp;title=Comment%20contourner%20un%20.htaccess%3F&amp;url=http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html" title="blogtercimlap"><img src="http://www.mcherifi.org/wp-content/plugins/sociable/images/blogter.png" title="blogtercimlap" alt="blogtercimlap" class="sociable-hovers" /></a>


<br/><br/>
<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fwww.mcherifi.org%2Ftutoriaux%2Fcomment-contourner-un-htaccess.html" layout="standard" show_faces="true" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcherifi.org/tutoriaux/comment-contourner-un-htaccess.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

