public marks

PUBLIC MARKS from decembre with tags javascript & tutorial

12 July 2018 10:15

JAVASCRIPT - IMAGE - LAZY LOAD - Lazy Loading Images? Don’t Rely On JavaScript! | Robin Osborne

(via)
One popular method to deal with this is to “Lazy Load” the images; that is, to only load the images just before the user will need to see them. If this technique is applied to the “above the fold” content – i.e., the first average viewport-sized section of the page – then the user can get a significantly faster first view experience. So everyone should always do this, right? Given the potential limitations, let’s work on a solution that can handle all my concerns: a. works without JavaScript (i.e., lazy loading is an enhancement) b. vanilla js – no dependencies on jquery or angularjs c. works with broken JavaScript (i.e., the browser supports JavaScript, but there’s a js error somewhere which causes your script to break; might not even be your fault!)

07 June 2018 14:30

JAVASCRIPT - REGEX - Les expressions régulières (partie 2/2) - Dynamisez vos sites web avec JavaScript ! - OpenClassrooms

(via)
Dans ce deuxième chapitre consacré aux regex, nous allons voir leur utilisation au sein du JavaScript. En effet, le premier chapitre n'était là que pour enseigner la base de la syntaxe alors que, une fois couplées à un langage de programmation, les regex deviennent très utiles. En JavaScript, elles utilisent l'objet RegExp et permettent de faire tout ce que l'on attend d'une regex : rechercher un terme, le capturer, le remplacer, etc.

13 March 2018 02:15

DEV - Great Resources Every Beginning a Front-end Developer Should Bookmark by vydargis on CodePen

If you just get started your a front-end developer career, it might be overwhelming to learn something every day. To optimize your time, it might be useful to know solid resources, to keep up with a demanding programmers’ environment. In this brief article, you will find 6 useful resources that in my opinion I think every beginning a front-end developer career should bookmark.

07 September 2017 22:45

DEV - Web developer guides | MDN

Web developer guides. These articles provide how-to information to help you make use of specific technologies and APIs.

07 July 2017 12:30

JSON - What is JSON? An Introduction and Guide for Beginners

in this JSON tutorial and guide, I’m attempting to provide a fairly comprehensive discussion of JSON, its history, and its usefulness. I’ll close with a list of some practical JSON tools that might come in handy in future projects. JSON Defined JSON stands for JavaScript Object Notation and it’s a data format. That is, it’s a way to hold bits of information, similar to a database. Although JSON originated outside the ECMAScript specification, it is now closely related to JavaScript with the spec now including a JSON object and many developers incorporating it as a quasi-subset of the language.

29 April 2017 15:30

CSS - TAB - Tab Panel, the right way...

The recipe for the best user experience: Start with POSH, a simple set of heading/div pairs Add ARIA (role, aria-selected, aria-hidden, aria-labelledby) and tabindex attributes using JavaScript as these would be confusing if there was no behavior attached to the widgets. Use JavaScript to also plug a class on the component according to its type (accordion or tabpanel). Style the widget using the selector inserted by the script, this way containers are not hidden if there is no script support. Use cursor to style the tabs because those behave like buttons (default), not links (pointer). In case the component is displayed as a Tab Panel, style it as an Accordion before its tabs start wrapping (to accomodate user’s font-size) or at narrow widths...... ../..

21 April 2015 07:30

JavaScript Arrays

Un tableau contient une collection de données en une seule variable. Tableaux JavaScript peuvent contenir des données de tout type : chaînes, des nombres , des booléens , des objets , fonctions et autres tableaux. Les éléments de données dans un tableau sont appelées éléments. Chaque élément a un indice qui commence à zéro . [ 1 ] Les indices de tableau sont utilisés pour accéder à des éléments et créer de nouveaux éléments comme le montre

22 January 2015 14:30

JAVASCRIPT - DEMO - Maximum Characters for Text and Textarea Form Fields

Enforcing a maximum character length for text and textarea form fields is fairly easy to do.

05 January 2015 04:15

JQuery - Native equivalents of jQuery functions

by 1 other (via)
I think there are many developers who don’t realize that most of the jQuery methods they use have native equivalents that require the same or only a slighter larger amount of code to use. Below are a series of code samples showing some popular jQuery functions along with their native counterparts.

01 April 2014 07:00

JAVASCRIPT - Jscript - Named function expressions demystified

(via)
In a nutshell, named function expressions are useful for one thing only — descriptive function names in debuggers and profilers. Well, there is also a possibility of using function names for recursion, but you will soon see that this is often impractical nowadays. If you don’t care about debugging experience, you have nothing to worry about. Otherwise, read on to see some of the cross-browser glitches you would have to deal with and tips on how work around them.

12 July 2013 13:00

JAVASCRIPT - Javascript non-intrusif, chapitre 1 : le grand nettoyage ! - Pompage.net

Javascript non-intrusif, chapitre 1 : le grand nettoyage ! Par Christian Heilmann. Cet article est le premier d'une série qui en compte 5.

