<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Commentaires sur : [Web Développement et Design] Comment utiliser jQuery dans un bookmarklet ?</title>
	<atom:link href="http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/</link>
	<description>Visual Web</description>
	<lastBuildDate>Wed, 11 Jan 2012 13:51:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Par : Jay Salvat</title>
		<link>http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/comment-page-1/#comment-29673</link>
		<dc:creator>Jay Salvat</dc:creator>
		<pubDate>Wed, 14 Jan 2009 15:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/#comment-29673</guid>
		<description>De rien de rien, j&#039;en attendais pas tant :)</description>
		<content:encoded><![CDATA[<p>De rien de rien, j&#8217;en attendais pas tant <img src='http://www.webinventif.fr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : k-ny</title>
		<link>http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/comment-page-1/#comment-29671</link>
		<dc:creator>k-ny</dc:creator>
		<pubDate>Wed, 14 Jan 2009 15:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/#comment-29671</guid>
		<description>@Jay

Rahhhhh, j&#039;ai vraiment pas penser à utiliser le typeof ! Effectivement ça fait économiser pas mal de lignes ! J&#039;ai ajouté ton code au billet, merci pour le partage ;)</description>
		<content:encoded><![CDATA[<p>@Jay</p>
<p>Rahhhhh, j&#8217;ai vraiment pas penser à utiliser le typeof ! Effectivement ça fait économiser pas mal de lignes ! J&#8217;ai ajouté ton code au billet, merci pour le partage <img src='http://www.webinventif.fr/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Jay Salvat</title>
		<link>http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/comment-page-1/#comment-29667</link>
		<dc:creator>Jay Salvat</dc:creator>
		<pubDate>Wed, 14 Jan 2009 14:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/#comment-29667</guid>
		<description>Hi K-ny !

Merci pour ta méthode qui m&#039;a fait gagner du temps. Je pense qu&#039;elle peut être allégée. Voici ma version :

void ((function(){
    if (typeof(jQuery) != &#039;function&#039;) {
        var noeud_js = document.createElement(&quot;script&quot;);
        noeud_js.setAttribute(&quot;src&quot;, &quot;http://code.jquery.com/jquery-latest.pack.js&quot;);
        document.getElementsByTagName(&quot;head&quot;)[0].appendChild(noeud_js);
    }

    function verif_loaded(){
        if (typeof(jQuery) == &#039;function&#039;) {
            clearInterval(interval);
            code();
        }
    }
	
    var interval = window.setInterval(verif_loaded, 100);

    function code(){

    }
})())

J&#039;espère que le code passera dans le commentaire. Si ce n&#039;est pas le cas, n&#039;hésite pas à tout effacer.</description>
		<content:encoded><![CDATA[<p>Hi K-ny !</p>
<p>Merci pour ta méthode qui m&#8217;a fait gagner du temps. Je pense qu&#8217;elle peut être allégée. Voici ma version :</p>
<p>void ((function(){<br />
    if (typeof(jQuery) != &#8216;function&#8217;) {<br />
        var noeud_js = document.createElement(&laquo;&nbsp;script&nbsp;&raquo;);<br />
        noeud_js.setAttribute(&laquo;&nbsp;src&nbsp;&raquo;, &laquo;&nbsp;http://code.jquery.com/jquery-latest.pack.js&nbsp;&raquo;);<br />
        document.getElementsByTagName(&laquo;&nbsp;head&nbsp;&raquo;)[0].appendChild(noeud_js);<br />
    }</p>
<p>    function verif_loaded(){<br />
        if (typeof(jQuery) == &#8216;function&#8217;) {<br />
            clearInterval(interval);<br />
            code();<br />
        }<br />
    }</p>
<p>    var interval = window.setInterval(verif_loaded, 100);</p>
<p>    function code(){</p>
<p>    }<br />
})())</p>
<p>J&#8217;espère que le code passera dans le commentaire. Si ce n&#8217;est pas le cas, n&#8217;hésite pas à tout effacer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : k-ny</title>
		<link>http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/comment-page-1/#comment-656</link>
		<dc:creator>k-ny</dc:creator>
		<pubDate>Sun, 11 Nov 2007 14:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/#comment-656</guid>
		<description>Oui le chargement est assez light ;)</description>
		<content:encoded><![CDATA[<p>Oui le chargement est assez light <img src='http://www.webinventif.fr/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Boris</title>
		<link>http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/comment-page-1/#comment-639</link>
		<dc:creator>Boris</dc:creator>
		<pubDate>Sat, 10 Nov 2007 11:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.webinventif.fr/comment-utiliser-jquery-dans-un-bookmarklet/#comment-639</guid>
		<description>Bien, mais ça oblige à faire un chargement externe avant de lancer le script. Tu me diras avec le cache ça va vite.</description>
		<content:encoded><![CDATA[<p>Bien, mais ça oblige à faire un chargement externe avant de lancer le script. Tu me diras avec le cache ça va vite.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

