Skip to main content

Home/ javascript/ Group items tagged function

Rss Feed Group items tagged

Ivan Pavlov

Javascript Window Library - 0 views

  • Mydows is a small library of javascript functions that sit above the Prototype Javascript library and aid in the creation and management of free floating windows contained within the webpage. Mydows will also work with the Scriptaculous library for added features.
Ivan Pavlov

Proto.Menu :: prototype based context menu - 0 views

  •  
    Proto.Menu is a simple and lightweight prototype-based solution for context menu functionality on your page
Ivan Pavlov

oni - structured concurrency - 0 views

  • Oni is a framework for managing the control flow of concurrent applications. There are two central ideas to Oni: To make concurrent actions composable by implementing 'pseudo-sequential' control structures with which asynchronous actions can be choreographed in the same way in which traditional sequential control structures are used to choreograph conventional synchronous actions. Ok, I'm not sure I even understand that myself. But please read on anyway :-) To leverage the facilities of a "host language" rather than implement a complete programming language from scratch. Oni can be implemented as a set of functions ("Oni operators") in a suitable host language, such as JavaScript or C++ (any reasonable language will do). Our current implementation, dubbed Oni/JS, is in JavaScript, targeted at in-browser use (should work in any modern browser - FF, Chrome, Safari, IE, ...). Oni requires no preprocessing or precompilation; an Oni program is a just an expression in the host language.
  •  
    Oni is a framework for managing the control flow of concurrent applications.
Javier Neira

The Dark side of JavaScript - Part 1 @ Milkshake Systems - 3 views

  • var foo = "foo"; // same as window.foo function doSomething() { bar = "bar"; // same as window.bar }
Eunikorn Imazinator

How to Monitor If an Image Loads Completed - HTML and Javascript Tips |JAVASCRIPT CODES - 0 views

  • imgDom.onreadystatechange
    • Eunikorn Imazinator
       
      cross browser way to deal with loading of single dom elements.  Note : this does not ensure that entire subsidiary dom tree has loaded and also it does not ensure that the event will be immediately fired if dom has already loaded.  Doing the same thing through JQuery :  $("..something..").load(function() { ... });
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; }
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.
« First ‹ Previous 41 - 51 of 51
Showing 20 items per page