Category: Prototype

1-15 of 340 // 1 2 3 4 ... 21 22 23 »
  1. Professional JavaScript Frameworks: Prototype,YUI, ExtJS, Dojo and ...

    Explore Article Web Design and Web Hosting (Aug 21 2010)

    Professional JavaScript Frameworks: Prototype,YUI, ExtJS, Dojo and MooTools New Mint Condition Dispatch same day for order received before 12.

    Comment on Article

  2. What's the equivilent code in Prototype?

    Explore Article reddit.com (Aug 11 2010)

    Sorry, I know this is lazy. I could probably work it out if I read the Prototype documentation. I only know jQuery but I have to use Prototype. What's the equilent code for this... $(document).ready(function(){ var pics = new Array(); $.get('http://theimben.tumblr.com/api/read?tagged=bgheader', function(data){ $(data).find('post').each(function(){ var pic = $(this).find('photo-url[max-width=500]').text(); pics.push(pic); }); $('body').css('backgroundImage', 'url(' + (pics[Math.floor(Math.random()*pics.length)]) + ')'); }); }); submitted by theimben [link] [comment]

    Comment on Article

  3. Namespacing and prototypal inheritance

    Explore Article reddit.com (Aug 3 2010)

    Hi /r/javascript, I need your help with a piece of code that looks like this: var NAMESPACE = { helpers: { log: function (m) { if (window.console) { console.log(m); } }, someOtherHelper: function () { // Etc… } }, defaults: { someParameter: 42, someOtherParameter: false // Etc… } }; NAMESPACE.someObject = function (initialValue) { var helpers = this.helpers; this.value = initialValue; }; NAMESPACE.someObject.prototype.someMethod = function () { /* * How can I access the NAMESPACE.helpers and NAMESPACE.defaults from here?! */ return this.value; }; var testObject = new NAMESPACE.someObject("test"); I've got two questions: Is that a proper way to do namespacing ...

    Comment on Article

  4. Inheritance Patterns in YUI 3

    Explore Article Yahoo! User Interface Blog (Jan 6 2010)

    Inheritance Patterns in YUI 3 About the Author: Stoyan Stefanov (@stoyanstefanov) is a front-end engineer at Yahoo! Search. He is also the architect of YSlow 2.0, co-creator of the smush.it image optimizer, speaker and technical writer. His latest book is called Object-Oriented JavaScript. This article discusses two JavaScript code reuse patters implemented in YUI 3 – the classical inheritance pattern [...]

    Comment on Article Mentions:   Douglas Crockford

  5. Prototype Function of the day: $$

    Explore Article reddit.com (Oct 17 2008)

    submitted by gst [link] [0 comments]

    Comment on Article

  6. Absolutize for jQuery

    Explore Article Carbon Five Community (Sep 11 2008)

    Published by james on September 11, 2008 in JavaScript / AJAX . Tags: jQuery. We’re using jQuery for one of our current projects. Today I found myself in an IE situation that could be solved by using the prototype librarie’s absolutize method. I couldn’t find any equivilent implementation that I liked in jQuery so I went ahead and ported absolutize from prototype to jquery

    Comment on Article

  7. Jquery Slider Help—Almost there?

    Explore Article Magento (Jul 20 2008)

    Hello everyone, First off, my skill levels with XHTML/CSS is solid, but I lack entirely in Javascript department. I can read it and modify only the simplest variables. Which is why I’m here: I’m currently working on Usmile.ca and have reached an obstacle I can’t seem to tackle… Excerpt from Firebug: [Exception "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMViewCSS.getComputedStyle]" nsresult "0x80004005 (NS_ERROR_FAILURE)" location "JS frame :: http://usmile.ca/js/proxy.p

    Comment on Article Mentions:   Javascript

  8. glider.js Example

    Explore Article The Whiny Nil (May 19 2007)

    Example View source for HTML & CSS used. Section 1 | Section 2 | Section 3 | Section 4 | Section 1 You can put any kind of HTML in here: Section 2 Style the sections however you want Section 3 I-frames? Yes, but only if scrollbars are hidden: Section 4 Flash? Sort-of works: Previous | Next Download Visit the project page to download or check out the source via SVN. Requirements This script uses the Prototype javascript framework and the effects.js library from Scriptaculous. You must include P

    Comment on Article Mentions:   Html & Css   Firefox

  9. Javascript map - filter - reduce using Prototype

    Explore Article reddit.com (Sep 6 2008)

    submitted by gst [link] [0 comments]

    Comment on Article

  10. Start/Stop Slider | Featured Content Slider | Ajaxmint - Endless ...

    Explore Article Ajaxmint (Feb 26 2010)

    jQuery ExtJS Frameworks Lightbox Mootools Scriptaculous. Copyright © Ajaxmint – Endless Ajax samples on jQuery, MooTools, ExtJS, Dojo, Prototype and PHP - Endless Ajax Resources. Powered by WordPress | Modern Style theme by FlexiThemes.

    Comment on Article

  11. Prototype 1.6.0 RC1: Changes to the Class and Event APIs, Hash rewrite, and bug fixes

    Explore Article Ajaxian (Oct 16 2007)

    Sam Stephenson has announced Prototype 1.6.0 RC1 which has "fixed a handful of bugs and made some changes to the Class and Event APIs in response to your feedback. Weve also addressed a long-standing issue with the Hash class." For example, they show how they changed from: PLAIN TEXT JAVASCRIPT: var Foo = Class.create(); Class.extend(Foo, { /* instance methods [...]

    Comment on Article Mentions:   Sam Stephenson

  12. Scaling UI controls appropriately on the mobile Web

    Explore Article Ajaxian (Jun 18 2010)

    Scaling UI controls appropriately on the mobile Web Using the mobile Web with modern devices that give you the “full Web” and allow you to zoom in and out on the page (if zooming hasn’t been turned off of course). Sam Stephenson (of Prototype and 37Signals fame) has taken on the problem of the sizing of controls. If you zoom out, normally, controls are [...]

    Comment on Article Mentions:   Sam Stephenson

  13. The Pragmatic Bookshelf | Prototype and script.aculo.us

    Explore Article The Pragmatic Bookshelf (Nov 7 2007)

    The Pragmatic Programmers Our Books | Resources | Discussions | Support | Login Prototype and script.aculo.us: You never knew JavaScript could do this! by Christophe Porteneuve Tired of getting swamped in the nitty-gritty of cross-browser, Web 2.0-grade JavaScript? Get back in the game with Prototype and script.aculo.us, two extremely popular JavaScript libraries, that make it a walk in the park

    Comment on Article Mentions:   Rails

  14. Semantic Constructors

    Explore Article Ajaxian (Jul 18 2008)

    PLAIN TEXT JAVASCRIPT: Class.create = (function(original) { var fn = function() { var result = original.apply(null, arguments); result.toString = function() { return result.prototype.initialize.toString() }; return result; }; fn.toString = function(){ return original.toString() }; return fn; })(Class.create); This monkey patch by kangax allows you to get sense from inspecting a constructor setup via Prototype. His code changes a [...]

    Comment on Article

  15. Closures VS. Properties / arguments.callee is expensive

    Explore Article reddit.com (Mar 4 2009)

    submitted by gst [link] [0 comments]

    Comment on Article

1-15 of 340 // 1 2 3 4 ... 21 22 23 »