background preloader

jQuery Deconstructed

jQuery Deconstructed

Building Large-Scale jQuery Applications Today we're going to look at the end-to-end tools and options you have for building large-scale enterprise jQuery applications. Although jQuery is an excellent JavaScript library and provides a well-designed set of tools for development, it's focus on staying compact and making the DOM easy to use has meant that it doesn't provide a significant infrastructure for building large-scale apps. jQuery does however normalize things across browsers and serves as a great way of doing DOM manipulation. Using it to it's strengths, you can select some excellent tools to use along-side it as a toolkit for your larger-scale app development. Some developers have argued in the past that building RIAs using Dojo, MooTools or YUI may be more suitable for large-scale JavaScript applications than simply opting for jQuery, however, I believe you can implement a solution using it that is equally as good without too much extra effort. 1. Options: 2. MVC With JavaScript & jQuery How does the MVC Pattern work? 3.

Features Standing on the shoulders of Scriptographer and making use of HTML5 standards, Paper.js is a comprehensive open source vector graphics scripting framework. Document Object Model Paper.js provides a Document Object Model (also called a Scene Graph) that is very easy to work with. Create a project and populate it with layers, groups, paths, rasters etc. If you've never heard of a Document Object Model before, you can think of it as the layers palette of applications such as Adobe Illustrator & Adobe Photoshop. The image on the left is an illustration of the structure of the project after executing the code below, if you would be looking at it in an application like Adobe Illustrator. Learn more about the Document Object Model in the Document Hierarchy tutorial. Paths & Segments Paper.js makes is very easy to create paths and add segments to them. In Paper.js, paths are represented by a sequence of segments that are connected by curves. Mouse Interaction Keyboard Interaction Symbols

Jquery Jquery est une librairie javascript parmis les plus utilisées du moment. Il ne me parait pas utile de démontrer ici que c’est la meilleure, les comparatifs ne manquent pas sur le net. Je dirait simplement qu’elle est pré-intégrée à de nombreux CMS ou frameworks, notamment WordPress ou Zend Framework, ce qui est un gage certain de qualité. Cette librairie permet une manipulation du DOM simplissime, basée sur des sélecteurs de type CSS. Est également inclu une gestion des évènements, des effets et animations, la manipulation de la CSS. Le tout en un langage simple, concis, et très intuitif. De nombreux plugins viennent facilement se greffer dessus, permettant des fonctionnalités très avancées et nécessitant un minimum de développement. Si vous ne connaissez pas encore cette librairie, je vous encourage vivement à l’essayer. Le site officiel : Un site de référence à la navigation bien plus agréable, et souvent moins surchargé que le site officiel :

Evolutionary architecture and emergent design: Evolutionary architecture Way back in the very first installment of this series, I suggested some definitions for architecture in the software world. However, if you've been reading this whole series (and if you're not my mother, I thank you for that!), you've noticed that I've spent most of my time on design. This installment rectifies the lack of material about agile architecture. Distinguishing architecture from design Martin Fowler's definition of architecture (from conversations with him) is my favorite: Architecture is the stuff that's hard to change later. You can think of the interaction between architecture and design as the relationship shown in Figure 1: Figure 1. The architecture of a software system forms the foundation upon which everything else sits, represented in Figure 1 as gray boxes. The corollary to Fowler's definition of architecture is that you should construct the architectural elements so that they become easier to replace if you really need to. Figure 2. Figure 3. Back to top Build vs. buy

ccan Grid jQuery UI Grid Team Project Manager: Richard D. WorthTechnical Lead: Jörn ZaeffererCorey Frang Scott GonzálezAdam Sontag (Bocoup)Boris Moore (Microsoft)Brad Olenick (Microsoft) Chris Bannon (Wijmo)John Ayers (Wijmo)Kin Blas (Adobe)Hans Hillen (TPG)Kris BorchersFelix Nagel Status and Tasks Latest Update: See our Oct 2011 update Status: Dedicated work on the Grid project is on hold at the moment while the jQuery UI team focuses on the rest of the Roadmap. "While it is unfortunate that the progress on the main grid components isn't in a release yet, further delaying the jQuery 1.9 release is also not desirable (its been nearly 2 years now since 1.8). The jQuery UI Roadmap currently has 4 major releases: 1.11, 1.12, 1.13, and 2.0 before a release that would include the Grid: 2.1. Previously being worked on: Development Approach There are a number of high quality jQuery grid plugins today. Getting Involved Roadmap Estimate: 250 hours