20 June 2013 00:00

alternatives to innerHTML - slayeroffice | articles(2006)

by 15 others
The focus of this article will be to show you ways of doing things commonly reserved for innerHTML with only DOM methods. In each example, the innerHTML method will be shown, followed by its DOM based alternative

12 March 2010 06:15

unsafeWindow - Injecting JS functions into the page from a Greasemonkey script on Chrome - Stack Overflow

I have a Greasemonkey script that works just fine in Firefox and Opera. I struggle with getting it to work in Chrome, however. The problem is injecting a function into the page that can be invoked by code from the page. Here's what I'm doing so far: First, I get a helper reference to the unsafeWindow for Firefox. This allows me to have the same code for FF and Opera (and Chrome, I thought).

12 March 2010 05:15

User Script Compiler - Easily convert Greasemonkey scripts into Firefox extensions

First, you'll need to track down your installed scripts. They're in your Firefox profile, under the "gm_scripts" sub-folder. Or, if you'd prefer, you can skip the search and download any script from the online script repository. Next, you need to change the file extension from .js (Javascript) to .txt (plain text). After you've changed the extension, double-click the file to view the code. Copy and paste the code into the User Script Compiler and hit "Generate." Voila! Your new Firefox extension (.xpi) is complete. To install in Firefox, simply drag the new extension onto the Firefox interface and follow the prompts.

27 December 2009 08:45

20 July 2009 04:15

jQuery.info - Spip Plugin

by 16 others
Découvrir et utiliser jQuery, la librairie javascript du XXIIème siècle.

02 May 2009 04:45

L'objet REGEXP - Les Expressions Régulières et JavaScript - ASP-PHP.net

Qu'est-ce que c'est encore que cette bête ?... En fait, un moyen simple, même si parfois obscur au premier abord, pour faire des recherches d'occurences dans une chaîne... Exemple : Pour vérifier la validité de structure d'une adresse email saisie dans un formulaire :

17 January 2009 22:00

Handling Keyboard Shortcuts in JavaScript

by 8 others
Despite the many JavaScript libraries that are available today, I cannot find one that makes it easy to add keyboard shortcuts(or accelerators) to your javascript app. This is because keyboard shortcuts where only used in JavaScript games - no serious web application used keyboard shortcuts to navigate around its interface. But Google apps like Google Reader and Gmail changed that. So, I have created a function to make adding shortcuts to your application much easier.

13 December 2008 14:30

Creating Applications with Mozilla

Guide pour créer des application avec Mozilla : très fournit

01 October 2008 04:30

Link highlighter script__Short tutorial to build a script

This short tutorial assumes that you have already downloaded and installed the Greasemonkey Firefox add-on. Below follows a very simple JavaScript program, which highlights links to your site, to get you started. I use this script a lot for SEO (Search Engine Optimization) purposes to find my site on a result page in Google, or to find a link to my site, which according to the access_log of my web site should be there.

30 September 2008 11:15

Running scripts as soon as possible - UserJS.org

Running scripts as soon as possible Written on 2005-11-12Assuming the file name ends with .js (not .user.js), Opera will run User JavaScripts before the first script on the page is processed. This is done to allow you to set any user JavaScript events that you want, before any scripts are encountered. If the page has no scripts of its own, then user scripts are run immediately before the load event is about to fire. Note: if the page has no scripts of its own, then your script will always run after the page has loaded - there is nothing you can do about that.

08 June 2008 04:15

🛠 DEV - TUTO - Dyn-web - Dynamic Web Coding - DHTML, JavaScript, Ajax and PHP in action!

by 2 others
Presenting scripts that are lightweight, unobtrusive, practical, well-documented and easy to implement. Providing tutorials with practical problem solving information.

decembre's TAGS related to tag javascript

ajax +   animation +   api +   article +   audio +   bibliotheque +   blog +   bookmarklet +   browser +   carte +   checkbox +   chrome +   code +   comment +   convert +   css +   data +   delete +   demo +   design +   dev +   development +   documentation +   dom +   editeur +   editor +   example +   exemple +   extension +   fichier +   fiddle +   firebug +   firefox +   flash +   flickr +   FlickrSurf+ +   format +   forum +   free +   function +   google +   greasemonkey +   guide +   hack +   howto +   htlm +   html +   html5 +   image +   infinite-scroll +   interactif +   interface +   java +   jQuery +   json +   library +   link +   liste +   maps +   ocr +   online +   opensource +   outil +   php +   player +   plugin +   programmation +   reference +   regex +   Responsive +   ressource +   script +   scroll +   scrollbar +   selector +   site +   stackoverflow +   tag +   test +   text +   tips +   tool +   transform +   tuto +   tutorial +   tutoriel +   user +   userscript +   userstyle +   utilitaire +   video +   web +   web2.0 +   webdesign +   webdev +   wysiwyg +   xhtml +   xml +   xpi +   xul +