<?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>Web2Doud : blog sur le développement Web!</title>
	<atom:link href="http://www.web-doud.fr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-doud.fr</link>
	<description>Un blog qui traite du développement Web</description>
	<lastBuildDate>Fri, 22 Apr 2011 16:17:04 +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>PHP: Supprimer les accents d&#8217;une chaîne de caractères</title>
		<link>http://www.web-doud.fr/php-supprimer-les-accents/</link>
		<comments>http://www.web-doud.fr/php-supprimer-les-accents/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 16:09:52 +0000</pubDate>
		<dc:creator>doud</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[accents]]></category>
		<category><![CDATA[encodage]]></category>
		<category><![CDATA[UTF-8]]></category>

		<guid isPermaLink="false">http://www.web-doud.fr/?p=191</guid>
		<description><![CDATA[Pour mettre un texte en majuscule ou pour toute autre raison, il est parfois nécessaire de passer par une fonction pour supprimer les accents.

<img src="http://www.web-doud.fr/wp-content/uploads/elephant-elephant-php-logo.png" alt="" title="elephant-elephant-php-logo" width="327" height="248" class="aligncenter size-full wp-image-200" />]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.web-doud.fr%2Fphp-supprimer-les-accents%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.web-doud.fr%2Fphp-supprimer-les-accents%2F&amp;source=lucas_milin&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Pour mettre un texte en majuscule ou pour toute autre raison, il est parfois nécessaire de passer par une fonction pour supprimer les accents.</p>
<p>Voici une fonction assez simple pour exécuter cette tâche:</p>
<pre LANGUAGE="PHP">
function stripAccents($string){
return strtr($string,'àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ', 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY');
}
</pre>
<p>La fonction précédente ne marchera pas correctement pour les chaînes de caractères encodées en UTF8.</p>
<p>Petit rappel sur la différence du nombre de bits entre la norme ISO et la norme UTF-8 par <a href="http://electron-libre.fassnet.net/utf8.php">ici</a>.</p>
<p>Pour un encodage UTF-8 on utilisera cette fonction :</p>
<pre LANGUAGE="PHP">
function stripAccentsUtf8($string)
{
$string = mb_strtolower($string, 'UTF-8');
$string = str_replace(
array(
'à', 'â', 'ä', 'á', 'ã', 'å',
'î', 'ï', 'ì', 'í',
'ô', 'ö', 'ò', 'ó', 'õ', 'ø',
'ù', 'û', 'ü', 'ú',
'é', 'è', 'ê', 'ë',
'ç', 'ÿ', 'ñ',
),
array(
'a', 'a', 'a', 'a', 'a', 'a',
'i', 'i', 'i', 'i',
'o', 'o', 'o', 'o', 'o', 'o',
'u', 'u', 'u', 'u',
'e', 'e', 'e', 'e',
'c', 'y', 'n',
),
$string
);

return $string;
}
</pre>
<p>Si vous rencontrez des problèmes avec certaines fonctions (on peut citer <a href="http://php.net/manual/fr/function.strlen.php">strlen()</a> qui retourne une longueur supérieure au nombre total de caractères), c&#8217;est que l&#8217;UTF-8 n&#8217;est pas supporter. Il existe bien souvent une fonction PHP équivalente avec le prefix mb_ dans la signature qui marchera.</p>
<div class="shr-publisher-191"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://www.web-doud.fr/php-supprimer-les-accents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Astuce jQuery : détecter l&#8217;utilisation de la touche Entrée/Enter</title>
		<link>http://www.web-doud.fr/astuce-jquery-detecter-lutilisation-de-la-touche-entreeenter/</link>
		<comments>http://www.web-doud.fr/astuce-jquery-detecter-lutilisation-de-la-touche-entreeenter/#comments</comments>
		<pubDate>Sat, 19 Feb 2011 22:58:34 +0000</pubDate>
		<dc:creator>doud</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Enter]]></category>
		<category><![CDATA[Entrée]]></category>
		<category><![CDATA[keyup]]></category>

		<guid isPermaLink="false">http://www.web-doud.fr/?p=181</guid>
		<description><![CDATA[Pour des champ de recherche il se peut que vous ayez mis une balise image <code>&#60;img&#62;</code> plutôt qu'un élément <code>&#60;input&#62;</code> de type submit. Il est dès lors impossible d'utiliser la touche Entrée pour exécuter votre requête.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.web-doud.fr%2Fastuce-jquery-detecter-lutilisation-de-la-touche-entreeenter%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.web-doud.fr%2Fastuce-jquery-detecter-lutilisation-de-la-touche-entreeenter%2F&amp;source=lucas_milin&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Pour des champ de recherche il se peut que vous ayez mis une balise image <code>&lt;img&gt;</code> plutôt qu&#8217;un élément <code>&lt;input&gt;</code> de type submit. Il est dès lors impossible d&#8217;utiliser la touche Entrée pour exécuter votre requête.</p>
<p>Pour détecter si la touche Entrée est enfoncée, vous pouvez utiliser le code suivant :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p181code1'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1811"><td class="code" id="p181code1"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#{id_img}'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keyup</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//remplacez {id_img} par l'id de votre image</span>
      <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">keyCode</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">13</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #006600; font-style: italic;">//votre code à exécuter</span>
       <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<div class="shr-publisher-181"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://www.web-doud.fr/astuce-jquery-detecter-lutilisation-de-la-touche-entreeenter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Astuce jQuery : attendre le chargement d&#8217;un iframe</title>
		<link>http://www.web-doud.fr/astuce-jquery-attendre-le-chargement-dun-iframe/</link>
		<comments>http://www.web-doud.fr/astuce-jquery-attendre-le-chargement-dun-iframe/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 03:22:11 +0000</pubDate>
		<dc:creator>doud</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[iframe]]></category>

		<guid isPermaLink="false">http://www.web-doud.fr/?p=176</guid>
		<description><![CDATA[Pour ceux qui utilise les iframe et qui veulent créer un événement sur la fenêtre parente dès que l'frame a chargé la cible, vous pouvait utiliser ce bout de code JavaScript.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.web-doud.fr%2Fastuce-jquery-attendre-le-chargement-dun-iframe%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.web-doud.fr%2Fastuce-jquery-attendre-le-chargement-dun-iframe%2F&amp;source=lucas_milin&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Pour ceux qui utilise les iframe et qui veulent créer un événement sur la fenêtre parente dès que l&#8217;frame a chargé la cible, vous pouvait utiliser ce bout de code JavaScript :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p176code2'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1762"><td class="code" id="p176code2"><pre class="html" style="font-family:monospace;">&lt;iframe src=&quot;http://api.jquery.com/&quot; id=&quot;frame&quot;&gt;&lt;/iframe&gt;</pre></td></tr></table></div>


<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p176code3'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1763"><td class="code" id="p176code3"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;iframe&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">one</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'load'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">//Do something</span>
 <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<div class="shr-publisher-176"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://www.web-doud.fr/astuce-jquery-attendre-le-chargement-dun-iframe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installer la library FPDF dans le framework CodeIgniter</title>
		<link>http://www.web-doud.fr/installer-la-library-fpdf-dans-le-framework-codeigniter/</link>
		<comments>http://www.web-doud.fr/installer-la-library-fpdf-dans-le-framework-codeigniter/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 20:04:32 +0000</pubDate>
		<dc:creator>doud</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[FPDF]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.web-doud.fr/?p=165</guid>
		<description><![CDATA[Nous allons voir aujourd'hui comment intégrer la très utile library FPDF dans le framework CodeIgniter. 
<a href="http://www.web-doud.fr/wp-content/uploads/codeigniter.png"><img src="http://www.web-doud.fr/wp-content/uploads/codeigniter.png" alt="" title="codeigniter" width="137" height="189" class="aligncenter size-full wp-image-170" /></a>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.web-doud.fr%2Finstaller-la-library-fpdf-dans-le-framework-codeigniter%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.web-doud.fr%2Finstaller-la-library-fpdf-dans-le-framework-codeigniter%2F&amp;source=lucas_milin&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Nous allons voir aujourd&#8217;hui comment intégrer la très utile library FPDF dans le framework CodeIgniter. Tout d&#8217;abord, il faut télécharger le package de FPDF à l&#8217;adresse suivante <a href="http://www.fpdf.org/">http://www.fpdf.org/</a> dans lq rubrique &laquo;&nbsp;Télécharger&nbsp;&raquo;. </p>
<p>Ensuite il suffit de copier le fichier fpdf.php dans le dossier /application/libraries/ et le dossier &laquo;&nbsp;font&nbsp;&raquo; dans le dossier /system/fonts</p>
<p>Ajouter la ligne de code ci-dessous dans le fichier /application/config/config.php</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p165code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1654"><td class="code" id="p165code4"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'fonts_path'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;le-chemin-de-votre dossier-font&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Pour tester, la library créer un contrôleur pdf.php avec le code suivant:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p165code5'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1655"><td class="code" id="p165code5"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">library</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'fpdf'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FPDF_FONTPATH'</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">item</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'fonts_path'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fpdf</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Open</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fpdf</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AddPage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fpdf</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFont</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Arial'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">12</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fpdf</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Cell</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Hello World!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fpdf</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Output</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<div class="shr-publisher-165"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://www.web-doud.fr/installer-la-library-fpdf-dans-le-framework-codeigniter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Récupération d&#8217;une variable PHP avec jQuery</title>
		<link>http://www.web-doud.fr/recuperation-dune-variable-php-avec-jquery/</link>
		<comments>http://www.web-doud.fr/recuperation-dune-variable-php-avec-jquery/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 15:37:29 +0000</pubDate>
		<dc:creator>doud</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[json_encode]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[variable]]></category>

		<guid isPermaLink="false">http://www.web-doud.fr/?p=154</guid>
		<description><![CDATA[Bien souvent lorsqu'on développe en JavaScript, nos script requièrent certaines variables, comme la langue utilisée, qui sont  affectées en PHP. Pour cela nous allons utiliser la fonction $.ajax de la jQuery.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.web-doud.fr%2Frecuperation-dune-variable-php-avec-jquery%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.web-doud.fr%2Frecuperation-dune-variable-php-avec-jquery%2F&amp;source=lucas_milin&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Bien souvent lorsqu&#8217;on développe en JavaScript, nos scripts requièrent certaines variables, comme la langue utilisée par exemple, qui sont  affectées en PHP. Pour cela nous allons utiliser la fonction $.ajax de la library jQuery.</p>
<p>Voici le principe avec une réponse en JSON:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p154code6'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1546"><td class="code" id="p154code6"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span>  lang <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> flag <span style="color: #339933;">;</span>
    $.<span style="color: #660066;">ajax</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
          async<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>  <span style="color: #006600; font-style: italic;">//mode synchrone très important</span>
          type<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;POST&quot;</span><span style="color: #339933;">,</span>
          url<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;/path/folder/get_lang.php&quot;</span><span style="color: #339933;">,</span>
          dataType<span style="color: #339933;">:</span> <span style="color: #3366CC;">'json'</span><span style="color: #339933;">,</span>
          success<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>flag <span style="color: #339933;">=</span> data.<span style="color: #660066;">lang</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">return</span><span style="color: #009900;">&#40;</span>flag<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Le contenu PHP à adapter à votre architecture. Pour le test, j&#8217;utilise le fichier get_lang.php:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p154code7'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1547"><td class="code" id="p154code7"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>
    <span style="color: #666666; font-style: italic;">//PHP &gt;= 5.2 requis ou PECL &gt;= 1.2</span>
    <span style="color: #666666; font-style: italic;">//versions antérieures développer la fonction json_encode()</span>
    <a href="http://www.php.net/session_start"><span style="color: #990000;">session_start</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">echo</span> <a href="http://www.php.net/json_encode"><span style="color: #990000;">json_encode</span></a><span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'lang'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'LANG'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>  <span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Après ça, vous pouvez utiliser la variable lang n&#8217;importe où dans votre JavaScript. Toutefois, il n&#8217;est pas recommandé d&#8217;utiliser cette méthode trop souvent car l&#8217;affichage de votre site risque d&#8217;être ralenti.</p>
<div class="shr-publisher-154"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://www.web-doud.fr/recuperation-dune-variable-php-avec-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery UI : Changer le label des boutons du dialog</title>
		<link>http://www.web-doud.fr/jquery-ui-changer-le-label-des-boutons-du-dialog/</link>
		<comments>http://www.web-doud.fr/jquery-ui-changer-le-label-des-boutons-du-dialog/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 17:03:53 +0000</pubDate>
		<dc:creator>doud</dc:creator>
				<category><![CDATA[jQuery UI]]></category>
		<category><![CDATA[bouton]]></category>
		<category><![CDATA[dialog]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[label]]></category>

		<guid isPermaLink="false">http://www.web-doud.fr/?p=143</guid>
		<description><![CDATA[Nous allons voir 2 méthodes pour créer dynamiquement des label pour les boutons des boîtes de dialogue. Cela s'avère utile pour les sites multilingues.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.web-doud.fr%2Fjquery-ui-changer-le-label-des-boutons-du-dialog%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.web-doud.fr%2Fjquery-ui-changer-le-label-des-boutons-du-dialog%2F&amp;source=lucas_milin&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Nous allons voir 2 méthodes pour créer dynamiquement des labels pour les boutons des boîtes de dialogue du framework jQuery UI. Cela s&#8217;avère utile pour les sites multilingues.</p>
<p>Méthode 1 :<br />
On créé un tableau associatif en JavaScript:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p143code8'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1438"><td class="code" id="p143code8"><pre class="javascript" style="font-family:monospace;">&nbsp;
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>fr<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> labelCancel <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Annuler&quot;</span> <span style="color: #339933;">;</span>
    <span style="color: #003366; font-weight: bold;">var</span> labelAddl <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Ajouter&quot;</span> <span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>en<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> labelCancel <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Annuler&quot;</span> <span style="color: #339933;">;</span>
    <span style="color: #003366; font-weight: bold;">var</span> labelAddl <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Ajouter&quot;</span> <span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> buttons <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">;</span>
&nbsp;
buttons<span style="color: #009900;">&#91;</span>labelCancel<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>...<span style="color: #009900;">&#125;</span> <span style="color: #339933;">;</span>
buttons<span style="color: #009900;">&#91;</span>labelAddl<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>...<span style="color: #009900;">&#125;</span> <span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#dialog'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dialog</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> buttons<span style="color: #339933;">:</span> buttons <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Méthode 2 :<br />
On modifie le contenu HTML des boutons :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p143code9'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1439"><td class="code" id="p143code9"><pre class="javascript" style="font-family:monospace;">&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#dialog'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dialog</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> 
    buttons<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> 
        <span style="color: #3366CC;">'Cancel'</span> <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> ... <span style="color: #009900;">&#125;</span> <span style="color: #339933;">,</span> 
        <span style="color: #3366CC;">'Add'</span> <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> ... <span style="color: #009900;">&#125;</span> 
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>fr<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;:button:contains('Cancel')&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Annuler&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;:button:contains('Add')&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Ajouter&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<div class="shr-publisher-143"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://www.web-doud.fr/jquery-ui-changer-le-label-des-boutons-du-dialog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment faire des factures rapidement</title>
		<link>http://www.web-doud.fr/comment-faire-des-factures-rapidement/</link>
		<comments>http://www.web-doud.fr/comment-faire-des-factures-rapidement/#comments</comments>
		<pubDate>Fri, 07 May 2010 12:19:59 +0000</pubDate>
		<dc:creator>doud</dc:creator>
				<category><![CDATA[Divers]]></category>
		<category><![CDATA[facture]]></category>
		<category><![CDATA[freelance]]></category>

		<guid isPermaLink="false">http://www.web-doud.fr/?p=139</guid>
		<description><![CDATA[Si vous êtes freelance et que vous souhaitez faire de simples factures, je vous conseille le site : <a href="http://www.bonnefacture.eu">www.bonnefacture.eu</a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.web-doud.fr%2Fcomment-faire-des-factures-rapidement%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.web-doud.fr%2Fcomment-faire-des-factures-rapidement%2F&amp;source=lucas_milin&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Si vous êtes freelance et que vous souhaitez faire de simples factures, je vous conseille le site : <a href="http://www.bonnefacture.eu">www.bonnefacture.eu</a></p>
<p>Ce site est une mini-application qui vous permet d&#8217;éditer des factures rapidement. Il vous faut tout d&#8217;abord créer un compte et ensuite vous pouvez créer des devis, des factures, des factures sans TVA, des factures saisie TTC et des avoirs.</p>
<p>Seul petit regret, ce système ne propose que 3 unités monetaires :Euro, Dollar U.S et la Livre Sterling.</p>
<div class="shr-publisher-139"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://www.web-doud.fr/comment-faire-des-factures-rapidement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebKit 2 : des processus séparés</title>
		<link>http://www.web-doud.fr/webkit-2-des-processus-separes/</link>
		<comments>http://www.web-doud.fr/webkit-2-des-processus-separes/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 10:13:43 +0000</pubDate>
		<dc:creator>doud</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[navigateur]]></category>
		<category><![CDATA[processus]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://www.web-doud.fr/?p=109</guid>
		<description><![CDATA[WebKit dans version 2 intègre désormais la gestion de processus séparés (a split process model).

<a href="http://www.web-doud.fr/webkit-2-des-processus-separes/"><img src="http://www.web-doud.fr/wp-content/uploads/icon.png" alt="webkit 2" title="webkit 2" width="215" height="174" class="aligncenter size-full wp-image-110" /></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.web-doud.fr%2Fwebkit-2-des-processus-separes%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.web-doud.fr%2Fwebkit-2-des-processus-separes%2F&amp;source=lucas_milin&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>WebKit dans version 2 intègre désormais la gestion de processus séparés (a split process model).</p>
<p><img src="http://www.web-doud.fr/wp-content/uploads/icon.png" alt="webkit 2" title="webkit 2" width="215" height="174" class="aligncenter size-full wp-image-110" /></p>
<p> Pour rappel, WebKit est une bibliothèque open source  permettant aux développeurs d&#8217;intégrer facilement un moteur de rendu de pages Internet dans leurs propres logiciels. Ce projet est utilisé par les navigateurs internet Safari et Google Chrome (et bien d&#8217;autres logiciels). </p>
<p>Revenons aux processus séparés. Le nouveau framework permet désormais d&#8217;exécuter le contenu Web (JavaScript, HTML, etc) dans des processus séparés. Le navigateur Google Chrome utilise déjà ce système mais dans une surcouche du framework. La nouveauté vient du fait que ce système est directement intégré dans WebKit. Il est donc accessible à tous les utilisateurs de WebKit.</p>
<p>Voici l&#8217;architecture du WebKit 2 :</p>
<p><img src="http://www.web-doud.fr/wp-content/uploads/webkit2-stack.png" alt="" title="webkit2-stack" width="359" height="300" class="aligncenter size-full wp-image-132" /></p>
<p>Et voici une approche différente du multiprocessus utilisé par Google Chrome :</p>
<p><img src="http://www.web-doud.fr/wp-content/uploads/chromium-webkit-stack.png" alt="" title="chromium-webkit-stack" width="338" height="300" class="aligncenter size-full wp-image-133" /></p>
<p>Cette nouvelle architecture vise à empêcher le plantage de l&#8217;application lorsque qu&#8217;un plugin est dans les choux.</p>
<p>Dans la guerre des navigateurs il n&#8217;y a aucun répit. Firefox, le butineur de la fondation Mozilla, se lance  à son tour dans la séparation de processus avec sa version 3.6.3 en phase beta.  </p>
<p>Vous pouvez tester les avancées de WebKit par <a href="http://webkit.org/">ici</a>.</p>
<div class="shr-publisher-109"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://www.web-doud.fr/webkit-2-des-processus-separes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Créer une boîte de dialogue avec jQuery UI</title>
		<link>http://www.web-doud.fr/creer-une-boite-de-dialogue-avec-jquery-ui/</link>
		<comments>http://www.web-doud.fr/creer-une-boite-de-dialogue-avec-jquery-ui/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 19:49:22 +0000</pubDate>
		<dc:creator>doud</dc:creator>
				<category><![CDATA[jQuery UI]]></category>

		<guid isPermaLink="false">http://www.web-doud.fr/?p=114</guid>
		<description><![CDATA[Nous allons voir comment créer une boîte de dialogue basique avec la bibliothèque jQuery UI. Nombreux d'entre vous on dû se rendre compte qu'avec l'exemple donné sur <a href="http://jqueryui.com/demos/dialog/">le site de jQuery UI</a>, la boîte de dialogue ne s'affiche qu'une seule fois.

<a href="http://www.web-doud.fr/creer-une-boite-de-dialogue-avec-jquery-ui/" rel="attachment wp-att-120"><img src="http://www.web-doud.fr/wp-content/uploads/Capture-d’écran-2010-04-12-à-21.50.08.jpg" alt="" title="boite de dialogue" width="308" height="167" class="aligncenter size-full wp-image-120" /></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.web-doud.fr%2Fcreer-une-boite-de-dialogue-avec-jquery-ui%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.web-doud.fr%2Fcreer-une-boite-de-dialogue-avec-jquery-ui%2F&amp;source=lucas_milin&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Nous allons voir comment créer une boîte de dialogue basique avec la bibliothèque jQuery UI. Nombreux d&#8217;entre vous on dû se rendre compte qu&#8217;avec l&#8217;exemple donné sur <a href="http://jqueryui.com/demos/dialog/">le site de jQuery UI</a>, la boîte de dialogue ne s&#8217;affiche qu&#8217;une seule fois.</p>
<p><a href="http://www.web-doud.fr/creer-une-boite-de-dialogue-avec-jquery-ui/capture-d%e2%80%99ecran-2010-04-12-a-21-50-08/" rel="attachment wp-att-120"><img src="http://www.web-doud.fr/wp-content/uploads/Capture-d’écran-2010-04-12-à-21.50.08.jpg" alt="" title="boite de dialogue" width="308" height="167" class="aligncenter size-full wp-image-120" /></a></p>
<p>Tout d&#8217;abord, il faut télécharger la librairie avec le thème qui vous convient par <a href="http://jqueryui.com/download" target="_blank">ici</a>.</p>
<p>On insère les librairies dans le &lt;head&gt;&lt;/head&gt; :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p114code10'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p11410"><td class="code" id="p114code10"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;jquery-1.3.2.min.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;jquery-ui-1.7.2.custom.min.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>On initialise la boîte de dialogue :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p114code11'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p11411"><td class="code" id="p114code11"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> maBoiteDeDialogue <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#dialog'</span><span style="color: #009900;">&#41;</span> .<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;p&gt;Ma boîte de dialogue&lt;/p&gt;'</span><span style="color: #009900;">&#41;</span>
                                                          .<span style="color: #660066;">dialog</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> autoOpen<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> title<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;dialog&quot;</span><span style="color: #339933;">,</span> width<span style="color: #339933;">:</span> <span style="color: #CC0000;">460</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#open'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> maBoiteDeDialogue.<span style="color: #660066;">dialog</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'open'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Ensuite, il manque plus qu&#8217;un élément pour déclencher la boîte de dialogue (un lien hypertexte par exemple) :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p114code12'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p11412"><td class="code" id="p114code12"><pre class="html" style="font-family:monospace;">&lt;a id=&quot;open&quot;&gt;Ouvrir la boîte de dialogue&lt;/a&gt;</pre></td></tr></table></div>

<div class="shr-publisher-114"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://www.web-doud.fr/creer-une-boite-de-dialogue-avec-jquery-ui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone OS 4</title>
		<link>http://www.web-doud.fr/iphone-os-4/</link>
		<comments>http://www.web-doud.fr/iphone-os-4/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 09:41:41 +0000</pubDate>
		<dc:creator>doud</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone os]]></category>
		<category><![CDATA[iphone os 4]]></category>
		<category><![CDATA[iphone sdk]]></category>
		<category><![CDATA[multitâche]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://www.web-doud.fr/?p=97</guid>
		<description><![CDATA[Le jeudi 8 avril Apple a présenté le nouvel opus de son téléphone phare : l'iPhone OS 4. La plupart des fonctionnalités attendues sont au rendez-vous.

<a href="http://www.web-doud.fr/iphone-os-4/"><img src="http://www.web-doud.fr/wp-content/uploads/iphone_os_4_0.jpg" alt="iphone_os_4_0" title="iphone_os_4_0" width="518" height="375" class="aligncenter size-full wp-image-98" /></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.web-doud.fr%2Fiphone-os-4%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.web-doud.fr%2Fiphone-os-4%2F&amp;source=lucas_milin&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Le jeudi 8 avril Apple a présenté le nouvel opus de son téléphone phare : l&#8217;iPhone OS 4. La plupart des fonctionnalités attendues sont au rendez-vous.</p>
<p><img src="http://www.web-doud.fr/wp-content/uploads/iphone_os_4_0.jpg" alt="iphone_os_4_0" title="iphone_os_4_0" width="518" height="375" class="aligncenter size-full wp-image-98" /></p>
<p>Apple annonce plus de 100 nouvelles fonctionnalités utilisateurs dont :</p>
<p><img src="http://www.web-doud.fr/wp-content/uploads/fonctionnalites.jpg" alt="fonctionnalites" title="fonctionnalites" width="435" height="533" class="aligncenter size-full wp-image-103" /></p>
<p>La plus attendue et la plus réclamée reste certainement le multitâche. Il suffit de double-cliquer sur le bouton Home de l&#8217;appareil et un Dock apparaît en bas de l&#8217;écran avec toutes les applications lancer en parallèle. Le multitâche reste cependant limité à certains types d&#8217;application. A tester d&#8217;urgence!</p>
<p>Comme pressenti seuls les iPhones 3GS et les derniers iPod Touch bénéficieront de cette avancée, configuration oblige.</p>
<p>En tant que développeur la partie la plus intéressante pour moi reste le nouvel iPhone SDK 4 Beta disponible au téléchargement <a href="http://developer.apple.com/technologies/iphone/whats-new.html">ici</a>. Apple aurait implémenté 1500 nouvelles API pour tirer partie des nouveautés de son OS pour mobile. Des API spéciales sont fournies aux développeurs pour préserver la batterie. </p>
<div class="shr-publisher-97"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://www.web-doud.fr/iphone-os-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

