Skip to main content

Diigo Home
Home/ Groups/ javascript
Mr. DiGi

Google Code Blog: Introducing Closure Tools - 0 views

  • Closure Compiler is a JavaScript optimizer that compiles web apps down into compact, high-performance JavaScript code.
  • Closure Library is a broad, well-tested, modular, and cross-browser JavaScript library. Web developers can pull just what they need from a wide set of reusable UI widgets and controls, as well as lower-level utilities for the DOM, server communication, animation, data structures, unit testing, rich-text editing, and much, much more. (Seriously. Check the docs.)
  • Closure Templates grew out of a desire for web templates that are precompiled to efficient JavaScript.  Closure Templates have a simple syntax that is natural for programmers.
yuppi c

TIDE 2.0 beta - Online Javascript Editor Debugger - 1 views

  • yuppi c
     
    TIDE is a Tiny IDE for JavaScript. Its purpose is to write, analyze or debug small JavaScript programs.
Mike More

Topsy Tip: Another Retweet Button to Embed Anywhere! - 1 views

  • Mike More
     
    Topsy has just released a Wordpress plugin that gives you another retweet button. But, what if you can only work with a JavaScript widget? here is a small hack..
yuppi c

Grails - The search is over. - 0 views

shared by yuppi c on 03 Nov 09 - Snapshot
  • yuppi c
     
    Get instant feedback, see instant results. Grails is the premier dynamic language web framework for the JVM. Powered by Spring, Grails out performs the competition. Dynamic, agile web development without compromises.
yuppi c

Underscore.js - 4 views

  • Javier Neira
     
    Underscore is a utility-belt library for Javascript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in Javascript objects. It's the tie to go along with jQuery's tux.
  • yuppi c
     
    Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects. It's the tie to go along with jQuery's tux.
    Collections
    each, map, reduce, detect, select, reject, all, any, include, invoke, pluck, max, min, sortBy, sortedIndex, toArray, size

    Arrays
    first, last, compact, flatten, without, uniq, intersect, zip, indexOf, lastIndexOf

    Functions
    bind, bindAll, delay, defer, wrap, compose

    Objects
    keys, values, extend, clone, isEqual, isElement, isArray, isFunction, isUndefined

    Utility
    noConflict, identity, uniqueId, template
yuppi c

JavaScript & Ajax :: Chapter 17: Bookmarklets - 3 views

  • yuppi c
     
    Clicking on any of these tasks will take you to a page where you can run the script or copy the script code and its associated images.
Javier Neira

12 Tips to improve your jQuery code | Geekology - 2 views

  • DOM manipulation is one of the slowest operations JavaScript (and hence, jQuery) can perform.
  • Use IDs instead of classes in selectors
  • When you need to perform multiple methods on elements, jQuery can chain those methods together.
  • ...2 more annotations...
  • 11. Use jQuery’s noConflict() method to rename the jQuery object when working with multiple frameworks:


    Many JavaScript frameworks use the “$” symbol to reference the framework. If you use multiple frameworks in your project, use the jQuery.noConflict() method to release the “$” object and assign jQuery to a custom-named object:

  • 12. Use shorthand for the $(document).ready() event:
Javier Neira

JavaScript: The World's Most Misunderstood Programming Language - 1 views

Javier Neira

Is JavaScript object-oriented? - Stack Overflow - 1 views

  • Well this is broken. Since the function assigned to getValue is no longer in scope with _value it can't access it. We would need to promote _value to an attribute of this but that would make it accessable outside of the control of code written for the class, hence encapsulation is broken.
Javier Neira

Playing with JQuery Validation Library, Part 2 | Elegant Code - 2 views

  •  1: $('#UserNameForm').validate({

    <!--CRLF-->


       2:     rules: {

    <!--CRLF-->


       3:         userNameEdit: { required: true, remote: "<%=Url.Action("VerifyUserName", "Account") %>" }

    <!--CRLF-->


       4:     }

    <!--CRLF-->


       5: });
  • The new part is the remote in the script.   You give it the name/location of your web service to call to validate the field, and the field name/value are passed in. 
Javier Neira

Inheritance - MDC - 1 views

  • Note that __proto__ may not be available in JavaScript versions other than that in Mozilla. An alternative, but less optimal version of extend(), which should work everywhere, is:


    function extend(child, super) 
    {
    for (var property in super.prototype) {
    if (typeof child.prototype[property] == "undefined")
    child.prototype[property] = super.prototype[property];
    }
    return child;
    }
qualitypoint Tech

Job opening for freshers (Engineering/MCA) |QualityPoint Technologies - 0 views

  • qualitypoint Tech
     
    Currently we are looking for Software Engineers.\n\nDesired Candidate profile:\n \n* Having Good Technical Knowledge and willing to work hard for learning new technologies.\n\n * Team work.\n * Sincere\n * Good communication skills.\n * Knowledge in PHP/mySql, C# is preferred.\n * Willing to work in any technology.\n * Job location :Chennai and Ottapidaram (Tuticorin District)\n * Experience 0-1 year\n\n
Javier Neira

Three map implementations in javascript. Which one is better? - Stack Overflow - 1 views

  • if (!Array.prototype.map) {
     
    Array.prototype.map = function(fun /*, thisp*/)   {
       
    var len = this.length >>> 0;  // make sure length is a positive number
       
    if (typeof fun != "function") // make sure the first argument is a function
         
    throw new TypeError();

       
    var res = new Array(len);  // initialize the resulting array
       
    var thisp = arguments[1];  // an optional 'context' argument
       
    for (var i = 0; i < len; i++) {
         
    if (i in this)
            res
    [i] = fun.call(thisp, this[i], i, this);  // fill the resulting array
       
    }

       
    return res;
     
    };
    }
  • Javier Neira
     
    if (!Array.prototype.map) {
    Array.prototype.map = function(fun /*, thisp*/) {
    var len = this.length >>> 0; // make sure length is a positive number
    if (typeof fun != "function") // make sure the first argument is a function
    throw new TypeError();

    var res = new Array(len); // initialize the resulting array
    var thisp = arguments[1]; // an optional 'context' argument
    for (var i = 0; i < len; i++) {
    if (i in this)
    res[i] = fun.call(thisp, this[i], i, this); // fill the resulting array
    }

    return res;
    };
    }
1 - 20 of 304 Next › Last »
Showing 20 items per page
Join this group