background preloader

Design web, applications, jQuery, Wordpress

Design web, applications, jQuery, Wordpress

Bien valider ses formulaires avec Javascript Petit rappel sur les formulaires Rappelons-nous d'abord de quoi est composé un formulaire : de champs de saisie, matérialisés par des balises input, select et textarea ; de boutons pour valider ou annuler / effacer le formulaire, respectivement <input type="submit" /> et <input type="reset" /> ; une balise form qui encadre le tout ; et éventuellement ce fameux script en Javascript qui va vérifier le contenu avant son envoi vers le serveur Web. Cet ensemble peut être complété par des balises label, fieldset, legend, etc. pour améliorer l'accessibilité et la structure d'un formulaire. Voila ce que cela pourrait donner : <form action="url_page_suivante" method="get" name="formSaisie"><p><label for="prenom">Saisissez votre prénom :</label><input type="text" name="prenom" id="prenom" /><input type="submit" value="Ok" /></p></form> Nous sommes dans l'hypothèse où notre page est conforme au XHTML 1.0 Transitionnal, et non Strict, pour faciliter la compréhension des exemples qui suivront. Ou encore

20 Top Script.aculo.us Scripts you can’t live without-Speckyboy Design Magazine | Speckyboy Design Magazine 20 Top Script.aculo.us Scripts you can’t live without. 1. Sexy Sliding Menu for script.aculo.us URL: 2. URL: 3. URL: 4. URL: 5. URL: 6. URL: 7. URL: 8. URL: 9. URL: 10. URL: and the rest… 11. 12. 13. 14. 15. script.aculo.us Reflector. 16. 17. 18. 19.

Iframe loading techniques and performance First publication: December 20, 2010 Iframe setTimeout() does not work in IE9 Chad Barnsdale of Unfinishedman.com mentioned to me on May 25 that the Iframe setTimeout() technique does not work in IE9. And he was right. The file that gets loaded into the iframe simply does not load. Iframes are often used to load third party content, ads and widgets. Iframes block onload of the main page The main page and iframe share the same connection pool The onload blocking is the biggest problem of the two and hurts performance the most. How can you load an iframe without blocking onload and as a result improve page performance? This article shows 4 ways to load an iframe in a web page: Normal Iframe, Iframe After Onload, Iframe setTimeout() and Dynamic Asynch Iframe. Normal Iframe You all know this one. Using the Normal Iframe technique will result in the following behaviour in all browsers: Click for bigger version. My advice: be aware of the onload blocking. Iframe After Onload Iframe setTimeout()

Javascript Mistakes You Must Avoid If you are new to JavaScript and you write raw JavaScript or use any framework (jQuery, Mootools, Dojo, YUI) with it, you must avoid few mistakes. Actually these are my experiences when I was learning JavaScript. Equality Operator You may know that in js, two operators are used for comparing values. First is == (two equal signs). Here are more examples. Some of the results are unexpected specially for those who don’t know how JavaScript evaluates == operator. Consider the first example (1 == “1″). In the second example (“true” == true) is false because if the string contain characters other than digits, convertion to number will return NaN which means Not a Number. You can check what value will be returned after conversion to number using the Number constructor. Now you maybe wondering how === operator works. Not Assigning null to Reference Types Reference Variable Initialization Never try to initialize multiple reference variables (like object and array) in a single assignment statement.

Javascript : 10 plugins que vous devez connaître - ressource-javascript Pour vous aujourd'hui, 10 ressources javascript pour vous aider dans vos projets. Chosen est un plugin javascript ajoutant de nombreuses fonctionnalités aux selects, tout en les rendant beaucoup plus jolis. Disponible pour jQuery et prototype. TypedJS est un outil de test pour javascript. Mettez le typage de vos fonctions en javascript, lancez le test, et évitez les mauvaises surprises. Fancybox est un très bon plugin de lightbox, peut être le meilleur sur le marché. Turnjs est un clone de l'effet de page tournée de ibook sur ios. Jcrop est un plugin jQuery permettant de cropper une image en JS. Comment faire une timeline simplement en JS? Ce plugin permet de transformer simplement des données json un joli diagramme de Gantt Vos clients trouvent wordpress trop complexe?

Sliding Boxes and Captions with JQuery One Mighty Roar via Ad Packs Jarek Kubicki ArtistMore Work Kamil Smala ArtistMore Work Martin Stranka PhotographerMore Work Florian Nicolle Graphic DesignerMore Work The Nonsense Society Art, Music, WordWebsite This is the Live Demo Go back to the tutorial for a full explanation of what's going on! Parallax Hovering And Its Engaging Quality For Web Design Parallax effects are interactive by nature and still relatively new in web design. That’s why they are a great way to make your visitors curious, draw them in, and engage them with your website. On the web, as much as in the real world, we are quite cautious and like to be in control. At times, we are uncertain and appreciate instant feedback on our actions. We are curious and love to experience new things. Parallax effects, whether triggered by scrolling or hovering, answer to all of these needs. Parallax is a displacement or difference in the apparent position of an object viewed along two different lines of sight. – Source If we look at a close object from two different viewpoints, and against a distant background, we get a different perspective for each viewpoint. A while back we talked about parallax effects triggered by scrolling. Attract your visitors’ attention Regarding the visual and animated nature of parallax effects, they are a great way to attract attention. Just for fun

25 free, scrolling plugins for awesome experiences The art of creating a website these days is learning how to create an online experience. Many of these experiences are extensions of a brand or person and are relayed via different colors, fonts, etc. Thanks to awesome advancements in technologies, we can do a lot of stuff with our websites that we couldn’t do a few years ago. We are taking the experience from dry and drab to fun and fab. One of the trendiest techniques to have fun with is scrolling. Many of these techniques are what is affectionately called parallax scrolling. That’s why today, we’ve put together a bunch of our favorite plugins to get even the least code-savvy started making some great scrolling sites… Scrolld.js Cool Kitten FoldScroll fullPage.js AnimateScroll Parallax.js Jarallax jInvertScroll jQuery Full Content One Page Scroll jQuery Parallax Scroll Path PageScroller Lite jquery-parallax Arbitrary-Anchor Portfoliojs Scrolling Parallax Scrollocue Scrollorama Scrolltab Scrolly Skrollr Sly Smint Super Scrollorama

Programmation orientée objet en JavaScript Je ne sais pas si, vous aussi, avez déjà pratiqué JavaScript sans jamais en apprendre les bases… Par le passé, j’ai ponctuellement fais du JavaScript mais je n’ai jamais convenablement appris ce langage. J’ai aussi fais un amalgame entre JavaScript et jQuery. Depuis peu, j’ai décidé de me plonger dans cet univers controversé. JavaScript est parfois adoré, parfois détesté… Je pense que ses détracteurs sont peu être restés sur le JavaScript des débuts du Web qui servait à afficher des popup intrusives… (je sais je me moque un peu ;-p). Aujourd’hui, JavaScript est indéniablement devenu incontournable! Pourquoi? J’ai rencontré pas mal de difficultés pour trouver des explications claires sur ce langage et sur la façon de l’utiliser. JavaScript? Tout le monde (ou presque) peut affirmer: « ben oui! A contrario, en JavaScript, la notion de classe n’existe pas (bien que nous allons parler de classes par la suite, mais ce sera un raccourci, ou plutôt même un abus de langage). Notion de prototype

untitled Référence JavaScript Pour une liste alphabétique, voir le volet de navigation situé à gauche sur cette page. Expressions primaires Les mots-clés basiques et les expressions générales en JavaScript. this Le mot-clé this fait référence à une propriété spéciale du contexte d'exécution de la fonction. function Le mot-clé function définit une expression de fonction. class Le mot-clé class définit une expression de classe. function* Le mot-clé function* définit une expression pour une fonction génératrice. yield Cet opérateur permet de suspendre et de reprendre l'exécution d'une fonction génératrice. yield* Cet opérateur permet de déléguer l'exécution de la fonction à une autre fonction ou un autre objet itérable. async function* L'opérateur async function définit une expression de fonction asynchrone. await Cet opérateur permet de stopper et de reprendre l'exécution d'une fonction asynchrone et d'attendre pour la résolution ou le rejet d'une promesse. Littéral initialisateur de tableau. Littéral initialisateur d'objet. /ab+c/i new in

Related: