javascript

TwitterFacebook
Get flash to fully experience Pearltrees
json

http://www.dmuth.org/node/1252/msie-javascript-annoyances-using-parameters-settimeout Today's programmatic venting is brought to you by Internet Explorer's implementation of the setTimeout() function under Javascript. What is setTimeout()? setTimeout() schedules an arbitrary function call for some point in future. This is useful when you have functions that do repetitive tasks some milliseconds apartment, but not constantly.

MSIE Javascript Annoyances: Using parameters in setTimeout() | Claws and Paws dot Com

http://jibbering.com/faq/notes/closures/ Introduction The Resolution of Property Names on Objects Assignment of Values Reading of Values Identifier Resolution, Execution Contexts and scope chains

Javascript Closures

http://rahul.amaram.name/blog/2007/04/13/javascript-naming-conventions While most of the popular languages (Java, .NET, C++) have elaborate documents on the naming conventions to follow, I couldn't find any such good document for javascript. All I could find was bits and pieces here and there. This is the main reason why I am creating this page listing the javascript naming conventions I follow. This may not be complete but I shall try to make it as comprehensive as possible.

Javascript Naming Conventions, Coding Guidelines and Best Practices | Live Free. Live Happy.

Code Conventions for the JavaScript Programming Language

This is a set of coding conventions and rules for use in JavaScript programming. It is inspired by the Sun document Code Conventions for the Java Programming Language . It is heavily modified of course because JavaScript is not Java . The long-term value of software to an organization is in direct proportion to the quality of the codebase. Over its lifetime, a program will be handled by many pairs of hands and eyes. If a program is able to clearly communicate its structure and characteristics, it is less likely that it will break when modified in the never-too-distant future. http://javascript.crockford.com/code.html
http://www.javascriptkit.com/javatutors/redev.shtml

Regular Expressions

Programmer's Guide to Regular Expressions Credits: This tutorial is written by David Andersson (Liorean). Please see footnote for more information on author. What is a regular expression? Regular expressions is a form of pattern matching that you can apply on textual content.
http://onlinetools.org/articles/unobtrusivejavascript/chapter1.html

Operation Cleanout - Unobtrusive Javascript

Web development in the last year(s) has undergone a change, we stopped mixing presentation with structure, and thus made it easier to rebrand and change the layout throughout the site simply by changing the style sheet. Further separation is possible by not using any inline styles and classes, but inheritance and contextual selectors. HTML : <table border="0" cellpadding="0" width="100%" cellspacing="5"><tr><td><font face="Arial" size="-2">Lorem Ipsum</font></td></tr></table> became and finally The same evolution can and must happen for Javascript.
This section defines a set of objects and interfaces for accessing and manipulating document objects. The functionality specified in this section (the Core functionality) is sufficient to allow software developers and web script authors to access and manipulate parsed HTML and XML content inside conforming products. The DOM Core API also allows creation and population of a Document object using only DOM API calls; loading a Document and saving it persistently is left to the product that implements the DOM API. 1.1.1. The DOM Structure Model The DOM presents documents as a hierarchy of Node objects that also implement other, more specialized interfaces. http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247

Document Object Model Core

Esta es una pequeña recopilación de funciones Javascript que deberíamos tener siempre presente en nuestra mente a la hora de desarrollar una aplicación Javascript . Algunas de estas funciones son muy comunes en otros lenguajes , pero por un motivo o por otro en Javascript no estan tan popularizadas. Trim Trim es posiblemente una de las funciones más útiles que podemos encontrar a la hora de trabajar con cadena pero es una función que echamos de menos en Javascript, simplemente se encarga de eliminar los espacios en blanco del principio y fin de una cadena y en casi cualquier lenguaje de programación hay una función parecida que cumple con esta función, lástima que Javascript no la posee pero con la ayuda de Prototype nos podremos crear nuestra función Trim. Para la creación de esta función nos vamos a aprovechar de la posibilidad que nos da Prototype de modificar un objeto añadiendole atributos o métodos nuevos, esto incluye los objetos nativos de Javascript. http://www.tufuncion.com/funciones-javascript

Las funciones Javascript más útiles

Esta es una lista de las 10 librerías más útiles que he encontrado y que utilizo a menudo, es una manera sencilla de utilizar la últimas tecnologias con un ahorro de tiempo considerable y resultados excelentes. Estas librerías se basan en lenguajes como javascript,php,ajax,css… 1) Moo.fx – Su principal cualidad es que es muy ligera,más bien la podríamos definir como una diminuta libreria de efectos javascript escrita con prototype.js . Es fácil de usar,rápida y nos ofrece controles para modificar atributos como Height, Width, y Opacity con un gran rendimiento.Esta tambien optimizada para que escribas el menor código posible. http://www.tufuncion.com/top-10-librerias

Las 10 mejores librerías

El framework más popular de Ajax

http://www.tufuncion.com/mejor-framework-ajax Este es un interesante sondeo realizado por Ajaxian , la encuesta llega a su segunda edicion y según los datos el indiscutible ganador es… Prototype , el framework más popular de Ajax , con un 43% de popularidad, el siguiente es Script.aculo.us con un 33% confirmandose ambos cómo los indiscutibles frameworks más populares. Estos son los resultados de la encuesta: Aquellos frameworks con menos de un 3% no son mostrados
Douglas Crockford douglas@crockford.com 2006-04-17 (Updated 2012-08-10) Abstract XMLHttpRequest has a security model that is inadequate for supporting the next generation of web applications.

Request

Filed: Sun, Mar 04 2007 under Programming|| Tags: toolbox javascript popular list Javascript frameworks have exploded on the scene over the last few years but they're no replacement for a good toolbox: those little snippets of code you seem to include in every single project. Here's my list of 10 essential Javascript tools everyone should have at their fingertips! #0 - Trim.

Ten Javascript Tools Everyone Should Have

' Simon ' on Sun, 23 Jul 2006 18:22:02 GMT, sez: Brilliant. I had (sub-consiously) followed steps 1 to 4 exactly as you describe, except the alarm bells were 3 days ago. Thankyou for saving me the agro of looking it up for myself.

Understanding JSON: the 3 minute lesson

Filed: Thu, Mar 08 2007 under Programming|| Tags: ajax javascript object post get In my recent article Ten Javascript Tools Everyone Should Have I offered an AJAX object as the 10th tool. After publication, I received quite a number of requests to document the object, and so document it I shall.

The Ultimate Ajax Object

50+ Amazing Jquery Examples- Part1

Dec 20 2007 * This post is regularly updated.