Skip to main content

Diigo Home
Home/ Groups/ javascript
Javier Neira

jQuery is a Monad « Important Shock - 0 views

  • Javier Neira
     
    1. Monads aren't esoteric, abstruse computer science - they're useful.
    2. You probably have used monads but just haven't realized it.
    3. jQuery is awesome.
yuppi c

gRaphaël-Charting JavaScript Library - 0 views

  • yuppi c
     
    gRaphaël's goal is to help you create stunning charts on your website. It is based on Raphaël graphics library.
yuppi c

Raphaël-Vector Graphics JavaScript Library - 0 views

  • yuppi c
     

    Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you want to create your own specific chart or image crop and rotate widget, for example, you can achieve it simply and easily with this library.
yuppi c

gotAPI.com - Documentation search engine - 1 views

  • yuppi c
     
    gotAPI helps you find functions, classes, methods, properties, styles, tags, constants and more \n Search In\nActionScript 2.0, ActionScript 3.0, Adobe Flex 2, Adobe Flex 3.3, Apache Ant, Apache Commons, Apache RegExp, Apache Struts 1.1, Berkley DB XML, Bluetooth and OBEX, C++, CakePHP 1.2, Castor, CDC, CLDC, ColdFusion MX-7, ColdFusion MX-8, CSS, CSS, DbUnit 2.4.5, Dinkumware C/C++, DITA 1.1, DocBook, Dojo Toolkit 1.3, Drupal, Eclipse Platform 2.1, Erlang, Flickr API, FP, Google GWT, Google GWT+Gears, Groovy, Haskell, Hibernate, HTML, HTML, HttpUnit, J2EE 5.0, Java 1.5, Java 1.6, JavaScript, JavaScript, jQuery, JSON LIB, JSTL, JUnit, Log4J, MIDP, Mobile Media, MochiKit, MooTools, MySQL 4.1, OpenGL 2.1, Oracle 10g, Oracle 9i, Orb API 2.0, OSGi Platform 4.1, PBP, Perl 5.10, PHP, PostgreSQL 8.3, Prototype.js, Python 2.6.1, RMagick 1.15, RogueWave, Ruby Std Libraries, Ruby/Rails, Scala 2.7.3, Schema (XSD), Script.aculo.us 1.8, Selenium 0.8.2, Sicstus Prolog, Simple DirectMedia Layer, Spring Framework 2.0, Symphony 1.2, Twitter API, Web Services, XML DOM, XPath 2.0, XSL 2.0, Yahoo! UI\n
Javier Neira

HtmlUnit - Welcome to HtmlUnit - 2 views

  • Javier Neira
     
    HtmlUnit is a "GUI-Less browser for Java programs". It models HTML documents and provides an API that allows you to invoke pages, fill out forms, click links, etc... just like you do in your "normal" browser.

    It has fairly good JavaScript support (which is constantly improving) and is able to work even with quite complex AJAX libraries, simulating either Firefox or Internet Explorer depending on the configuration you want to use.

    It is typically used for testing purposes or to retrieve information from web sites.

    HtmlUnit is not a generic unit testing framework. It is specifically a way to simulate a browser for testing purposes and is intended to be used within another testing framework such as JUnit or TestNG. Refer to the document "Getting Started with HtmlUnit" for an introduction.

    HtmlUnit is used as the underlying "browser" by different Open Source tools like Canoo WebTest, JWebUnit, WebDriver, JSFUnit, Celerity, ...

    HtmlUnit was originally written by Mike Bowler of Gargoyle Software and is released under the Apache 2 license. Since then, it has received many contributions from other developers, and would not be where it is today without their assistance.
Javier Neira

Google Closure: How not to write JavaScript - 3 views

  • “It’s a JavaScript library written by Java developers who clearly don’t
    get JavaScript.”

  • var a = "I am a string!";
     


    2
    alert(typeof a); // Will output "string"
     

    3
    var b = new String("I am also a string!");
     


    4
    alert(typeof b); // Will output "object" 
  • custom properties added to
  • ...3 more annotations...
  • Unfortunately, unlike the built-in properties supplied by
    Object.prototype, custom properties added to
    Object.prototype will show up as an object property in any
    for-in loop in the page.
  • loop in the page.
  • will show up as an object property in any
Javier Neira

Meet the JavaScript Development Toolkit - 2 views

  • Javier Neira
     
    Summary: The JavaScript Development Toolkit (JSDT) is an open source plug-in that brings robust JavaScript programming tools to the Eclipse platform. JSDT streamlines development, simplifies code, and increases productivity for pure JavaScript source files and JavaScript embedded in HTML.
Javier Neira

