<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="https://dotclear.placeoweb.com/feed/rss2/xslt" ?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>PlaceOweb Dotclear - Mot-clé - javascript</title>
    <link>https://dotclear.placeoweb.com/</link>
    <atom:link href="https://dotclear.placeoweb.com/feed/tag/javascript/rss2" rel="self" type="application/rss+xml" />
    <description></description>
    <language>fr</language>
    <pubDate>Wed, 20 May 2026 15:53:59 +0200</pubDate>
    <copyright></copyright>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <generator>Dotclear</generator>
          <item>
        <title>arrondi float double Decimal BigDecimal</title>
        <link>https://dotclear.placeoweb.com/post/arrondi-float-double-Decimal-BigDecimal</link>
        <guid isPermaLink="false">urn:md5:dd8587c93d9aa40e8ed00cd24b89a9e6</guid>
        <pubDate>Sat, 05 Sep 2020 11:36:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Système</category>
                          <category>csharp</category>
                  <category>java</category>
                  <category>javascript</category>
                  <category>nodejs</category>
                <description>&lt;p&gt;Comment les types arrondissent les valeurs décimales dans les langages JavaScript, Node.js, Java, Csharp ...&lt;/p&gt; &lt;p&gt;Sur un Windows 64 bits


Node.js

C:\Users\ryzen&gt;node
Welcome to Node.js v14.9.0.
Type &quot;.help&quot; for more information.
&gt; .1+.2
0.30000000000000004
&gt; 2.89+3.21
6.1
&gt; 2.89+3.2126
6.102600000000001


bigdecimal - BigDecimal for Javascript is a pure-Javascript implementation of immutable, arbitrary-precision, signed decimal numbers. BigDecimal supports... &lt;a href=&quot;https://dotclear.placeoweb.com/post/arrondi-float-double-Decimal-BigDecimal&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; arrondi float double Decimal BigDecimal&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/arrondi-float-double-Decimal-BigDecimal#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/arrondi-float-double-Decimal-BigDecimal#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/752</wfw:commentRss>
              </item>
          <item>
        <title>Data Types SQL langages de programmation INTEGER, INT, SMALLINT, TINYINT, MEDIUMINT, BIGINT</title>
        <link>https://dotclear.placeoweb.com/post/Data-Types-SQL-langages-de-programmation</link>
        <guid isPermaLink="false">urn:md5:5f6e2ae82218dff02faf87e63c7da4fa</guid>
        <pubDate>Sat, 05 Sep 2020 11:35:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>SQL</category>
                          <category>csharp</category>
                  <category>java</category>
                  <category>javascript</category>
                  <category>mysql</category>
                  <category>php</category>
                  <category>sql</category>
                <description>&lt;p&gt;Quels sont les types SQL et des langages de programmation JAVA, PHP, Javascript, ...&lt;/p&gt; &lt;p&gt;Types MySQL
Types MySQL (par défaut)
Taille (en octet)
Valeur min
Valeur max
JAVA



TINYINT
tinyint(4)
1
-128
127
byte :   (1 octet ) entiers compris entre -128 et +127 (-2^7 et 2^7-1)



TINYINT (unsigned)
tinyint(3) UNSIGNED
1
0
255




