<?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>Amicalement Web - Astuces et Bons plans dans le développement web &#187; AJAX</title>
	<atom:link href="http://www.amicalement-web.net/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.amicalement-web.net</link>
	<description>Astuces et bons plans d&#039;un web developpeur</description>
	<lastBuildDate>Wed, 04 Jan 2012 14:54:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Développement Web: les bons plans de la semaine #26</title>
		<link>http://www.amicalement-web.net/developpement-web-les-bons-plans-de-la-semaine-26/2009/12/07/</link>
		<comments>http://www.amicalement-web.net/developpement-web-les-bons-plans-de-la-semaine-26/2009/12/07/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 10:00:40 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Bons plans]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[icone]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.amicalement-web.net/?p=1002</guid>
		<description><![CDATA[Premier billet hors bon plans de la semaine jeudi dernier depuis quelques temps, on est sur la bonne voie pour reprendre les choses en mains. Même si ce sont des billets pas vraiment techniques encore, j&#8217;ai bon espoir d&#8217;arriver à reprendre un rythme un peu plus régulier. Celui de mercredi est même déjà programmé, c&#8217;est [...]]]></description>
			<content:encoded><![CDATA[<p><a  href="http://www.amicalement-web.net/developpement-web-les-bons-plans-de-la-semaine-26/2009/12/07"><img src="http://www.amicalement-web.net/wp-content/uploads/christmas.png" alt="christmas" title="christmas" width="614" height="100" class="alignnone size-full wp-image-1006" /></a> Premier billet hors bon plans de la semaine jeudi dernier depuis quelques temps, on est sur la bonne voie pour reprendre les choses en mains. Même si ce sont des billets pas vraiment techniques encore, j&#8217;ai bon espoir d&#8217;arriver à reprendre un rythme un peu plus régulier. Celui de mercredi est même déjà programmé, c&#8217;est pour dire!</p>
<p>C&#8217;était pour vous tenir au courant un peu. Mais voici ce que vous êtes venu chercher, les bons plans de la semaine.<br />
<span id="more-1002"></span></p>
<ul>
<li><a  href="http://www.highcharts.com/">Des graphs en jQuery qu&#8217;ils sont beaux</a><br />
Le flash, j&#8217;aime pas trop, mais son utilisation pour des graphiques m&#8217;a toujours semblé adapté. Mais petit à petit jQuery grignote ce secteur, en voici une nouvelle illustration très réussie.</li>
<li><a  href="http://techportal.ibuildings.com/2009/12/01/profiling-with-xhprof/">Profiler vos script PHP</a><br />
Une alternative à xdebug très bien introduite par ce billet</li>
<li><a  href="http://www.sitepoint.com/blogs/2009/11/30/online-presentation-tools/">12 sites pour vos présentations en lignes</a><br />
Parce que c&#8217;est devenu un peu une grosse source de connaissance, les présentations exposées en conférence puis mise en ligne, les outils ne manquent donc pas.</li>
<li><a  href="http://webworkerdaily.com/2009/12/05/twittering-causes-blindness-busting-social-media-myths/">Les myths des réseaux sociaux</a><br />
Très bon article sur un sujet d&#8217;actualité</li>
<li><a  href="http://www.webdesignerdepot.com/2009/12/25-funny-t-shirts-for-designers-and-developers/">Des Tshirt pour graphistes et développeurs</a><br />
C&#8217;est bientôt noël, peut-être une idée de cadeaux se cache dans ce billet. Ils ne sont pas tous en vente, mais ils sont tous bien pensés.</li>
<li><a  href="http://designreviver.com/articles/better-drop-shadows-in-photoshop/">Une jolie ombre portée en photoshop</a><br />
Toujours dans la rubrique &laquo;&nbsp;passons nous des graphistes&nbsp;&raquo;, voici un petit tutorial pour une ombre portée très réussie.</li>
<li><a  href="http://redotheoffice.com/?p=120">Plugin symfony sfCodeReview</a><br />
Je ne le connaissais pas, mais je le trouve parfaitement bien pensé. ce plugin vous permettra de balayer le code source de Symfony directement depuis la debug bar</li>
<li><a  href="http://davidwalsh.name/javascrip-reflection">Reflet d&#8217;image en jquery</a><br />
Ca reste toujours sympa, surtout quand c&#8217;est bien codé.</li>
<li><a  href="http://www.webiconset.com/cute-blogging-icon-set/">Encore un set d&#8217;icone pour blog très bien fichu</a><br />
Très travaillé et coloré, tous les icônes indispensables pour réussir son thème de blog</li>
<li><a  href="http://www.jaervelae.com/mollify/index.php">Un explorateur de fichier en PHP</a><br />
Très belle réalisation, ce script pour permettra de vous balader dans l&#8217;arborescence de votre serveur web avec un certain style. Ajax et graphisme sont aussi au rendez-vous.</li>
</ul>
<p><small>crédit photo: http://www.flickr.com/photos/besimo/4094334183/</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.amicalement-web.net/developpement-web-les-bons-plans-de-la-semaine-26/2009/12/07/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE qui joue à cache cache avec l&#8217;ajax</title>
		<link>http://www.amicalement-web.net/ie-qui-joue-a-cache-cache-avec-lajax/2009/08/12/</link>
		<comments>http://www.amicalement-web.net/ie-qui-joue-a-cache-cache-avec-lajax/2009/08/12/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 12:00:15 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Astuces]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.amicalement-web.net/?p=563</guid>
		<description><![CDATA[Oui je sais encore un nouveau billet sans le nouveau thème. Mais il est bien fini à 90%. Il manque quelques tests et un petit module qui me tient à coeur. Bref, en attendant, pas de raison que je ne publie pas! Voici donc une mini astuce, sur un problème rencontré cette semaine, qui m&#8217;aura [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.amicalement-web.net/wp-content/uploads/applications-other.png" alt="applications-other" title="applications-other" width="48" height="48" class="alignleft size-full wp-image-30" /> Oui je sais encore un nouveau billet sans le nouveau thème. Mais il est bien fini à 90%. Il manque quelques tests et un petit module qui me tient à coeur.</p>
<p>Bref, en attendant, pas de raison que je ne publie pas! Voici donc une mini astuce, sur un problème rencontré cette semaine, qui m&#8217;aura un peu usé, surtout quand on voit la solution finale.</p>
<p>On va donc parler de IE et de l&#8217;AJAX.<br />
<span id="more-563"></span><br />
Commençons par poser le décor comme d&#8217;habitude. Quand on fait de l&#8217;AJAX avec symfony, il n&#8217;est pas rare d&#8217;essayer de le faire non intrusif (c&#8217;est même conseillé, mais ça dépend si le site a un intérêt à fonctionner sans javascript), et donc de rendre une même action symfony différemment selon qu&#8217;on l&#8217;attaque en normal ou en AJAX.</p>
<p>Pour cela, on utilise donc un code proche de celui-ci:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$request</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isXmlHttpRequest</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">renderPartial</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'panier/widget'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Au final pour le navigateur, la requête reste la même. Demandez donc maintenant à un navigateur obsolète du genre IE de gérer se genre de mécanisme.<br />
Vous vous attendez au résultat, et je confirme pour vous. De façon non systématique, mais il arrive que si vous chargez d&#8217;abord l&#8217;action par un appel GET classique et que vous exécuez ensuite une requête ajax sur cette même action, IE a tendance à vous renvoyer la page entière et non pas seulement notre partial comme on l&#8217;a défini.</p>
<p>On peut penser que le souci vient de nos entêtes non détectées, mais on s&#8217;aperçoit que d&#8217;autres requêtes AJAX fonctionne&#8230; Et là, on essaye une petite ligne jquery avant notre requête AJAX:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$.<span style="color: #660066;">ajaxSetup</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
    cache<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Et par magie, IE arrête son jeu de cache cache!</p>
<p>C&#8217;est tout bête, mais il fallait le savoir.</p>
<p>Maintenant, je le sais, et vous aussi ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.amicalement-web.net/ie-qui-joue-a-cache-cache-avec-lajax/2009/08/12/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to: Créer un plugin fckeditor</title>
		<link>http://www.amicalement-web.net/how-to-creer-un-plugin-fckeditor/2009/07/23/</link>
		<comments>http://www.amicalement-web.net/how-to-creer-un-plugin-fckeditor/2009/07/23/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 12:00:22 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[fckeditor]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.amicalement-web.net/?p=458</guid>
		<description><![CDATA[Dans le monde du développement web, il y a un domaine où je n&#8217;ai pas encore trouvé une recette miracle: La publication de contenu avec un éditeur WYSIWYG. En même temps, la problématique est costaud, faire éditer du HTML à des gens qui ont déjà du mal avec Word, sans qu&#8217;ils sachent qu&#8217;ils éditent du [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.amicalement-web.net/wp-content/uploads/applications-system.png" alt="applications-system" title="applications-system" width="48" height="48" class="alignleft size-full wp-image-31" /> Dans le monde du développement web, il y a un domaine où je n&#8217;ai pas encore trouvé une recette miracle: La publication de contenu avec un éditeur <acronym title="What You See Is What You Get">WYSIWYG</acronym>. En même temps, la problématique est costaud, faire éditer du HTML à des gens qui ont déjà du mal avec Word, sans qu&#8217;ils sachent qu&#8217;ils éditent du HTML.</p>
<p>Après avoir définitivement abandonné <a  href="http://tinymce.moxiecode.com/" class="extern">TinyMCE</a>, car trop usine à gaz et n&#8217;en faisant qu&#8217;à sa tête, j&#8217;ai essayé <a  href="http://nicedit.com/" class="extern">nicedit</a> comme je vous l&#8217;avais signalé dans <a  href="/developpement-web-les-bons-plans-de-la-semaine-3/2009/06/19/">un bon plan de la semaine</a>. Malheureusement, il reste un peu juste pour certains besoins.<br />
Sur les conseils de <a  href="http://blog.samuel-trocme.fr/12-07-2009/fckeditor-peut-etre-le-meilleur-rte.html" class="extern">Sam</a>, je me suis donc relancé dans une vieille connaissance, <a  href="http://www.fckeditor.net/" class="extern">FCKEditor</a>, un des plus vieux <acronym title="Rich Text Editor">RTE</acronym> avec TinyMCE.<br />
<span id="more-458"></span><br />
S&#8217;il est a noté de nets progrès, il fait encore un peu usine à gaz (mais moins que TinyMCE quand même) et je le trouve particulièrement moche, mais c&#8217;est un détail qui peut se modifier, donc on va le mettre de côté pour l&#8217;instant ;)</p>
<p>Un des impératifs par contre, c&#8217;est la personnalisation et donc la création de plugin permettant de rajouter des boutons avec des fonctionnalités que l&#8217;on aura déterminer nous même. Et vu les difficultés que j&#8217;ai pu rencontrer pour créer mon premier, je me suis dis que ca valait bien quelques explications. Dans un souci de clarté, je ne détaillerai pas l&#8217;installation de fck, je vous invite à faire un tour sur leur site pour ça.</p>
<p>Première chose quand on veut créer un plugin fck, créer son arborescence, dans <code>editor/plugins</code>. Ici, on va créer un plugin qui nous permettra de rajouter un bouton à notre toolbar qui lancera une fenêtre nous permettant de faire un peu ce qu&#8217;on veut, en l&#8217;occurrence dans notre cas, afficher une liste des pages de notre gestionnaire de contenus symfony afin de pouvoir insérer des liens internes entre elle.  </p>
<p>Dans notre nouveau dossier, vous créez donc un fichier plugin.js avec à l&#8217;intérieur:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Ici je crée une action FCK qui s'appelle Internlink, et qui chargera le fichier test.html (qui sera au même niveau que ce fichier) lors de son appel</span>
FCKCommands.<span style="color: #660066;">RegisterCommand</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Internlink'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">new</span> FCKDialogCommand<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Internlink'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'Ajout lien interne'</span><span style="color: #339933;">,</span>FCKConfig.<span style="color: #660066;">PluginsPath</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'internlink/test.html'</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">300</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">300</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Ici je crée un bouton pour la toolbar auquel j'associe l'action précédemment définie</span>
FCKToolbarItems.<span style="color: #660066;">RegisterItem</span><span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">'Internlink'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">new</span> FCKToolbarButton<span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">'Internlink'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'Lien interne'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span> FCK_TOOLBARITEM_ICONTEXT<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">1</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span></pre></div></div>

<p>Ensuite on enchaine avec le template de notre popup qu&#8217;on a appelé test.html plus haut (on le met bien où on veut mais j&#8217;ai définis au-dessus de le mettre au même niveau):</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;meta</span> <span style="color: #000066;">http-equiv</span>=<span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span>=<span style="color: #ff0000;">&quot;text/html; charset=UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    // Cette partie est nécessaire pour pouvoir utiliser les fonctions de fck à l'intérieur de notre popup 
    var oEditor = window.parent.InnerDialogLoaded();
    var FCKConfig = oEditor.FCKConfig;
    var dialog = window.parent;
    document.write('<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;' + FCKConfig.BasePath + 'dialog/common/fck_dialog_common.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>&lt;\/script<span style="color: #000000; font-weight: bold;">&gt;</span></span>');
    dialog.SetOkButton(true); // Par défaut, seul le bouton annuler est affiché, on rajoute le bouton ok	
&nbsp;
    // Maintenant on fait bien ce qu'on veux, ici j'ai décidé de récupérer en AJAX, une liste en JSON de toutes mes pages et d'alimenter ma selectbox avec
    jQuery(document).ready(function(){
      $.getJSON(&quot;/content/selectJson&quot;,{}, function(j){
        var options = '';
        for (var i = 0; i <span style="color: #009900;">&lt; j.length; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #009900;">          options += <span style="color: #ff0000;">'&lt;option value=&quot;'</span> + j<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.optionValue + <span style="color: #ff0000;">'&quot;&gt;</span></span>' + j[i].optionDisplay + '<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>';
        }
        $(&quot;select#intern-link&quot;).html(options);
      })
    });
&nbsp;
    // Puis on surdéfinit une fonction Ok qui est appelé par fck quand on appuye sur le bouton ... ok
    function Ok()
    {
      // Maintenant on utilise fck pour rajouter du contenu à notre RTE. Ici je rajoute simplement les valeurs de mes 2 champs définis dans mon HTML ci-dessous
      oEditor.FCK.InsertHtml( '<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;'+ jQuery('#intern-link').val() +'&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;extern&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>'+ jQuery('#intern-label').val() +'<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>' );
      return true; // Il faut renvoyer true pour fermer la popup
    }
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;add-intern-link&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>		
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;intern-link&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Lien interne<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;select</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;intern-link&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;intern-link&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/select<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>						
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;intern-label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Label<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;intern-label&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;intern-label&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>						
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Il ne reste plus qu&#8217;à charger notre plugin dans notre conf:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">FCKConfig.<span style="color: #660066;">Plugins</span>.<span style="color: #660066;">Add</span><span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">'internlink'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span></pre></div></div>

<p>et ajouter le bouton à notre toolbar comme par exemple:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">FCKConfig.<span style="color: #660066;">ToolbarSets</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;nice&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'Internlink'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></div></div>

<p> et on obtient:<br />
<a  href="http://www.amicalement-web.net/wp-content/uploads/Image-67.png"><img src="http://www.amicalement-web.net/wp-content/uploads/Image-67-300x37.png" alt="Image 67" title="Image 67" width="300" height="37" class="alignnone size-medium wp-image-461" /></a></p>
<p><a  href="http://www.amicalement-web.net/wp-content/uploads/Image-68.png"><img src="http://www.amicalement-web.net/wp-content/uploads/Image-68.png" alt="Image 68" title="Image 68" width="287" height="298" class="alignnone size-full wp-image-460" /></a></p>
<p>On a maintenant accès à toutes nos pages, et un clic sur ok, nous rajoutera un lien dans notre contenu avec le label renseigné. </p>
<p>Il ne reste plus qu&#8217;à adapter à vos besoins ces petits bouts de codes!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.amicalement-web.net/how-to-creer-un-plugin-fckeditor/2009/07/23/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Développement Web: Les bons plans de la semaine #1</title>
		<link>http://www.amicalement-web.net/developpement-web-les-bons-plans-de-la-semaine-1/2009/06/05/</link>
		<comments>http://www.amicalement-web.net/developpement-web-les-bons-plans-de-la-semaine-1/2009/06/05/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 16:20:17 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Bons plans]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.amicalement-web.net/?p=311</guid>
		<description><![CDATA[S&#8217;il y a bien une mode sur laquelle pas mal de blogs ont cédé, c&#8217;est celle de faire des listes. Il faut dire que la liste, c&#8217;est lisible, c&#8217;est rapide à survoler, c&#8217;est propre, la liste c&#8217;est bien! Ya même des sites qui en ont fait leur ligne éditoriale, comme Topito! Et bien, Amicalement-web va [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.amicalement-web.net/wp-content/uploads/applications-other.png" alt="applications-other" title="applications-other" width="48" height="48" class="alignleft size-full wp-image-30" /> S&#8217;il y a bien une mode sur laquelle pas mal de blogs ont cédé, c&#8217;est celle de faire des listes. Il faut dire que la liste, c&#8217;est lisible, c&#8217;est rapide à survoler, c&#8217;est propre, la liste c&#8217;est bien! Ya même des sites qui en ont fait leur ligne éditoriale, comme <a  href="http://topito.com" class="extern">Topito</a>!</p>
<p>Et bien, Amicalement-web va se mettre à suivre la mode! Pourquoi? Et bien, je suis un grand bookmarqueur, mais qui bookmark surtout à son lieu de travail car rarement le temps de lire un article en entier et surtout je bookmark très ciblé sur tout ce qui pourrait me servir dans le monde du développement web. </p>
<p>Alors pour m&#8217;obliger à faire du tri et à relire tous ces bookmarks, je vais vous présenter une sélection chaque semaine. Donc après le billet Symfony du mardi, on aura le billet bon plans du vendredi! (ca rime bof pour le coup).</p>
<p>Voici en exclusivité mondiale la première liste estampillée amicalement-web:</p>
<ul>
<li><a  href="http://symfony-check.org/fr/">Le pense bête pour les déploiements symfony</a><br />
Une petite liste (encore une!) très user friendly, qui permet de vérifiez si votre application symfony est prête pour le déploiement. En gros un résumé de toutes les personnalisations disponibles</li>
<li><a  href="http://obvioushints.blogspot.com/2009/06/new-firesymfony-release.html">Firesymfony</a><br />
Une extension firebug pour remplacer la debug bar de symfony qui se pare avec cette nouvelle release d&#8217;un lokk and feel très pro.</li>
<li><a  href="http://mypocket-technologies.com/jquery/password_strength/">jQuery Password Strength Meter</a><br />
Un plugin jquery qui permet facilement de vérifier la complexité d&#8217;un mot de passe et de renvoyer cette information à l&#8217;utilisateur</li>
<li><a  href="http://www.webdesignbeach.com/beachbar/ajax-fancy-captcha-jquery-plugin">Ajax Fancy Captcha</a><br />
Un autre plugin jquery de captcha plutôt original (via drag n drop)
</li>
<li><a  href="http://wefunction.com/2009/05/40-free-twitter-badges/">Des badges twitter</a><br />
Des badges twitter avec des zozios qui ont du style</li>
<li><a  href="http://www.wpdone.com/wp-themes/simple-perfect/">Simple Perfect WordPress Theme</a><br />
Un thème que je pourrais me voir utiliser, très sobre et propre</li>
<li><a  href="http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html">Comment donner à vos liens un style de bouton</a><br />
Un tutorial très sympa avec un rendu très pro qui utilise le système CSS de porte coulissante</li>
<li><a  href="http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/">A jQuery inline form validation</a><br />
Un des meilleurs validateurs de formulaires jquery qui m&#8217;a été donné de voir</li>
</ul>
<p>Voilà, c&#8217;est tout pour cette semaine de mon côté, et vous un lien vous a marqué cette semaine?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.amicalement-web.net/developpement-web-les-bons-plans-de-la-semaine-1/2009/06/05/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Faites patienter à votre sauce</title>
		<link>http://www.amicalement-web.net/faites-patienter-a-votre-sauce/2009/01/29/</link>
		<comments>http://www.amicalement-web.net/faites-patienter-a-votre-sauce/2009/01/29/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 17:07:19 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Bons plans]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[optimisation]]></category>

		<guid isPermaLink="false">http://www.amicalement-web.net/?p=11</guid>
		<description><![CDATA[Avec l&#8217;arrivée de gros frameworks javascript orienté AJAX que sont jQuery, Prototype ou Mootols, et leur intégration dans les applications PHP, que se soit les CMS ou les frameworks, il devient de plus en plus facile et abordable de dynamiser à coup d&#8217;ajax une interface web. Mais du coup, on en demande de plus en [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.amicalement-web.net/wp-content/uploads/applications-other.png" alt="applications-other" title="applications-other" width="48" height="48" class="alignleft size-full wp-image-30" />Avec l&#8217;arrivée de gros frameworks javascript orienté AJAX que sont <a  href="http://jquery.com/" class="extern">jQuery</a>, <a  href="http://www.prototypejs.org/" class="extern">Prototype</a> ou <a  href="http://mootools.net/" class="extern">Mootols</a>, et leur intégration dans les applications PHP, que se soit les CMS ou les frameworks, il devient de plus en plus facile et abordable de dynamiser à coup d&#8217;ajax une interface web.</p>
<p>Mais du coup, on en demande de plus en plus, et les traitements sont bien souvent de plus en plus lourd. Et pour un utilisateur rien n&#8217;est plus frustrant que de cliquer sur un lien/bouton et ne de pas voir l&#8217;application réagir, ne serait-ce que pour l&#8217;informer qu&#8217;elle a bien compris sa demande.</p>
<p>On a donc trouvé la solution, de petits gif animés qui symbolisent l&#8217;attente comme par exemple:<br />
<img src="http://www.amicalement-web.net/wp-content/uploads/ajax-loader.gif" alt="ajax-loader" title="ajax-loader" width="32" height="32" class="alignnone size-full wp-image-53" /> ou bien <img src="http://www.amicalement-web.net/wp-content/uploads/ajax-loader2.gif" alt="ajax-loader2" title="ajax-loader2" width="126" height="22" class="alignnone size-full wp-image-54" /></p>
<p>Et certains ont donc eu la bonne idée de faire un <a  href="http://www.ajaxload.info/" class="extern">générateur de load ajax</a> avec la possibilité de changer les couleurs pour coller au mieux à votre charte graphique. Il suffisait d&#8217;y penser!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.amicalement-web.net/faites-patienter-a-votre-sauce/2009/01/29/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