Raphaël—JavaScript Library Ajouter un reflet aux images d’un site : Reflection.js | LE GLOB Reflection.js est un script permettant d’ajouter un effet de reflet à une ou plusieurs images d’une page Web. Pour le faire fonctionner, il suffit de télécharger le script ici, de placer le fichier “reflection.js” dans l’arborescence de votre site (dans un dossier “scripts” par exemple…) et d’insérer la ligne de code suivante entre les balises <head> et </head> Ensuite, en ajoutant class=”reflect rheightxx ropacityxx” à n’importe quelle balise “img” de votre site, l’effet de réflexion lui sera appliqué ( xx représente la hauteur et l’opacité de l’effet en pourcentage ) – Pour les détails, se référer à la documentation liée au script et disponible sur la page du créateur. Il existe une adaptation de ce script sous forme de pluggin wordpress : c’est le WP Wetfloor, que j’ai utilisé pour présenter les exemples ci-dessous : class="reflect rheight100 ropacity25" class="reflect rheight25 ropacity100"

Structure de site Internet : comment faire ? La structure d’un site a un impact énorme sur le référencement naturel. Une mauvaise conception pose problème: perte de positionnement, contenus non indexés, incompréhension du visiteur… La solution est d’adopter le plus tôt possible une structure adaptée pour votre site. Arborescence générale Avant même de parler technique, il faut parler de contenus et de cibles. A qui votre site s’adresse, pour répondre à quels besoins, avec quels outils ou quels contenus ? Dans l’ordre, voici les points clés de la structure de votre site Internet : Quel type de site utiliser ? La dernière question est sans doute la plus épineuse. lister tous les contenus (actuels ou à venir) de votre site webles regrouper en catégoriesles structurer Rien de tel qu’une image pour mieux comprendre : Le problème, c’est que cette structure dépend de votre point de vue. La méthode du tri des cartes et les personas La méthode de tri des cartes implique une aide extérieure. L’html et structure Les balises html La page plan de site

Main Page 75 Most Useful jQuery Plugins of Year 2010 Nowadays mostly designers & developers use sliders or carousels in their blog or website and jquery make this very easy to be used. jQuery has overpowered Flash in a lot of web uses becoming a very powerful tool for web designers. In web design a carousel is an element giving visitors easy access to several content items. It is typically a dynamic scrolling list of items in horizontal order. I have bookmarked some efficient sliders that can also be easily integrated into WordPress if you have the skills. Today there are many excellent free jQuery Carousel plugins available and it makes it difficult to choose the best one. I am sure this post will be helpful to both moderate and advanced developers alike. Sliders: 1. Slidorion is FREE to use provided that you leave my credits intact, and is licensed under the Apache License 2.0 2. 3. 4. 5. 6. You’ll notice that the “id” of the parent div is “featured”, but it doesn’t have to be. 7. 8. 9. 10. 11. 12. 13. 1. 2. 3. 5. 6. 8. 9. 10. 12. 13.

Sophisticated Sorting in JavaScript » JavaScript & CSS » SitePoint Blogs JavaScript’s sorting mechanism is a model of simplicity, yet bubbling under the surface is some incredibly flexible and powerful functionality. Using sort it’s possible to organise arrays, not just into alphabetical or numerical order, but into any bespoke arrangement we can express in conditional logic. How the sort function works → If you already know the basics then you might want to skip ahead. If sort() is called with no argument, then the array is sorted lexicographically — in dictionary order, when each value is treated as a string: var letters = ["R","O","F","L"]; letters.sort(); alert(letters); //produces ["F","L","O","R"] Otherwise the argument to sort is a comparison function, which defines the sort behavior according to how it returns. if the function returns less than zero, sort a before bif the function returns greater than zero, sort b before aif the function returns zero, leave a and b unchanged with respect to each other The specification defines the rules in a confusing way

Related: