background preloader

Javascript and jQuery

Facebook Twitter

Submit Form without Refreshing Page with Jquery. This post helps you to submit your form without refreshing page.

Submit Form without Refreshing Page with Jquery

In this tutorial I will show you how simple it is to do using jQuery form plugin just five lines of JavaScript code, no need to post data string values via ajax. Explained collaboration with validate plugin for implementing form field validations. Download Script Live Demo. FdW Talent n°2 - Require.js: Optimisez le chargement de vos JS. Pour la 2ème découverte des Fermiers du Web ont du talent, je vous présente Require.js, une librairie Javascript permettant d'optimiser le chargement des fichiers Javascript de vos pages web.

FdW Talent n°2 - Require.js: Optimisez le chargement de vos JS

L'heure est à l'optimisation de ses performances web et temps de réponse. Notamment depuis que Google prend en compte ces métriques de temps de chargement dans son algo. Jérémy Barbe alias Capitaine Mousse, a développé Require.js pour mieux répondre à ses besoins, les solutions existantes ne convenant pas. JavaScript RegExp Object. Juiz Slicing Door in jQuery - CreativeJuiz. Mozilla Firefox. Demos - Uploadify. Formly - Style et validation sur vos formulaires HTML avec jQuery. Formly est un plugin jQuery permettant de donner du style à vos formulaires et ajouter une couche de validation Javascript avant la soumission du formulaire.

Formly - Style et validation sur vos formulaires HTML avec jQuery

Les formulaires HTML de base ne sont pas très design ... grâce à Formly vous aurez la possibilité de donner du style aux input, checkbox, radio ... en quelques lignes de code ! En effet, la librairie dispose d'un système de thème permettant de donner un style plutôt sympa à vos formulaires. Par défaut, il existe un thème light et un thème dark. Demo - Vegas Background jQuery Plugin. Agile Carousel - Javascript Slideshow - Image Carousel. Edtalmadge/Agile-Carousel - GitHub. /packer/ Mozilla Firefox. Programmation orientée objet avec le langage JavaScript (1ère partie) Dans ce premier article, nous allons décrire les différents mécanismes de base du noyau du langage JavaScript, le langage EcmaScript.

Programmation orientée objet avec le langage JavaScript (1ère partie)

Ce dernier est standardisé par la spécification ECMA-262 [1] dont la version 3 est la version courante. Bien que ce langage soit orienté objet, il différe considérablement des langages objet classiques tels que Java et C++ puisqu'il se fonde sur une variante de ce paradigme, à savoir la programmation orientée objet par prototype [2]. Nous verrons que son intérêt consiste en son aspect dynamique permettant de modifier la structure des objets après leur création. Get Started With Prototype. Much of the web counts on JavaScript for its interactivity and for many years it was difficult to write.

Get Started With Prototype

Browser inconsistencies and complicated code made even advanced coders grimace. JavaScript frameworks, such as Prototype, jQuery and MooTools have taken much of the pain away. These frameworks sit on top of JavaScript and make common tasks a whole lot easier. Prototype is the granddaddy of JavaScript frameworks. It was the first to gain wide popularity, probably due to its pairing with the Ruby on Rails server-side programming framework. In this tutorial, I’ll provide an introduction to the Prototype way of writing JavaScript. The stupidly brief – how to use Prototype’s insert() function « Bobobobo’s Weblog. I think the prototype docs are too brief.

the stupidly brief – how to use Prototype’s insert() function « Bobobobo’s Weblog

Stupidly brief, in fact. Don’t get me wrong. The docs are generally well formatted and pretty complete. But when it wastes more than a couple of minutes of my time to figure out how to use a specific function, its just a little too brief. Stupidly brief. Its stupidly brief because someone who already knows how to use it won’t need to refer to it, and someone who doesn’t won’t be able to understand it very quickly without being confused. Element.insert Yes, yes they beat msdn hands down by using clever looking uri’s like This is appreciated.

Prototype.js : Ajax.Request.CONSTRUCTOR()-2 - le-developpeur-web.com. Paramètres : Ajax.Request(url[,{options}])

Prototype.js : Ajax.Request.CONSTRUCTOR()-2 - le-developpeur-web.com

Create a new Fiddle - jsFiddle - Online Editor for the Web (JavaScript, MooTools, jQuery, Prototype, YUI, Glow and Dojo, HTML, CSS) Javascript Objects - A Useful Example. Today, we are going to take a look at how to work with simple (and not so simple) javascript objects.

Javascript Objects - A Useful Example

The javascript object is a very misunderstood beast - quite often people don't even know that javascript has objects. And of the people who do know about them, many think that it is a stripped down and weak object system, and so never bother to actually use it when writing any javascript. But actually the opposite of that is true - the javascript object model is extremely flexible, and allows you as the programmer to do things that can't be done without extreme contortions in languages like C++ and C#.

Today, we will only scratch the surface of that flexibility, but it should give you ideas about how to use javascript objects in your own web applications. Javascript Tutorial - Simple Fade Animation. Woohoo fading!

Javascript Tutorial - Simple Fade Animation

Everyone loves fading in and out, it is an excellent way to transition between two segments of an application (unless the fade takes too long, and then it just gets annoying). Today we are going to look at a simple and robust way of creating a fade in or fade out effect using javascript and the simple css 'opacity' element. In the example below, you can see a green box with some text, and a button beneath it. If you press the button, the green box will fade out and become fully transparent, and if you press the button a second time, the box will fade back in. As you can see with the text inside of the box, anything that is a child of the fading element will also fade away/fade back. So how is all of this done? This fade function takes an element id, and the first thing we do is resolve it into an element object. If the FadeState is 1 or -1, it means that an animation is currently in progress.