Mootools (Revision 83)

Total Page:16

File Type:pdf, Size:1020Kb

Mootools (Revision 83) Mootools (revision 83) http://mootools.net/ Array.js Element.js Dom.js Fx.js Fxpack.js Json.js Array Element Element Fx.Base Fx.Scroll(el, options) Json forEach(fn, bind o) intialize(tagname s) getElements(selector) options = { down() toString(json o) each = forEach injectBefore(el) getElement(selector) onStart: fn, up() evaluate(s) onComplete: fn, copy() injectAfter(el) getElementsBySelector(s) Fx.Slide(el, options) remove(s) injectInside(el) transition: Fx.Transition, Tips.js options = { test(s) adopt(el) Elements duration: (500) ms, Tips(els, options) action({event:fn, ...}) mode: (‘vertical’)||’horizontal’ extend(a) remove() unit: (‘px’)||’em’||’%’, options = { } associate([ ]) clone() Utility Functions wait: (true)||false, transitionStart: Fx.Transitions, replaceWith(el) $S(selector s, s, ...) fps: (30) n hide() transitionEnd: Fx.Transitions, Utility Functions appendText(s) $$() = $S } show() maxTitleChars: (30) n, $A(a) = Array.copy hasClass(s) $E(selector s, el) set(to n) toggle() fxDuration: (150) ms, Function.js addClass(s) #ES(selector s, el) custom(from n, to n) Fx.Color(el, options) maxOpacity: (1) n, removeClass(s) document clearTimer() custom(fromHex s, toHex s) timeOut: (100) ms, Function toggleClass(s) .getElementsByClassName(s) className: s pass([args,...], bind o) Fx.Style(el, property, options) fromColor(hex s) setStyle(property, value) toColor(hex s) } bind(o) setStyles({prop:value,..}||s) Drag.js hide() bindAsEventListener(o) setOpacity(n) goTo(n) Fxutils.js Window.js delay(ms, bind o) getStyle(property) Drag.Base(el, xM, yM, options) periodical(ms, bind o) options = { Fx.Styles(el, options) Fx.Height, Fx.Width, Window addEvent(event, f) custom({prop:[start, end],...}) Fx.Opacity(el, options) removeEvent(event, f) handle: el, disableImageCache() toggle() Utility Functions getPrevious() onStart: fn, Element getWidth() $clear(timer) show() getFirst() onComplete: fn, effect() = Fx.Style getHeight() $type(o) getNext() onDrag: fn, effects() = Fx.Styles Fxtransitions.js getScrollHeight() Chain getLast() xMax:n, xMin:n, Fx.Transitions getScrollWidth() setProperty(prop, value) yMax:n, yMin:n linear, sineInOut Fx.Transitions getScrollTop() chain(fn) linear, quadIn, quadOut, setProperties({prop:val,...}) } getScrollLeft() callChain() quadInOut, cubicIn, cubicOut, setHTML(html) onDomReady(fn) clearChain() Drag.Move(el, options) Ajax.js cubicInOut, quartIn, quartOut, getProperty(property) options = { quartInOut, quintIn, quinOut, String.js getTag() Ajax(url, options) Accordion.js snap: (true)||false, quintInOut, sineIn, sineOut, getTop() options = { String snapDistance: (8) n, sineInOut, expoIn, expoOut, Fx.Elements(el, options) test(pattern s, params s) getLeft() method: (‘post’)||’get’, custom({ onSnap: fn, expoInOut, circIn, circOut, toInt() getValue() xMod: (left) prop, postBody: s || o || Form el ’0’:{’prop’:[start, end],...}, circInOut, elasticIn, elasticOut, camelCase() yMod: (top) prop, async:(true)||false, ’1’:{’prop’:[start,end],...}, elasticInOut, backIn, backOut, capitalize() Utility Functions container: true||(false) onComplete:fn, ... }) backInOut, bounceIn, trim() $Element(el, method s, args) } onStateChange:fn, $(el|s) update: el, bounceOut, bounceInOut clean() Element Fx.Accordion(els, rgbToHex(returnArray b) evalScripts: true||(false) togglers els, options) makeDraggable(options) } hexToRgb(returnArray b) Sortables.js options = { Moo.js makeResizable(options) request() Sortables(els, options) getPosition() start: (‘open-first’)||’first-open’, Number Class evalScripts() options = { fixedHeight: (false) n, toInt() empty() handles: els, fixedWidth: (false) n, create(o) Object fxDuration: (250) ms, alwaysHide: true||(false), extend(o) toQueryString() fxTransition: Fx.Transitions, wait: true||(false), implement(o) Element maxOpacity: n, onActive: fn, send() Object (singleton) onStart: fn, onBackground: fn, extend(base o, other o) toQueryString() onComplete: fn, height: (true)||false, Native(o) contain: (true)||false opacity: (true)||false, } width: true||(false) } Cookie.js showThisHideOpen(index n) Cookie set(key s, value, days n) get(key s) remove(key s).
Recommended publications
  • Pragmatic Guide to Javascript
    www.allitebooks.com What Readers Are Saying About Pragmatic Guide to J a v a S c r i p t I wish I had o w n e d this book when I first started out doing JavaScript! Prag- matic Guide to J a v a S c r i p t will take you a big step ahead in programming real-world JavaScript by showing you what is going on behind the scenes in popular JavaScript libraries and giving you no-nonsense advice and back- ground information on how to do the right thing. W i t h the condensed years of e x p e r i e n c e of one of the best JavaScript developers around, it’s a must- read with great reference to e v e r y d a y JavaScript tasks. Thomas Fuchs Creator of the script.aculo.us framework An impressive collection of v e r y practical tips and tricks for getting the most out of JavaScript in today’s browsers, with topics ranging from fundamen- tals such as form v a l i d a t i o n and JSON handling to application e x a m p l e s such as mashups and geolocation. I highly recommend this book for anyone wanting to be more productive with JavaScript in their web applications. Dylan Schiemann CEO at SitePen, cofounder of the Dojo T o o l k i t There are a number of JavaScript books on the market today, b u t most of them tend to focus on the new or inexperienced JavaScript programmer.
    [Show full text]
  • THE FUTURE of SCREENS from James Stanton a Little Bit About Me
    THE FUTURE OF SCREENS From james stanton A little bit about me. Hi I am James (Mckenzie) Stanton Thinker / Designer / Engineer / Director / Executive / Artist / Human / Practitioner / Gardner / Builder / and much more... Born in Essex, United Kingdom and survived a few hair raising moments and learnt digital from the ground up. Ok enough of the pleasantries I have been working in the design field since 1999 from the Falmouth School of Art and onwards to the RCA, and many companies. Ok. less about me and more about what I have seen… Today we are going to cover - SCREENS CONCEPTS - DIGITAL TRANSFORMATION - WHY ASSETS LIBRARIES - CODE LIBRARIES - COST EFFECTIVE SOLUTION FOR IMPLEMENTATION I know, I know, I know. That's all good and well, but what does this all mean to a company like mine? We are about to see a massive change in consumer behavior so let's get ready. DIGITAL TRANSFORMATION AS A USP Getting this correct will change your company forever. DIGITAL TRANSFORMATION USP-01 Digital transformation (DT) – the use of technology to radically improve performance or reach of enterprises – is becoming a hot topic for companies across the globe. VERY DIGITAL CHANGING NOT VERY DIGITAL DIGITAL TRANSFORMATION USP-02 Companies face common pressures from customers, employees and competitors to begin or speed up their digital transformation. However they are transforming at different paces with different results. VERY DIGITAL CHANGING NOT VERY DIGITAL DIGITAL TRANSFORMATION USP-03 Successful digital transformation comes not from implementing new technologies but from transforming your organisation to take advantage of the possibilities that new technologies provide.
    [Show full text]
  • Qooxdoo Interview Questions and Answers Guide
    Qooxdoo Interview Questions And Answers Guide. Global Guideline. https://www.globalguideline.com/ Qooxdoo Interview Questions And Answers Global Guideline . COM Qooxdoo Job Interview Preparation Guide. Question # 1 What is Qooxdoo? Answer:- qooxdoo is an open source Ajax web application framework. It is an LGPL- and/or EPL-licensed multipurpose framework that includes support for professional JavaScript development, a graphical user interface (GUI) toolkit and high-level client-server communication. Read More Answers. Question # 2 Is qooxdoo freely available? Answer:- Yes. qooxdoo is Open Source, dual-licensed under LGPL/EPL, i.e. the "GNU Lesser General Public License (LGPL)" and the "Eclipse Public License (EPL)". As a recipient of qooxdoo, you may choose which license to receive the code under. Read More Answers. Question # 3 Who developed qooxdoo? Answer:- qooxdoo was initiated and is maintained by 1&1, the world's biggest web hosting company. There is a team of full-time core developers as well as many committers and contributors. Read More Answers. Question # 4 Which browsers are supported? Answer:- A qooxdoo application runs in all major web browsers - with identical look & feel. Read More Answers. Question # 5 Does qooxdoo come with a server? Answer:- No. If you already have an existing backend that serves HTTP (or HTTPS) requests, it's probably fine to continue using it. Optionally qooxdoo offers several RPC servers for an elegant client-server communication. BTW, during development of your client application the local file system often is sufficient, without the need to use a real server. Read More Answers. Question # 6 What languages and technologies do we need to know? Answer:- Not many.
    [Show full text]
  • Resources for Application Developers All of the Links Below Are External
    Resources for Application Developers All of the links below are external websites. You MUST verify that each resource, code snippet, tutorial, or library is fully accessible. These resources are not endorsed as fully accessible. HTML WCAG 2.0 Web Accessibility Wizard HTML Tutorials and More From W3Schools (HTML5, CSS, JavaScript, XML, AJAX, PHP, etc.) Web Standards Group (web coding resources) Scripts & Applets Web Accessibility Practices Quick Reference from Web-AIM Yahoo Accessibility Blog The 5 Layers of Web Accessibility Accessibility myths in 2010 .NET Building ASP.NET 2.0 Web Sites Using Web Standards Accessibility in Visual Studio and ASP.NET ASP.NET Controls and Accessibility Walkthrough: Creating an Accessible Web Application Accessibility at Microsoft Accessibility Developer Center - MSDN Java Java Accessibility Utilities Java SE Desktop Accessibility Java Access Bridge Java Accessibility API JLCA 3.0 - Java Accessibility (JAAPI) Swing Chapter 24. (Special topics) Accessibility JavaScript Web Semantics: Accessible JavaScript & CSS Accessible Image and Text Slideshow using JQuery Making AJAX work with Screen Readers Accessible JQuery Tabs Examples Usable and Accessible Form Validation and Error Recovery Understanding Progressive Enhancement Support Detection – simple checks on a browser’s JavaScript object support Creating Accessible JavaScript (Including Event Handlers) iCITA: Scripting Best Practices Progressive Enhancement: What It Is, And How To Use It? Slideshow With Buttons Replacing <noscript>
    [Show full text]
  • Ext-JS Job Interview Questions and Answers
    Ext-JS Job Interview Questions And Answers Interview Questions Answers https://interviewquestionsanswers.org/ About Interview Questions Answers Interview Questions Answers . ORG is an interview preparation guide of thousands of Job Interview Questions And Answers, Job Interviews are always stressful even for job seekers who have gone on countless interviews. The best way to reduce the stress is to be prepared for your job interview. Take the time to review the standard interview questions you will most likely be asked. These interview questions and answers on Ext-JS will help you strengthen your technical skills, prepare for the interviews and quickly revise the concepts. If you find any question or answer is incorrect or incomplete then you can submit your question or answer directly with out any registration or login at our website. You just need to visit Ext-JS Interview Questions And Answers to add your answer click on the Submit Your Answer links on the website; with each question to post your answer, if you want to ask any question then you will have a link Submit Your Question; that's will add your question in Ext-JS category. To ensure quality, each submission is checked by our team, before it becomes live. This Ext-JS Interview preparation PDF was generated at Saturday 6th February, 2021 You can follow us on FaceBook for latest Jobs, Updates and other interviews material. www.facebook.com/InterviewQuestionsAnswers.Org Follow us on Twitter for latest Jobs and interview preparation guides. https://twitter.com/InterviewQA If you need any further assistance or have queries regarding this document or its material or any of other inquiry, please do not hesitate to contact us.
    [Show full text]
  • Javascript for Web 2.0 Development Introduction
    "Web Age Speaks!" Webinar Series JavaScript for Web 2.0 Development Introduction Mikhail Vladimirov Director, Curriculum Architecture [email protected] Web Age Solutions Providing a broad spectrum of regular and customized training classes in programming, system administration and architecture to our clients across the world for over ten years ©WebAgeSolutions.com 2 Overview of Talk Overview of ECMAScript 6 release Hybrid Mobile Web Development Overview of Popular JavaScript libraries: jQuery AngularJS Modernizr _Underscore.js ©WebAgeSolutions.com 3 JavaScript for Web 2.0 Development Some JavaScript Facts Who Owns JavaScript Name The "JavaScript" name is a trademark now owned by Oracle Corporation (US Patent and Trademark Office, copyright entry #75026640). ©WebAgeSolutions.com 5 ECMAScript… JavaScript is un-related to Java It was originally designed by Netscape to add scripting to their browser. It was called 'LiveScript'. Re-naming it to JavaScript was a marketing trick to get more attention to it It is more of a “Lisp in C's Clothing” with elements of functional programming (http://javascript.crockford.com/javascript.html ) Each browser’s JavaScript engine is an attempt to implement ECMAScript standard (first draft in 1997) Well-known implementations are JavaScript, JScript and ActionScript ©WebAgeSolutions.com 6 ECMAScript Release 6 (Work in Progress) Classes and modules ( import {func1} from ‘js/mylib’ ) Better variable scoping (let for the new block scope) Multiple return values (return {x, y})
    [Show full text]
  • DOM: Document Object Model
    DOM: Document Object Model • browser presents an object interface – accessible from and modifiable by Javascript • DOM entities have methods, properties, events – element properties can be accessed & changed – elements can be added or removed • document object holds page contents – elements stored in a tree: HTML tags, attributes, text, code, ... – each element is accessible through the DOM – through functions called from Javascript • page is "reflowed" (smart redraw) when anything changes • window object also has methods, properties, events – alert(msg), prompt(msg), open(url), ... – size, position, history, status bar, ... – onload, onunload, ... – window.document: the document displayed Basic events on forms <head> <script> function setfocus() { document.srch.q.focus(); } </script> </head> <body onload='setfocus();'> <H1>Basic events on forms</H1> <form name=srch action="http://www.google.com/search?q="+srch.q.value> <input type=text size=25 id=q name=q value="" onmouseover='setfocus()'> <input type=button value="Google" name=but onclick='window.location="http://www.google.com/ search?q="+srch.q.value'> <input type=button value="Wikipedia" name=but onclick='window.location="http://en.wikipedia.com/ wiki/"+srch.q.value'> <input type=reset onclick='srch.q.value=""' > </form> More examples... • in a form: <form> <input type=button value="Hit me" onClick='alert("Ouch! That hurt.")'> <P> <input type=text name=url size=40 value="http://"> <input type=button value="open" onClick='window.open(url.value)'> <P> <input type=text name=url2 size=40 value="http://"> <input type=button value="load" onClick='window.location=url2.value'> <P> <input type=button value="color it " onClick='document.bgColor=color.value'> <input type=text name=color value='type a color'> <input type=button value='make it white' onClick='document.bgColor="white"'> </form> • in a tag <body onLoad='alert("Welcome to my page")'> • on an image <img src="smiley.jpg" onMouseover='src="frowny.gif"' onMouseout='src="smiley.jpg"'> • etc.
    [Show full text]
  • Mootools-1.2-Beginners-Guide.Pdf
    MooTools 1.2 Beginner's Guide Learn how to create dynamic, interactive, and responsive cross-browser web applications using one of the most popular JavaScript frameworks Jacob Gube Garrick Cheung BIRMINGHAM - MUMBAI This material is copyright and is licensed for the sole use by ALESSANDRO CAROLLO on 18th December 2009 6393 south jamaica court, , englewood, , 80111 MooTools 1.2 Beginner's Guide Copyright © 2009 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, Packt Publishing, nor its dealers or distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: December 2009 Production Reference: 1111209 Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK. ISBN 978-1-847194-58-9 www.packtpub.com Cover Image by Vinayak Chittar ([email protected])
    [Show full text]
  • Choosing the Best Javascript Framework
    Choosing the Best JavaScript Framework Andy Gup, Esri US Raul Jimenez, Esri ES Frameworks, frameworks, … Do I even need a framework?? Has.jsRaphael The Boiler BootstrapLess+ DojoWirefy Foundation 3 SenchaTitan Susy Skeleton Ingrid jQuery Less Phonegap X X 1991 2012 ECMA 5.1 ECMA 2015 June 2011 June 2015 JavaScript Frameworks & Libraries: Timeline MooTools Kendo Polymer 05/2014 script.aculo.us 09/2006 AngularJS UI 06/2005 2009 04/2014 Kartograph Ionic 08/2013 Phonegap jQuery 2013 2009 08/2006 Backbone Ember.js 10/2013 JavaScriptMVC Knockout 12/2011 YUI 05/2008 02/2006 7/2010 CMV 02/2013 Web Bootstrap AppBuilder Titanium Prototype 04/2011 07/2014 12/2008 2005 ExtJS Ractive 12/2007 08/2013 React native jQuery React.js 03/2015 Dojo Mobile 2013 08/2005 10/2010 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 Event-driven One-Page Discontinued Hybrid Geospatial Trends: Interest over time 2005 - 2007 2007 - 2012 2004 - 2012 Your Considerations • New project or expanding existing project? • Your project size (small, medium, large)? • Do you have existing build system? • Do you have existing frameworks? • Your teams skill sets? • Your requirements? Learning curve Evaluating a framework • Framework 3rd party sponsorship • Major version changes • Documentation • Stackoverflow questions Evaluating a framework Angular.js Mono Evaluating a framework Latest commit … Oct 6, 2011!!! Evaluating a framework Number of: • Closed issues • Open issues • Open pull requests • Contributors Evaluating a framework • Trendiness (cool factor) vs Stable/Secure
    [Show full text]
  • Appendix a Setting up a Local Web Server
    Appendix A Setting Up a Local Web Server It’ll be much easier for you to run the examples in this book if you run them on a local web server. One reason for this is because of a security sandboxing feature that Internet Explorer has for running HTML files that contain JavaScript in them; the other is to replicate the manner in which you will be using Dojo for a real website or web application. Although the Mac OS X operating system includes a built-in web server as do some versions of Windows, I will be going through, step-by-step, how to install a local web server that will serve HTML, JavaScript, and PHP files. You won’t be using the included web servers built into your operating system because of the complex configurations. Instead, you will be using a turnkey solution, one for the Mac called MAMP (which stands for Macintosh, Apache, MySQL, and PHP) or one for Windows known as XAMPP (the X is for the four operating systems it supports; the other letters stand for Apache, MySQL, PHP, and Perl). These two products are great because they give you an extremely easy and straightforward method for quickly setting up a local web server that not only supports serving static files such as HTML and JavaScript files but also supports PHP and database connectivity. The best thing about both of these tools is that they are completely free to download and use. If you are on Windows, you’ll want to skip the next section and jump to “XAMPP on Windows.” MAMP on Mac OS X The latest version of MAMP supports Snow Leopard (OS X 10.6) and older.
    [Show full text]
  • A Web Application Framework for Stage Final Report
    Swan A Web Application Framework for Stage Final Report Fred van den Driessche Imperial College June 14, 2010 Supervisor: Susan Eisenbach Second Marker: Tony Field ♠ Abstract Last year's release of Google Wave enforced an increasingly strong trend of feature-filled, highly inter- active Web applications with Web browsers acting as a thin client. The enhanced execution speed of JavaScript allows the creation of browser-based applications which rival traditional desktop applications in their responsiveness and usability. Such applications eschew rendering the entire page beyond the initial download instead relying on partial interface updates using data from background requests. How- ever, the development of such applications requires a very different style compared to traditional Web applications and varying implementations of JavaScript across browsers makes it hard for developers to create them. Established Web frameworks such as Django tend to focus on the creation of traditional Web applica- tions and often rely on third-party JavaScript libraries for the provision of highly interactive features. Google Web Toolkit concentrates on the creation of an interactive user interface but leaves the implementation of data storage to the user, while Lift provides an Actor-based solution to the problem of scaling to meet the server requirements for such interactivity. This report introduces Swan, a Web application framework based on Stage, a scalable, distributed, Actor language with clean, concise and expressive syntax. Swan uses these features to create a full MVC framework through which users can develop highly responsive, scalable Web applications in a single high-level language. Acknowledgements First and foremost I would like to thank Susan Eisenbach, without whom Swan would simply be an ugly duckling.
    [Show full text]
  • Introduction to The
    Libraries and APIs CMPT 281 Overview • Basics of libraries and APIs • Rich internet applications • Examples – Scriptaculous – JQuery What is a library? • A collection of software modules that provides services to another program • A way to extend the functionality of a programming language • A way to modularize software development Library A Application Library B What is an API? • “Application Programming Interface” • The set of functions or commands that is made available by a library Why libraries for web development? • To improve the interactive experience • Many tasks are difficult with just HTML/CSS – e.g., poor set of interface widgets – Libraries allow reuse of good solutions – “javascript libraries” • Many web services exist on the internet – External libraries with a different delivery model – e.g., Google Maps, Flickr, WeatherBug All libraries have an API JavaScript Libraries JavaScript Libraries Prototype www.prototypejs.org/ script.aculo.us script.aculo.us/ Yahoo! User Interface Library developer.yahoo.com/yui/ Dojo dojotoolkit.org/ jQuery jquery.com/ MooTools mootools.net/ Raphael raphaeljs.net What do JS libraries do? • Animation effects • User interface widgets • JS programming shortcuts • Graphics • AJAX – Asynchronous Javascript And XML • ...and more, depending on the library But, beware... • Libraries can make things more complex • They can change the way JS works • They may not be complete or well supported • They can be difficult to learn (examples!) • So, don’t depend on them! – e.g., only use plain JS on the final
    [Show full text]