SMALLINT
smallint(6)
2
-32.768
32.767
short :  (2 octets ) entiers compris entre -32768 et +32767 (-2^15 et... &lt;a href=&quot;https://dotclear.placeoweb.com/post/Data-Types-SQL-langages-de-programmation&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; Data Types SQL langages de programmation INTEGER, INT, SMALLINT, TINYINT, MEDIUMINT, BIGINT&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/Data-Types-SQL-langages-de-programmation#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/Data-Types-SQL-langages-de-programmation#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/759</wfw:commentRss>
              </item>
          <item>
        <title>Node.js</title>
        <link>https://dotclear.placeoweb.com/post/nodejs</link>
        <guid isPermaLink="false">urn:md5:24df80a20c1a0ccf91bfc0b7d87dbff5</guid>
        <pubDate>Sat, 21 Dec 2019 19:23:00 +0100</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>HTML5</category>
                  <category>javascript</category>
                  <category>nodejs</category>
                  <category>sql</category>
                <description>&lt;p&gt;&lt;a href=&quot;https://nodejs.org/fr/&quot;&gt;Node.js&lt;/a&gt; JavaScript runtime&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://nodejs.org/api/&quot;&gt;API reference documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://nodejs.org/fr/docs/guides/&quot;&gt;Guides&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Versions : &lt;a href=&quot;https://github.com/nodejs/Release&quot;&gt;Node.js Release&lt;/a&gt; et &lt;a href=&quot;https://nodejs.org/en/about/releases/&quot;&gt;Releases&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;p&gt;Installation de Node.js


Lors de l'installation de Node.js, vous aurez les binaires :

npm  : Node Package Manager, le gestionnaire de packets pour Node. Le site npm pour chercher des packages
node : le binaire de Node


$ node -v
v12.18.3     v14.9.0

$ npm -v
6.14.6       6.14.8


Download for Windows (x64)
14.15.0 LTS : Recommended For Most... &lt;a href=&quot;https://dotclear.placeoweb.com/post/nodejs&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; Node.js&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/nodejs#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/nodejs#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/749</wfw:commentRss>
              </item>
          <item>
        <title>visual studio code jquery</title>
        <link>https://dotclear.placeoweb.com/post/visual-studio-code-jquery</link>
        <guid isPermaLink="false">urn:md5:dcaeab3b2c5b96df8097a5968202ef0c</guid>
        <pubDate>Sat, 03 Feb 2018 09:00:00 +0100</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>HTML5</category>
                  <category>javascript</category>
                  <category>jQuery</category>
                  <category>windows</category>
                <description>&lt;p&gt;Comment activer la complétion syntaxique &lt;a href=&quot;https://jquery.com/&quot;&gt;jQuery&lt;/a&gt; sur &lt;a href=&quot;https://code.visualstudio.com/&quot;&gt;Visual Studio Code&lt;/a&gt; ?&lt;/p&gt; &lt;p&gt;Une fois Node.js installé,
dans le &quot;Terminal intégré&quot; de visual studio code, et placé dans votre dossier de projet :


Via la vidéo :  How to Install IntelliSense Jquery to Visual Code et les  commandes





Commandes d'installation :
npm install tsd -g 
npm install typings --global 
typings install dt~jquery --global 

et dans votre... &lt;a href=&quot;https://dotclear.placeoweb.com/post/visual-studio-code-jquery&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; visual studio code jquery&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/visual-studio-code-jquery#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/visual-studio-code-jquery#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/714</wfw:commentRss>
              </item>
          <item>
        <title>PHP Online</title>
        <link>https://dotclear.placeoweb.com/post/PHP-Online</link>
        <guid isPermaLink="false">urn:md5:7ea0ae19cdce10f1f48d92cfc1d01ce0</guid>
        <pubDate>Thu, 02 Nov 2017 19:24:00 +0100</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>PHP</category>
                          <category>javascript</category>
                  <category>php</category>
                <description>&lt;p&gt;Une liste de sites permettant d’exécuter et de tester l'exécution de son code PHP en ligne, avec plusieurs versions disponibles.&lt;/p&gt; &lt;p&gt;eval.in


Eval.In, permet d'évaluer de nombreux langages : Ruby, PHP, Python, Lua, Io, Perl, JavaScript, Haskell, Slash, x86 Assembly, OCaml, Racket


Pour PHP, il permet les versions :

PHP 5.6.23
PHP 7.0.8



Exemple de code PHP avec eval.in


3v4l.org Online PHP editor | Run code in 200+ PHP &amp; HHVM versions


3v4l.org permet d'évaluer son code... &lt;a href=&quot;https://dotclear.placeoweb.com/post/PHP-Online&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; PHP Online&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/PHP-Online#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/PHP-Online#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/711</wfw:commentRss>
              </item>
          <item>
        <title>Javascript</title>
        <link>https://dotclear.placeoweb.com/post/javascript</link>
        <guid isPermaLink="false">urn:md5:fc033cb755d48fe7929b19d8ea5704b1</guid>
        <pubDate>Sun, 29 Oct 2017 22:42:00 +0100</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>javascript</category>
                <description> &lt;p&gt;Une très bonne approche complète du javascript en anglais sur : The Modern Javascript Tutorial


Et pour s'essayer avec le javascript en ligne, voici quelques éditeurs JS online :

JSFiddle
Plunker



Les autres ressources de la catégorie JS JavaScript sur ce site.... &lt;a href=&quot;https://dotclear.placeoweb.com/post/javascript&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; Javascript&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/javascript#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/javascript#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/709</wfw:commentRss>
              </item>
          <item>
        <title>Screen Resolution Size Viewport Dimension Device Taille Ecran Smartphone</title>
        <link>https://dotclear.placeoweb.com/post/screen-resolution</link>
        <guid isPermaLink="false">urn:md5:69a5ca45bcd3ae9d5f88ff41d5faaa2a</guid>
        <pubDate>Sat, 28 Oct 2017 13:21:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Outils Internet</category>
                          <category>android</category>
                  <category>iPhone</category>
                  <category>javascript</category>
                  <category>smartphone</category>
                <description>
&lt;!-- on force le viewport à la taille du device --&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, user-scalable=no&quot;&gt;

&lt;div id=&quot;resolution&quot;&gt;&lt;/div&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
document.write('&lt;br&gt;Votre résolution est de &lt;b&gt;'+screen.width+'x'+screen.height+'&lt;/b&gt;');
document.write('&lt;br&gt;Votre navigateur : &lt;b&gt;' + navigator.userAgent + '&lt;/b&gt;');

$(document).ready(function() {
 
    $(&quot;#resolution&quot;).html(
        &quot;&lt;pre&gt;&quot; +
        &quot;Tailles (Largeur [width] x Hauteur [height]) de la fenêtre web du navigateur :\n&quot; + 
        &quot;\n&quot; +
        &quot;Navigateur : \n&quot; +
        navigator.userAgent + &quot;\n&quot; +
        &quot;\n&quot; +
        &quot;Javascript Natif : \n&quot; +
        screen.width + &quot;x&quot; + screen.height + &quot; : screen.width&quot; + &quot;\n&quot; +
        screen.availWidth + &quot;x&quot; + screen.availHeight + &quot; : screen.availWidth&quot; + &quot;\n&quot; + 
        window.document.width + &quot;x&quot; + window.document.height + &quot; : window.document.width&quot; + &quot;\n&quot; +
        document.width + &quot;x&quot; + document.height + &quot; : document.width&quot; +&quot;\n&quot; +
        document.getElementsByTagName('body')[0].clientWidth + &quot;x&quot; + document.getElementsByTagName('body')[0].clientHeight + &quot; : document.getElementsByTagName('body')[0].clientWidth&quot; + &quot;\n&quot; +
        document.documentElement.clientWidth + &quot;x&quot; + document.documentElement.clientHeight + &quot; : document.documentElement.clientWidth&quot; + &quot;\n&quot; +
        window.innerWidth + &quot;x&quot; + window.innerHeight + &quot; : window.innerWidth / innerHeight&quot; + &quot;\n&quot; +
        window.outerWidth + &quot;x&quot; + window.outerHeight + &quot; : window.outerWidth / outerHeight&quot; + &quot;\n&quot; +
        window.orientation + &quot; : window.orientation&quot; + &quot;\n&quot; +
		(typeof window.screen.orientation === &quot;undefined&quot; ? 
		&quot;&quot;
		:
        window.screen.orientation.angle + &quot; : window.screen.orientation.angle&quot; + &quot;\n&quot; + // ne fonctionne pas avec Safari car &quot;window.screen.orientation&quot; === &quot;undefined&quot;
        window.screen.orientation.type + &quot; : window.screen.orientation.type&quot; + &quot;\n&quot;	// ne fonctionne pas avec Safari car &quot;window.screen.orientation&quot; === &quot;undefined&quot;
		) +
        &quot;\n&quot; +
        &quot;jQuery : \n&quot; +
        $('body').width() + &quot;x&quot; + $('body').height() + &quot; : $('body').width()&quot; + &quot;\n&quot; +      
        $(document).width() + &quot;x&quot; + $(document).height() + &quot; : $(document).width()&quot; + &quot;\n&quot; +    // returns width of HTML document
        $(window).width() + &quot;x&quot; + $(window).height() + &quot; : $(window).width()&quot; + &quot;\n&quot; +  // returns width of browser viewport
        &quot;&lt;pre&gt;&quot;
    );
	jQuery.ajax({ // Deprecation Notice: The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks are removed as of jQuery 3.0. You can use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead.
		url: &quot;https://www.placeoweb.com/screen.php&quot;,
		method: &quot;POST&quot;,
		crossDomain: true,
		data: {			
			'screen.width': screen.width,
			'screen.height': screen.height,
			'screen.availWidth': screen.availWidth,
			'screen.availHeight': screen.availHeight,
// 			'window.document.width': window.document.width,
// 			'window.document.height': window.document.height,
			'document.width': document.width,
			'document.height': document.height,
			'document.documentElement.clientWidth': document.documentElement.clientWidth,
			'document.documentElement.clientH eight': document.documentElement.clientHeight,
			'window.innerWidth': window.innerWidth,
			'window.innerHeight': window.innerHeight,
			'window.outerWidth': window.outerWidth,
			'window.outerHeight': window.outerHeight,
			'window.orientation': window.orientation
		}
	})
	;
 
// Modification de la taille de la zone body
/*
    $('body').width(512); 
    $('body').width(&quot;1024px&quot;);
    $('body').width(&quot;50%&quot;);
*/  
});
&lt;/script&gt;
 &lt;p&gt;Selon les différents Navigateurs, les propriétés de configuration de l’affichage de l'écran ont évoluées et ne sont pas forcement compatibles.

Chrome
Firefox
Safari
IE (Internet Explorer), Edge


Sur Wikipédia, on retrouve les parts de marché des navigateurs web et sa version anglaise : Usage share of web browsers
Surement du fait, de la part... &lt;a href=&quot;https://dotclear.placeoweb.com/post/screen-resolution&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; Screen Resolution Size Viewport Dimension Device Taille Ecran Smartphone&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/screen-resolution#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/screen-resolution#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/708</wfw:commentRss>
              </item>
          <item>
        <title>Bootstrap</title>
        <link>https://dotclear.placeoweb.com/post/bootstrap</link>
        <guid isPermaLink="false">urn:md5:cbadc16d5be4e09b5d554043e9eeefc0</guid>
        <pubDate>Wed, 25 Oct 2017 19:29:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>css</category>
                  <category>javascript</category>
                <description>&lt;p&gt;Bootsrap pour la mise en page ? avec son flexgrid responsive en 12 colonnes, et sa CSS pré-configurée pour afficher les boutons.&lt;/p&gt;


&lt;p&gt;Peut t'on l'utiliser seul ? par dessus un site existant ? avec d'autres librairies CSS ?..&lt;/p&gt;


&lt;p&gt;Avec cette nouvelle version &lt;a href=&quot;https://getbootstrap.com/docs/4.0/&quot;&gt;Bootsrap 4&lt;/a&gt;, doit on utiliser l'ancestral &lt;a href=&quot;https://getbootstrap.com/docs/3.3/&quot;&gt;Bootsrap 3&lt;/a&gt; et les plugins associés ? ou peut on espérer que ces vieux plugins vont êtres migrés en version 4 ?&lt;/p&gt; &lt;p&gt;Explication illustrée de change entre BS3 et BS4 :
Bootstrap 4: What’s New - A Visual Guide to The Next Bootstrap


Les points de coupure bascule des tailles d'écran : BS4 - Responsive breakpoints

// xs - Extra small devices (portrait phones, less than 576px)
@media (max-width: 575px) { ... }

// sm - Small devices (landscape phones, 576px and up)... &lt;a href=&quot;https://dotclear.placeoweb.com/post/bootstrap&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; Bootstrap&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/bootstrap#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/bootstrap#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/705</wfw:commentRss>
              </item>
          <item>
        <title>jQuery $ prototype</title>
        <link>https://dotclear.placeoweb.com/post/jQuery-%24-prototype</link>
        <guid isPermaLink="false">urn:md5:2b7438afef663816308667e26a2e38d6</guid>
        <pubDate>Sat, 02 Sep 2017 12:46:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>HTML5</category>
                  <category>javascript</category>
                  <category>jQuery</category>
                <description> &lt;p&gt;$( document ).ready(function() {
	console.log(&quot;isLoaded&quot;);
  console.log($);
  console.log($());
  console.log($.prototype);
  console.log($().jquery);

  console.log(jQuery);
  console.log(jQuery());
  console.log(jQuery.prototype);
  console.log(jQuery().jquery);

  console.log($.fn);
  console.log($.fn.jquery);
});

/*
isLoaded
function ()... &lt;a href=&quot;https://dotclear.placeoweb.com/post/jQuery-%24-prototype&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; jQuery $ prototype&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/jQuery-%24-prototype#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/jQuery-%24-prototype#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/702</wfw:commentRss>
              </item>
          <item>
        <title>beforeunload - quitter ce site ? confirmer sa fermeture ?</title>
        <link>https://dotclear.placeoweb.com/post/js-beforeunload-quitter-ce-site-confirmer-sa-fermeture</link>
        <guid isPermaLink="false">urn:md5:47ca3120a87ac9d2f5d6ce92cc1f4907</guid>
        <pubDate>Sat, 02 Sep 2017 12:13:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>HTML5</category>
                  <category>javascript</category>
                <description>&lt;p&gt;Chrome:&lt;/p&gt;
&lt;pre&gt;
Voulez-vous quitter ce site ?
Les modifications que vous avez apportées ne seront peut-être pas enregistrées.
Quitter | Rester
&lt;/pre&gt;


&lt;p&gt;Firefox:&lt;/p&gt;
&lt;pre&gt;
Cette page demande de confirmer sa fermeture ; des données saisies pourraient ne pas être enregistrées.
Quitter la page | Rester sur la page
&lt;/pre&gt; &lt;p&gt;Quel est ce message de confirmation que certains sites indiquent lorsque nous quittons leur site après avoir commencé une saisie ?


L'événement beforeunload est déclenché quand la fenêtre, le document et ses ressources sont sur le point d'être déchargés.

// version native JS
window.onbeforeunload = function() {
 if (myVariableSiOnARienModifier ==... &lt;a href=&quot;https://dotclear.placeoweb.com/post/js-beforeunload-quitter-ce-site-confirmer-sa-fermeture&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; beforeunload - quitter ce site ? confirmer sa fermeture ?&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/js-beforeunload-quitter-ce-site-confirmer-sa-fermeture#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/js-beforeunload-quitter-ce-site-confirmer-sa-fermeture#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/701</wfw:commentRss>
              </item>
          <item>
        <title>JavaScript - function  pour co/dé/cocher check/uncheck toutes les checkboxes input type=&quot;checkbox&quot;</title>
        <link>https://dotclear.placeoweb.com/post/js-function-pour-cocher-toutes-les-checkboxes-input-type-checkbox-checked</link>
        <guid isPermaLink="false">urn:md5:59cd1bb3f9d6369f8fc7126ea98672a9</guid>
        <pubDate>Sun, 26 Jun 2016 19:30:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>javascript</category>
                <description>&lt;p&gt;Fonction JavaScript pour co/dé/cocher check/uncheck toutes les checkboxes input type=&quot;checkbox&quot; checked.&lt;/p&gt;


&lt;p&gt;Sans jQuery, et depuis la fenêtre de debug par emple Firebug sous Firefox (F12), et via la console on peut injecter et appeler cette fonction en JS natif pour tout cocher sans avoir à le faire manuellement !&lt;/p&gt; &lt;p&gt;La fonction : Javascript function to check and uncheck all checkboxes
/*
 * frm = Name of the form
 * fname = Unique name of the checkboxes
 * check = set checkbox checked or unchecked (true|false)
 */

function setCheckBoxes(frm, fname, check){
    var frm = document.forms[frm];
    if(frm == 'undefined'){
        return;
    }

    var chkBoxs =... &lt;a href=&quot;https://dotclear.placeoweb.com/post/js-function-pour-cocher-toutes-les-checkboxes-input-type-checkbox-checked&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; JavaScript - function  pour co/dé/cocher check/uncheck toutes les checkboxes input type=&amp;quot;checkbox&amp;quot;&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/js-function-pour-cocher-toutes-les-checkboxes-input-type-checkbox-checked#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/js-function-pour-cocher-toutes-les-checkboxes-input-type-checkbox-checked#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/679</wfw:commentRss>
              </item>
          <item>
        <title>jQuery form dialog upload</title>
        <link>https://dotclear.placeoweb.com/post/jQuery-form-dialog-upload</link>
        <guid isPermaLink="false">urn:md5:8c181b9f81362e6e2eb76e20e7e9a063</guid>
        <pubDate>Sun, 01 May 2016 19:03:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>javascript</category>
                  <category>jQuery</category>
                <description>&lt;p&gt;In short, for upload form with ajax, can be do with :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;any form (in a jQuery-ui Dialog or not)&lt;/li&gt;
&lt;li&gt;FormData ( a set of key/value pairs representing form fields and their values )&lt;/li&gt;
&lt;/ul&gt; &lt;p&gt;And the tips for jquery ajax call, is to define jquery with this two options (contentType, processData) set to false :

$.ajax({
            url: $url,
            type: 'POST',
            data: formData,
            processData: false, 
            contentType: false,


Ressources :

FormData and Using FormData Objects
Uploading File with jQuery... &lt;a href=&quot;https://dotclear.placeoweb.com/post/jQuery-form-dialog-upload&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; jQuery form dialog upload&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/jQuery-form-dialog-upload#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/jQuery-form-dialog-upload#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/674</wfw:commentRss>
              </item>
          <item>
        <title>Purger le cache du navigateur</title>
        <link>https://dotclear.placeoweb.com/post/purge-cache-navigateur</link>
        <guid isPermaLink="false">urn:md5:cca4bc187aa682406b9ddc565af20d3e</guid>
        <pubDate>Thu, 21 Apr 2016 20:20:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Outils Internet</category>
                          <category>HTML5</category>
                  <category>javascript</category>
                  <category>windows</category>
                <description>&lt;p&gt;Comment purger le cache du navigateur ?&lt;/p&gt; &lt;p&gt;Lors des mises à jour des sites web, il arrive qu'il faille purger le cache du navigateur pour qu'il redemande les nouveau fichiers (css, js) au lieu d'utiliser ceux qu'il à conserver en mémoire, pour cela vous pouvez utiliser :


Les raccourcis clavier


Le raccourci clavier compatible Mozilla Firefox, Google Chrome et Internet Explorer est le... &lt;a href=&quot;https://dotclear.placeoweb.com/post/purge-cache-navigateur&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; Purger le cache du navigateur&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/purge-cache-navigateur#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/purge-cache-navigateur#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/671</wfw:commentRss>
              </item>
          <item>
        <title>jQuery datepicker clone</title>
        <link>https://dotclear.placeoweb.com/post/jQuery-datepicker-clone</link>
        <guid isPermaLink="false">urn:md5:61d091808bbba6ca4406c139b26d565f</guid>
        <pubDate>Sun, 17 Apr 2016 22:39:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>javascript</category>
                  <category>jQuery</category>
                <description>&lt;p&gt;How to clone a &lt;a href=&quot;https://jqueryui.com/datepicker/&quot;&gt;jQuery UI Datepicker&lt;/a&gt;, and keep handler ?&lt;/p&gt; &lt;p&gt;I read several solution about cloning a datepicker jquery, but in my case, the datepicker source element is already loaded by the DOM and instanciate by jQuery UI.


I finaly solve it using :

var newID = $th.attr('id').replace(/\d+$/, function(str) { return parseInt(str) + 1; });
		    $th.attr('id', newID);

		    // datepicker : remove icon... &lt;a href=&quot;https://dotclear.placeoweb.com/post/jQuery-datepicker-clone&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; jQuery datepicker clone&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/jQuery-datepicker-clone#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/jQuery-datepicker-clone#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/668</wfw:commentRss>
              </item>
          <item>
        <title>javascript variable name dollar sign?</title>
        <link>https://dotclear.placeoweb.com/post/javascript-variable-name-dollar-sign</link>
        <guid isPermaLink="false">urn:md5:e45afe7625afbd4df2ea0c1d95c38310</guid>
        <pubDate>Sun, 17 Apr 2016 22:11:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>javascript</category>
                  <category>jQuery</category>
                <description>&lt;p&gt;When and why use dollar sign or underscore in a variable name ?&lt;/p&gt; &lt;p&gt;3r d Edition - December 1999 - Standard ECMA-262 ECMAScript Language Specification


Identifiers :
This standard specifies one departure from the grammar given in the Unicode standard: The dollar sign ($) and the underscore (_) are permitted anywhere in an identifier. The dollar sign is intended for use only in mechanically generated code.


5th... &lt;a href=&quot;https://dotclear.placeoweb.com/post/javascript-variable-name-dollar-sign&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; javascript variable name dollar sign?&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/javascript-variable-name-dollar-sign#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/javascript-variable-name-dollar-sign#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/670</wfw:commentRss>
              </item>
          <item>
        <title>jQuery find</title>
        <link>https://dotclear.placeoweb.com/post/jQuery-find</link>
        <guid isPermaLink="false">urn:md5:e66c0221808f75e28bc91f53a28b9293</guid>
        <pubDate>Sun, 17 Apr 2016 21:55:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>javascript</category>
                  <category>jQuery</category>
                <description>&lt;p&gt;How to use selectors on a jQuery Object ?&lt;/p&gt; &lt;p&gt;&lt;body&gt;
 
&lt;div id=&quot;my_html_id_root&quot;&gt;
&lt;p&gt;&lt;span id=&quot;my_html_id&quot;&gt;Hello&lt;/span&gt;, how are you?&lt;/p&gt;
&lt;p&gt;Me? I'm &lt;span&gt;good&lt;/span&gt;.&lt;/p&gt;
&lt;/div&gt;
 
&lt;script&gt;
// instructions below
&lt;/script&gt;
 
&lt;/body&gt;

$('*').css( &quot;color&quot;, &quot;blue&quot; ); // all elements
$('#my_html_id').css( &quot;color&quot;, &quot;red&quot; );
// or
$myJqObject = $('#my_html_id_root');
$myJqObject.find( &quot;span&quot; ).css(... &lt;a href=&quot;https://dotclear.placeoweb.com/post/jQuery-find&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; jQuery find&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/jQuery-find#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/jQuery-find#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/669</wfw:commentRss>
              </item>
          <item>
        <title>JS - JavaScript</title>
        <link>https://dotclear.placeoweb.com/post/js</link>
        <guid isPermaLink="false">urn:md5:6c162245712b7cd7b92160e6c1ee93d1</guid>
        <pubDate>Tue, 12 Apr 2016 20:52:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>javascript</category>
                <description>&lt;p&gt;JavaScript = JS&lt;/p&gt; &lt;p&gt;// 				e.preventDefault() will prevent the default event from occurring.
// 				e.stopPropagation() will prevent the event from bubbling up/propagating the DOM.
// 				return false will do both.



Références :

JavaScript Wikipédia
JavaScript Mozilla Developer Network (MDN). Le standard pour JavaScript est ECMAScript. ECMAScript est un... &lt;a href=&quot;https://dotclear.placeoweb.com/post/js&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; JS - JavaScript&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/js#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/js#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/667</wfw:commentRss>
              </item>
          <item>
        <title>jQuery link click</title>
        <link>https://dotclear.placeoweb.com/post/jQuery-link-click</link>
        <guid isPermaLink="false">urn:md5:140f97983473b6a6cee60fe0eb61577b</guid>
        <pubDate>Tue, 12 Apr 2016 20:34:00 +0200</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>javascript</category>
                  <category>jQuery</category>
                <description>&lt;p&gt;You can't trigger click on a href link with &lt;a href=&quot;http://api.jquery.com/click/&quot;&gt;.click()&lt;/a&gt;. It only call handler associate (if one), but not simulate mouse click user.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;index.php?param=value&quot; id=&quot;myLink&quot;&gt;text link&lt;/a&gt;

$(&quot;#myLink&quot;).click(); // doesn't work

// for use href location of link, use :
window.location.href = $(&quot;#myLink&quot;).attr(&quot;href&quot;);

// and for both : handler defined + href

$(&quot;#myLink&quot;).click();
window.location.href = $(&quot;#myLink&quot;).attr(&quot;href&quot;);

// or

if ($(&quot;#myLink&quot;).click)... &lt;a href=&quot;https://dotclear.placeoweb.com/post/jQuery-link-click&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; jQuery link click&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/jQuery-link-click#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/jQuery-link-click#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/666</wfw:commentRss>
              </item>
          <item>
        <title>js serialise array to php</title>
        <link>https://dotclear.placeoweb.com/post/js-serialise-array-to-php</link>
        <guid isPermaLink="false">urn:md5:6c49c0c7431f205b783625cf2848bc58</guid>
        <pubDate>Mon, 09 Nov 2015 19:33:00 +0100</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>javascript</category>
                  <category>php</category>
                <description>&lt;p&gt;Comment serialiser du js vers du php&lt;/p&gt; &lt;p&gt;Pass Javascript arrays to PHP (PHP recipe)... &lt;a href=&quot;https://dotclear.placeoweb.com/post/js-serialise-array-to-php&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; js serialise array to php&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/js-serialise-array-to-php#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/js-serialise-array-to-php#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/645</wfw:commentRss>
              </item>
          <item>
        <title>WebSocket et SSE (Server Sent Events / EventSource)</title>
        <link>https://dotclear.placeoweb.com/post/WebSocket-SSE</link>
        <guid isPermaLink="false">urn:md5:51944c8c984376277fffab5af758adee</guid>
        <pubDate>Sun, 28 Oct 2012 17:21:00 +0100</pubDate>
        <dc:creator>PlaceOweb</dc:creator>
                  <category>Javascript</category>
                          <category>HTML5</category>
                  <category>javascript</category>
                  <category>php</category>
                <description>&lt;p&gt;En plus des traditionnelles requêtes ajax, il existe depuis l'HTML5 les &lt;strong&gt;WebSocket&lt;/strong&gt; et &lt;strong&gt;Server Sent Events (SSE)&lt;/strong&gt;.&lt;/p&gt; &lt;p&gt;WebSocket


Cette spécification définit une API qui permet aux pages Web d'utiliser le protocole WebSocket (défini et normalisé par l'IETF dans la RFC 6455) pour une communication bidirectionnelle avec un hôte distant.


The WebSocket API
Websocket WebSocket


Server Sent Events


Cette spécification définit une API pour ouvrir une connexion HTTP... &lt;a href=&quot;https://dotclear.placeoweb.com/post/WebSocket-SSE&quot;&gt;&lt;em&gt;Lire&lt;/em&gt; WebSocket et SSE (Server Sent Events / EventSource)&lt;/a&gt;&lt;/p&gt;
</description>
        
                  <comments>https://dotclear.placeoweb.com/post/WebSocket-SSE#comment-form</comments>
          <wfw:comment>https://dotclear.placeoweb.com/post/WebSocket-SSE#comment-form</wfw:comment>
          <wfw:commentRss>https://dotclear.placeoweb.com/feed/atom/comments/550</wfw:commentRss>
              </item>
      </channel>
</rss>