JavaScript setTimeout Function - JavaScript Timing Events - 0 views

  • Javier Neira
     
    JavaScript setTimeout Function - JavaScript Timing Events
    November 16, 2007 by Blogging Developer

    JavaScript features a couple of methods that lets you run a piece of JavaScript code (javascript function) at some point in the future. These methods are:

    * setTimeout()
    * setInterval()

    In this tutorial, I'll explain how setTimetout() method works, and give a real world example. You may find the details of setInterval() method in JavaScript setInterval Function - JavaScript Timing Events
    setTimeout()

    window.setTimeout() method allows you to specify a piece of JavaScript code (expression) will be run after specified number of miliseconds from when the setTimeout() method is called.
    Syntax

    var t = setTimeout ( expression, timeout );

    The setTimeout() method returns a numeric timeout ID which can be used to refer the timeout to use with clearTimeout method. The first parameter (expression) of setTimeout() is a string containing a javascript statement. The statement could be a call to a JavaScript function like "delayedAlert();" or a statement like "alert('This alert is delayed.');". The second parameter (timeout), indicates the number of miliseconds to pass before executing the expression.
    Example



    <script type="text/javascript">
    function delayedAlert()
    {
    var t=setTimeout("alert('You pressed the button 5 seconds ago!')",5000)
    }
    </script>


    <form>

    </form>



    An alert box will be shown 5 seconds later when you clicked the button.
    clearTimeout()

    Sometimes it's useful to be able to cancel a timer before it goes off. The clearTimeout() method lets us do exactly that. Its syntax is:

    clearTimeout ( timeoutId );

    where timeoutId is the ID of the timeout as returned from the setTimeout() method call.
Javier Neira

JQuery HowTo: Create callback functions for your jQuery plugins & extensions - 1 views

  • $.extend({
      myFunc
    : function(someArg, callbackFnk){
       
    // do something here
       
    var data = 'test';
     
       
    // now call a callback function
       
    if(typeof callbackFnk == 'function'){
          callbackFnk
    .call(this, data);
       
    }
     
    }
    });

    $
    .myFunc(someArg, function(arg){
     
    // now my function is not hardcoded
     
    // in the plugin itself
     
    // and arg = 'test'
    });
  • Javier Neira
     
    $.extend({
    myFunc : function(someArg, callbackFnk){
    // do something here
    var data = 'test';

    // now call a callback function
    if(typeof callbackFnk == 'function'){
    callbackFnk.call(this, data);
    }
    }
    });

    $.myFunc(someArg, function(arg){
    // now my function is not hardcoded
    // in the plugin itself
    // and arg = 'test'
    });
Javier Neira

Inheritance Patterns in JavaScript - 2 views

  • Javier Neira
     
    This article discusses the advantages of the pseudoclassical pattern over the functional pattern. I argue that the pattern used by the Closure Library paired with the Closure Compiler removes existing hazards while I also examine the hazards introduced by the functional pattern (as defined in The Good Parts). First let me demonstrate what I mean by the functional pattern.
Javier Neira

Dynamically including Github code | PeterBraden.co.uk - 0 views

  • Javier Neira
     
    /**
    * GitHub code inclusion
    * By Peter Braden
    */


    var PBgithub = PBgithub || {};

    /* You'll want to change these to your credentials */
    PBgithub.login = "peterbraden";
    PBgithub.token = "9d567812a941dc331cf4e431e7fc4ebc";

    PBgithub.base = "http://github.com/api/v2/json/";


    /** Load github content for this code element **/
    PBgithub.codify= function(code_elem){
    PBgithub.c = $(code_elem);
    $.getScript(PBgithub.make_url(PBgithub.base + 'repos/show/',
    "/branches", 'PBgithub.handle_branch'));
    }

    PBgithub.make_url = function(front, end, callback){
    var data = "?callback=" + callback + "&login=" +
    PBgithub.login + "&token=" + PBgithub.token;
    return front + PBgithub.c.attr('username') + "/" +
    PBgithub.c.attr('repository') + end + data;
    }

    PBgithub.handle_file = function(data){
    PBgithub.c.html(
    data['blob']['data'].replace(//g, '>'));
    PBgithub.next();
    }

    PBgithub.handle_branch = function(data){
    var branch = data['branches'][PBgithub.c.attr('branch')];
    $.getScript(PBgithub.make_url(PBgithub.base + 'blob/show/', "/"
    + branch + "/" + PBgithub.c.attr('path'), 'PBgithub.handle_file'));
    }

    PBgithub.next = function(){
    if (PBgithub.i < PBgithub.elems.length){
    PBgithub.i+=1;
    PBgithub.codify(PBgithub.elems.get(PBgithub.i-1));
    }
    }
    $(function(){
    PBgithub.i = 0;
    PBgithub.elems = $('code.from-github');
    PBgithub.next();
    });
Julian Knight

Chris Adams: Cleaning up the web with jQuery and a little help from Google - 2 views

  • Julian Knight
     
    How to use JQuery (or other libraries) in a bookmarklet! With an example of making textarea's resizeable.
    Chris Adams provides a template for creating your own bookmarklet and explains some of the reasons you might want to use this technique for development and testing. He also points out some gotcha's to be careful of.
  • Julian Knight
     
    How to use JQuery (or other libraries) in a bookmarklet! With an example of making textarea's resizeable.
    Chris Adams provides a template for creating your own bookmarklet and explains some of the reasons you might want to use this technique for development and testing. He also points out some gotcha's to be careful of.
Mr. DiGi

Google Code Blog: Introducing Closure Tools - 1 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.
1 - 20 of 321 Next › Last »
Showing 20 items per page
Join this group