javascript

TwitterFacebook
Get flash to fully experience Pearltrees
json

http://www.dmuth.org/node/1252/msie-javascript-annoyances-using-parameters-settimeout 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. The reason why this is used instead of a simply while (true) { ... } loop is because Javascript is a single-threaded language.

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

http://jibbering.com/faq/notes/closures/ A "closure" is an expression (typically a function) that can have free variables together with an environment that binds those variables (that "closes" the expression). Closures are one of the most powerful features of ECMAScript (javascript) but they cannot be property exploited without understanding them. They are, however, relatively easy to create, even accidentally, and their creation has potentially harmful consequences, particularly in some relatively common web browser environments. To avoid accidentally encountering the drawbacks and to take advantage of the benefits they offer it is necessary to understand their mechanism. This depends heavily on the role of scope chains in identifier resolution and so on the resolution of property names on objects.

Javascript Closures

http://rahul.amaram.name/blog/2007/04/13/javascript-naming-conventions 2. Apart from this a letter indicating the scope of the variable should also be prefixed. This will help in differentiating the local variables from the global variables. 3.

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

JavaScriptMVC

"JavaScriptMVC strikes the perfect balance between structure, speed and featureset to enable web developers to build large, scalable apps in a modular fashion." "Since standardizing on JavaScriptMVC, we've been able to start sharing well-tested code between projects, quickly bring new developers up to speed and take the complexity out of the packaging, minification, and deployment process." http://www.javascriptmvc.com/

Code Conventions for the JavaScript Programming Language

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. JavaScript code should not be embedded in HTML files unless the code is specific to a single session. Code in HTML adds significantly to pageweight with no opportunity for mitigation by caching and compression. tags should be placed as late in the body as possible. http://javascript.crockford.com/code.html

in Java

The JSON data interchange format is easily supported in Java . Free source code is available . It is provided without support or warranty . http://www.json.org/java/index.html
http://www.hunlock.com/

javascript resources

The 2009 suite of browsers all allow for cross-site ajax which means the social revolution is about to kick into high-gear! This article presents a simple framework which will allow your application to interface with your visitors on virtually any page on the net through the use of a small javascript bookmarklet. …a Dell m1530 XPS laptop to be exact. What follows is my review of the system and really it’s just an overview of the nits and annoyances with the system.
http://www.javascriptkit.com/javatutors/redev.shtml

Regular Expressions

What is a regular expression? Regular expressions is a form of pattern matching that you can apply on textual content. Take for example the DOS wildcards ? and * which you can use when you're searching for a file. That is a kind of very limited subset of RegExp.
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. One of the big powers of Javascript is that it comes in a seperate file. Much like CSS , this means you can apply one collection of functions to every page of the site, and if you need to change its functionality, you can do that in one document rather than going through each page. We only use Javascript to enhance a functionality that is already given, we don't rely on it. Javascript can be turned off or filtered out by proxies or firewalls of security aware companies. We can never take it for granted.
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

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. El objeto Array de Javascript tiene un método llamad sort() que es muy eficiente y rápido. Desafortunadamente este por defecto unicamente nos sirver para ordenar letras esto significa que si le pasamos un array de números nos los ordenará de manerá alfabética (1,15,100,2,25,200 en vez de 1,2,15,25,100,200).

Las funciones Javascript más útiles | TuFuncion

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. 2) Rico – Una librería de uso abierto en JavaScript para crear aplicaciones amigables. Utiliza tecnologia Ajax, manejo de drag and drop , y otros muchos efectos.

Las 10 mejores librerías | TuFuncion

El framework más popular de Ajax | TuFuncion

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. * 11% utilizan la librería JSON para la transferencia de datos, desafortunadamente no hay datos suficientes para comparar esta librería con otros formatos de transferencia

Prototype JavaScript framework: Easy Ajax and DOM manipulation for dynamic web applications

Last week, we tagged the first stable release of 1.7, marking the end of a far-too-long release cycle. We've made more than 50 improvements since the last stable version and are already working on 1.7.0.1.