rss
twitter
  • Showcase
  • Carrières
  • Support
  • GitLab
  • Espace client
  • Contact

Tips’n’tricks for web developers

Mostly in French.
Ask us for help, English-speaking friends!

Données en POST avec lien HREF

0
<script language="javascript"> function Go() { document.monForm.submit(); } ..... <form name="monForm" method="post" action="maPage"> <a href="#" onclick="Go()>Mon Lien</a> </form> Voir en ligne : Source
DATE 20 Déc 2008
BY Germain

Ajouter aux favoris

0
function favoris() { // attention les accents en é ne passent pas et les accents en &eacute; non plus ! if ( navigator.appName != 'Microsoft Internet Explorer' ) { window.sidebar.addPanel("nom du site","https://www.sdsfdfsfsasso.fr",""); } else {
DATE 20 Déc 2008
BY Germain

Gestion des cookies

0
function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name)
DATE 20 Déc 2008
BY Germain

L’affichage/masquage de div

0
Au choix… : function AfficherDiv(id){ document.getElementById(id).style.display = 'block'; } function MasquerDiv(id){ document.getElementById(id).style.display = 'none'; } function AfficherMasquerDiv(id){ if (document.getElementById(id).style.display != 'none') {
DATE 20 Déc 2008
BY Germain

Compteur de mots sur un champ texte

0
Ce script permet de compter le nombre de mots dans un champ textarea au fur et à mesure de la frappe. Dans head : <script type="text/javascript"> function Compter(chaine, formulaire) { var exp=new RegExp("[a-zA-Z0-9éèêëàáâäóòôöíìîïçÉÈÊËÀÁÂÄÒÓÔÖÌÍÎÏÇ-]+","g"); var
DATE 20 Déc 2008
BY Germain

Changer l’intitulé d’un bouton

0
<FORM name="form2"> <INPUT type="button" name="bouton" value='Cliquez-moi !' onClick="this.value='Touché !'"> </FORM>
DATE 20 Déc 2008
BY Germain

Vider un champ OnFocus avec vérification

0
INDEX Champs input <input type="text" name="login" value='Votre login' onFocus="if (this.value=='Votre login') {this.value=''}"> Textareas <textarea name="more" rows="3" cols="20" onFocus="if (this.value=='Précisez') { this.value=''}">Précisez</textarea> Une
DATE 20 Déc 2008
BY Germain

Une invite pour confirmer

0
Pour afficher une alerte avant une action importante (supprimer un élément par exemple) l’invite pop-up en JS fait toujours son petit effet : <script type="text/javascript"> <!-- function supprimer (titre, id) { if (confirm("Supprimer " + titre + " ?")) {
DATE 20 Déc 2008
BY Germain

Servir les pages d’un site en UTF-8

0
Parfois Apache est encore configuré en ISO-8859-1. Ce charset était suffisant, avant. Si vous avez besoin d’UTF-8, vous pouvez éditer le httpd.conf, ou alors placer un .htaccess à la racine de votre site contenant la ligne suivante : AddDefaultCharset UTF-8
DATE 06 Avr 2008
BY Germain
« First‹ Previous23242526

Search the blog

Blog categories

  • Front-end : HTML, CSS (13)
  • Workflow (1)
  • Front-end : javascript, jQuery (33)
  • Back-end : PHP, CMS (42)
  • Back-end : SQL, MySQL (20)
  • Sysadmin : Linux, Apache, GIT (75)
  • Designers : tools, advice (2)
  • Desktop : OS X (37)
  • Desktop : Microsoft (12)
  • Uncategorized (8)

ITALIC™ Resources

  • Paramètres de connexion au serveur mail
  • Graphistes : séduire un développeur web
  • Dév front : nos bonnes pratiques
  • Mailing : nos (bonnes ?) pratiques
  • Environnement de travail Mac

Recent comments

  • Germain dans Inserer un motif dans une forme InDesign
  • Fannie J dans Inserer un motif dans une forme InDesign
  • Rapide benchmarks de clients Git pour Linux (et un peu Windows et Mac aussi) – Haha. dans Git avec SourceTree : ouvrir dans TextMate / ouvrir dans Sublime Text 2
  • Germain dans Ajouter des contacts non-Facebook à Spotify
  • cc dans Ajouter des contacts non-Facebook à Spotify

Meanwhile, in the office…

UNEP @ Paysalia

01 Déc 2015

Liebig

22 Sep 2015

Mercedes-Benz

17 Sep 2015

Office National du Tourisme Tunisien

21 Août 2015

Serious Game

17 Juil 2015

Engie

22 Juin 2015

UN Guiding Principles Reporting Framework

21 Mar 2015

Dites-le avec Nutella®

21 Fév 2015

HEC

21 Déc 2014

AREVA

21 Déc 2014
© 2008-2017 ITALIC™ • 8 bis rue Abel • 75012 PARIS • Tel +33 (0)1 48 44 46 35 • RCS PARIS 508 228 772 • Powered by WordPress & GoodLayers
Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site web.
Cookie settingsACCEPTER
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Toujours activé
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
Enregistrer & appliquer