Moodle JavaScript. Using AMD with RequireJS. Daniel Thee Roperto.
|
|
- Edmund Fleming
- 6 years ago
- Views:
Transcription
1 Moodle JavaScript Using AMD with RequireJS Daniel Thee Roperto
2 Why JavaScript? HTML CSS information presentation JavaScript JSON behaviour more information
3 Moodle JavaScript Cache First thing to blame! Get rid of it by purging caches Or just disable JavaScript caching
4 Grunt Remember to run grunt Better: leave grunt watching CI should check grunt
5 Inline JavaScript <script> <progress id="js-test" max="10" value="0"></progress> <script> var elem = document.getelementbyid('js-test'); // var elem elem is undefined! = document.getelementbyid('js-test'); </script> elem.onclick = function () { <progress this.value++; id="js-test" max="10" value="0"></progress> </script> Bad practice (or maybe not) The simplest way It runs immediately
6 External JavaScript file <progress id="js-test" max="10" value="0"></progress> <script src="progress.js"></script> // progress.js var elem = document.getelementbyid('js-test'); elem.onclick = function () { this.value++; Separates JavaScript from HTML Easier to maintain Runs at the position of the <script> May affect browser performance In general, put as close as possible from the </body>
7 Moodle external JavaScript file $PAGE->requires->js('/local/js/progress.js'); //...?> <progress id="js-test" max="10" value="0"></progress> <progress id="js-test" max="10" value="0"></progress> <! > <script type="text/javascript" src=" </script> <!-- JS code is minified... --> <!-- placed very close to... --> </body>
8 That s all I need! Give it a KISS, commit && push && go home!
9 Right, I need jquery! Uncaught TypeError: $ is not a function
10 Using jquery require( ['jquery'], function ($) { $('#js-test').on('click', function () { this.value++; } );
11 Require is Asynchronous window.console.log('started.'); require( ['jquery'], function ($) { window.console.log('running.'); ); } window.console.log('finished.');
12 What is AMD? AMD = Asynchronous Module Definition It will load modules when it is needed When loaded, it will run the callback giving them as parameters RequireJS is not the only AMD framework But it the chosen one (by Moodle, at least)
13 What is RequireJS? Is an AMD loader Not only for browsers Moodle defines a list of modules Loads the module only when a script requires it Can be used to create new modules.
14 Cool, I want to make one! define( 'my_progress', ['jquery'], function ($) { function clicked() { this.value++; } $('#js-test').on('click', clicked); ); } return 'my_progress defined!'; require(['jquery', 'my_progress'], function ($, p) { // p = 'my_progress defined!'
15 $ grunt watch Running "watch" task Waiting... AMD in Moodle >> File changed. >> 1 file created. Running "watch" task Waiting... // amd/src/basic-progress.js define(['jquery'], function ($) { var elements = $('<progress id="js-progress" max="100"></progress>'); $('div[role="main"]').append(elements); return elements[0]; // require-amd.js require(['local_js/basic-progress'], function (progress) { progress.value = 50; // Moodle Page $PAGE->requires->js('/local/js/require-amd.js');
16 Moodle js_amd_inline // amd/src/basic-progress.js define(['jquery'], function ($) { var elements = $('<progress id="js-progress" max="100"></progress>'); $('div[role="main"]').append(elements); return elements[0]; // require-amd.js Moodle <script> Page require(['local_js/basic-progress'], function (progress) { $PAGE->requires->js_amd_inline('require(["local_js/basic-progress"]);'); require(["local_js/basic-progress"], function (progress) { progress.value = 50; $PAGE->requires->js_amd_inline(' progress.value = 50; require(["local_js/basic-progress"], function (progress) { progress.value = 50; // require is not defined </script> '); // Moodle Page // $PAGE->requires->js('/local/js/require-amd.js'); Ugly, but works.
17 Moodle js_call_amd // amd/src/object-progress.js define(['jquery'], function ($) { var elements = $('<progress id="js-progress" max="100"></progress>'); $('div[role="main"]').append(elements); return { element: elements[0], initialise: function (initialvalue) { this.element.value = initialvalue; } // Moodle Page... $PAGE->requires->js_call_amd( 'local_js/object-progress', 'initialise', array(50) );
18 AMD Coding Styles No right or wrong, just suggestions... Find your own style
19 Literal Object AMD define(['jquery'], function ($) { return { pageid: null, progresselement: null, initialise: function (pageid) { this.pageid = pageid; this.progresselement = this.createprogresselement(); this.loadinitialprogress(); }, createprogresselement: function () { var id = 'js-progress_' + this.pageid; var elements = $('<progress id="' + id + '" max="100"></progress>'); $('div[role="main"]').append(elements); return elements[0]; }, loadinitialprogress: function () { // Fetch from WebService using pageid... var progress = Math.random() * 100; this.setprogress(progress); }, setprogress: function (value) { this.progresselement.value = value; // this.save(); }
20 Anonymous Object AMD define(['jquery'], function ($) { var progress = { progress.pageid = null; // Other fields... progress.initialise = function (pageid) { this.pageid = pageid; this.progresselement = this.createprogresselement(); this.loadinitialprogress(); // Other methods... return progress;
21 Singleton AMD define(['jquery'], function ($) { function Progress() { this.pageid = null; this.progresselement = null; } Progress.prototype.initialise = function (pageid) { this.pageid = pageid; this.progresselement = this.createprogresselement(); this.loadinitialprogress(); Progress.prototype.createProgressElement = function () { var id = 'js-progress_' + this.pageid; var elements = $('<progress id="' + id + '" max="100"></progress>'); $('div[role="main"]').append(elements); return elements[0]; Progress.prototype.loadInitialProgress = function () { // Fetch from WebService using pageid... var progress = Math.random() * 100; this.setprogress(progress); Progress.prototype.setProgress = function (value) { this.progresselement.value = value; // this.save(); return new Progress();
22 Class AMD define(['jquery'], function ($) { function Progress(pageid) { this.pageid = pageid; this.progresselement = this.createprogresselement(); this.loadinitialprogress(); } Progress.initialise = function () { // Perform any general initialisation. Progress.prototype.createProgressElement = function () { var id = 'js-progress_' + this.pageid; var elements = $('<progress id="' + id + '" max="100"></progress>'); $('div[role="main"]').append(elements); return elements[0]; Progress.prototype.loadInitialProgress = function () { // Fetch from WebService using pageid... var progress = Math.random() * 100; this.setprogress(progress); // Moodle Page... $PAGE->requires->js_amd_inline(' Progress.prototype.setProgress = function (value) { this.progresselement.value = value; // this.save(); return Progress; require(["local_js/class-progress"], function (Progress) { for (let id=1; id<=5; id++) { new Progress(id); } ');
23 Define vs. Require // A define creates a module, but does not load/run it. define('module_alpha', function () { window.console.log('module_alpha'); return 'ALPHA'; // Even if it requires another module, it will not load/run it. define('module_bravo', ['module_alpha'], function (alpha) { window.console.log('module_bravo with: ' + alpha); return 'BRAVO'; // No output so far. require(['module_bravo']); // This will load and "run" both of them. // module_alpha // module_bravo with: ALPHA // Note a require can be used to initialise the module, it does not need a callback.
24
25 Thank you! Questions? Ask now or me later... Daniel Thee Roperto
Creative Techniques for Loading Web Pages Faster
low hanging fruit vs. micro-optimization Creative Techniques for Loading Web Pages Faster Trevor Parscal - Roan Kattouw - @trevorparscal @catrope People Roan robot Trevor human People Back-end Front-end
More informationRequireJS Javascript Modules for the Browser. By Ben Keith Quoin, Inc.
RequireJS Javascript Modules for the Browser By Ben Keith Quoin, Inc. Traditional Browser JS One global namespace Often inline JS code embedded directly in HTML Many tags with hidden ordering
More informationJavaScript CS 4640 Programming Languages for Web Applications
JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation
More informationJavaScript CS 4640 Programming Languages for Web Applications
JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation
More informationContents. Demos folder: Demos\14-Ajax. 1. Overview of Ajax. 2. Using Ajax directly. 3. jquery and Ajax. 4. Consuming RESTful services
Ajax Contents 1. Overview of Ajax 2. Using Ajax directly 3. jquery and Ajax 4. Consuming RESTful services Demos folder: Demos\14-Ajax 2 1. Overview of Ajax What is Ajax? Traditional Web applications Ajax
More informationUI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML
UI Course (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) HTML: Introduction The World Wide Web (WWW) and history of HTML Hypertext and Hypertext Markup Language Why HTML Prerequisites Objective
More informationHuman-Computer Interaction Design
Human-Computer Interaction Design COGS120/CSE170 - Intro. HCI Instructor: Philip Guo Lab 6 - Connecting frontend and backend without page reloads (2016-11-03) by Michael Bernstein, Scott Klemmer, and Philip
More informationExecutive Summary. Performance Report for: The web should be fast. Top 1 Priority Issues. How does this affect me?
The web should be fast. Executive Summary Performance Report for: http://instantwebapp.co.uk/8/ Report generated: Test Server Region: Using: Fri, May 19, 2017, 4:01 AM -0700 Vancouver, Canada Firefox (Desktop)
More informationLearn Web Development CodersTrust Polska course outline. Hello CodersTrust! Unit 1. HTML Structuring the Web Prerequisites Learning pathway.
Learn Web Development CodersTrust Polska course outline Hello CodersTrust! Syllabus Communication Publishing your work Course timeframe Kick off Unit 1 Getting started with the Web Installing basic software
More informationTypeScript coding JavaScript without the pain
TypeScript coding JavaScript without the pain @Sander_Mak Luminis Technologies INTRO @Sander_Mak: Senior Software Engineer at Author: Dutch Java Magazine blog @ branchandbound.net Speaker: AGENDA Why TypeScript?
More informationFrontend II: Javascript and DOM Programming. Wednesday, January 7, 15
6.148 Frontend II: Javascript and DOM Programming Let s talk about Javascript :) Why Javascript? Designed in ten days in December 1995! How are they similar? Javascript is to Java as hamster is to ham
More informationAdapt Learning: Adapt Framework Concept and Vision
Adapt Learning: Adapt Framework Concept and Vision Document control Abstract: Author: Describes the concept of the Adapt Framework Sven Laux, Daryl Hedley, Paul Welch Version: 1.0 Date: 27 / 11 / 2013
More informationExecutive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?
The web should be fast. Executive Summary Performance Report for: https://designmartijn.nl/ Report generated: Test Server Region: Using: Sun, Sep 30, 2018, 7:29 AM -0700 Vancouver, Canada Chrome (Desktop)
More informationMEAN Stack. 1. Introduction. 2. Foundation a. The Node.js framework b. Installing Node.js c. Using Node.js to execute scripts
MEAN Stack 1. Introduction 2. Foundation a. The Node.js framework b. Installing Node.js c. Using Node.js to execute scripts 3. Node Projects a. The Node Package Manager b. Creating a project c. The package.json
More informationSingle-Page JavaScript Apps
Single-Page JavaScript Apps with RequireJS and Backbone.js Mihai Bîrsan Who is this guy? Mihai Bîrsan Sr. Web Development Engineer Email Tools Team Amazon Development Center Romania We ve recently rebuilt
More informationEnterprise Web Development
Enterprise Web Development Yakov Fain, Victor Rasputnis, Anatole Tartakovsky, and Viktor Gamov Beijing Cambridge Farnham Koln Sebastopol Tokyo O'REILLY Table of Contents Preface Introduction xi xxiii Part
More informationExecutive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?
The web should be fast. Executive Summary Performance Report for: http://www.ksero24h.pl/ Report generated: Test Server Region: Using: Sun, Sep 23, 2018, 9:13 AM -0700 Vancouver, Canada Chrome (Desktop)
More informationOutline. Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages
JavaScript CMPT 281 Outline Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages Announcements Layout with tables Assignment 3 JavaScript Resources Resources Why JavaScript?
More informationCOURSE OUTLINE MOC 20480: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3
COURSE OUTLINE MOC 20480: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3 MODULE 1: OVERVIEW OF HTML AND CSS This module provides an overview of HTML and CSS, and describes how to use Visual Studio 2012
More informationFrontend UI Training. Whats App :
Frontend UI Training Whats App : + 916 667 2961 trainer.subbu@gmail.com What Includes? 1. HTML 5 2. CSS 3 3. SASS 4. JavaScript 5. ES 6/7 6. jquery 7. Bootstrap 8. AJAX / JSON 9. Angular JS 1x 10. Node
More informationCIW 1D CIW JavaScript Specialist.
CIW 1D0-635 CIW JavaScript Specialist http://killexams.com/exam-detail/1d0-635 Answer: A QUESTION: 51 Jane has created a file with commonly used JavaScript functions and saved it as "allfunctions.js" in
More informationSparrow Client (Front-end) API
Sparrow Client (Front-end) API Service API Version 3.6.0 (Build 8062) Released May 2017 Revision History Date Revision Comments Author 2017-05-22 1.0 Initial document Ilya Tretyakov 2 Table of Contents
More informationThe course is supplemented by numerous hands-on labs that help attendees reinforce their theoretical knowledge of the learned material.
Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc WA2442 Introduction to JavaScript Objectives This intensive training course
More informationExecutive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?
The web should be fast. Executive Summary Performance Report for: http://idwebcare.nl/ Report generated: Test Server Region: Using: Tue, Aug 29, 2017, 5:08 AM -0700 Vancouver, Canada Firefox (Desktop)
More informationMultiple Choice Question Generator on Gitlab Markdown Wiki
Multiple Choice Question Generator on Gitlab Markdown Wiki COURSE CODE: COMP4560 STUDENT: ZAIWO LIU U5542218 SUPERVISOR: DR ERIC MCCREATH Overview 1. Introduction Supervisor Background 2. Design 3. Implementation
More informationExecutive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues
The web should be fast. Executive Summary Performance Report for: http://magento-standard.eworld-accelerator.com Report generated: Test Server Region: Using: Tue, Sep 22, 2015, 11:12 AM +0200 London, UK
More informationJavaScript. What s wrong with JavaScript?
JavaScript 1 What s wrong with JavaScript? A very powerful language, yet Often hated Browser inconsistencies Misunderstood Developers find it painful Lagging tool support Bad name for a language! Java
More informationStandard 1 The student will author web pages using the HyperText Markup Language (HTML)
I. Course Title Web Application Development II. Course Description Students develop software solutions by building web apps. Technologies may include a back-end SQL database, web programming in PHP and/or
More information55249: Developing with the SharePoint Framework Duration: 05 days
Let s Reach For Excellence! TAN DUC INFORMATION TECHNOLOGY SCHOOL JSC Address: 103 Pasteur, Dist.1, HCMC Tel: 08 38245819; 38239761 Email: traincert@tdt-tanduc.com Website: www.tdt-tanduc.com; www.tanducits.com
More informationCompatibility via Modernizr
Compatibility via Modernizr Making web things fit their medium Stu Cox by / @stucoxmedia #McrFRED 27th June 2013 Manchester, UK com pat i bil i ty kәmˌpatɪˈbɪlɪti (abbr.: compat.) noun (pl. -i ties) a
More informationCGS 3066: Spring 2015 JavaScript Reference
CGS 3066: Spring 2015 JavaScript Reference Can also be used as a study guide. Only covers topics discussed in class. 1 Introduction JavaScript is a scripting language produced by Netscape for use within
More informationComprehensive AngularJS Programming (5 Days)
www.peaklearningllc.com S103 Comprehensive AngularJS Programming (5 Days) The AngularJS framework augments applications with the "model-view-controller" pattern which makes applications easier to develop
More informationclassjs Documentation
classjs Documentation Release 1.0 Angelo Dini December 30, 2015 Contents 1 Introduction 3 1.1 Why class.js............................................... 3 1.2 How to implement............................................
More informationQuick.JS Documentation
Quick.JS Documentation Release v0.6.1-beta Michael Krause Jul 22, 2017 Contents 1 Installing and Setting Up 1 1.1 Installation................................................ 1 1.2 Setup...................................................
More informationJavaScript. The Bad Parts. Patrick Behr
JavaScript The Bad Parts Patrick Behr History Created in 1995 by Netscape Originally called Mocha, then LiveScript, then JavaScript It s not related to Java ECMAScript is the official name Many implementations
More informationExecutive Summary. Performance Report for: https://edwardtbabinski.us/blogger/social/index. The web should be fast. How does this affect me?
The web should be fast. Executive Summary Performance Report for: https://edwardtbabinski.us/blogger/social/index Report generated: Test Server Region: Using: Analysis options: Tue,, 2017, 4:21 AM -0400
More informationPro JavaScript. Development. Coding, Capabilities, and Tooling. Den Odell. Apress"
Pro JavaScript Development Coding, Capabilities, and Tooling Den Odell Apress" Contents J About the Author About the Technical Reviewers Acknowledgments Introduction xv xvii xix xxi Chapter 1: Object-Oriented
More informationExecutive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?
The web should be fast. Executive Summary Performance Report for: http://ardrosscs.ie/ Report generated: Test Server Region: Using: Sat, May 6, 2017, 5:14 AM -0700 Vancouver, Canada Firefox (Desktop) 49.0.2,
More informationClient Side JavaScript and AJAX
Client Side JavaScript and AJAX Client side javascript is JavaScript that runs in the browsers of people using your site. So far all the JavaScript code we've written runs on our node.js server. This is
More informationSimple AngularJS thanks to Best Practices
Simple AngularJS thanks to Best Practices Learn AngularJS the easy way Level 100-300 What s this session about? 1. AngularJS can be easy when you understand basic concepts and best practices 2. But it
More informationExecutive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?
The web should be fast. Executive Summary Performance Report for: https://www.cookandlucas.com/ Report generated: Test Server Region: Using: Fri, Jul 20, 2018, 4:28 AM -0700 Vancouver, Canada Chrome (Desktop)
More informationJavaScript components
JavaScript components Contents 1. Functions and scope 2. Patterns 3. Drupal s JavaScript facilities 4. Debugging and Analyzing 1. Functions and Scope Functions Functions are first class entities Store
More informationREST AND AJAX. Introduction. Module 13
Module 13 REST AND AJAX Introduction > Until now we have been building quite a classic web application: we send a request to the server, the server processes the request, and we render the result and show
More informationExecutive Summary. Performance Report for: The web should be fast. Top 4 Priority Issues
The web should be fast. Executive Summary Performance Report for: https://www.wpspeedupoptimisation.com/ Report generated: Test Server Region: Using: Tue,, 2018, 12:04 PM -0800 London, UK Chrome (Desktop)
More informationTesting Javascript applications
Testing Javascript applications Irina Dumitrascu ruby & cofeescript dira.ro, @dira_geek_girl 23 August 2012 Why? Well And Every time you hit refresh & click to test And Every time you hit refresh & click
More informationPerformance Report for: Report generated: Tuesday, June 30, 2015, 3:21 AM -0700
The web should be fast. Executive Summary Performance Report for: http://smallbusinessfirststep.com/ Report generated: Tuesday, June 30, 2015, 3:21 AM -0700 Test Server Region: Vancouver, Canada Using:
More informationDatabases/JQuery AUGUST 1, 2018
Databases/JQuery AUGUST 1, 2018 Databases What is a Database? A table Durable place for storing things Place to easily lookup and update information Databases: The M in MVC What is a Database? Your Model
More informationJavaScript Introduction
JavaScript Introduction Web Technologies I. Zsolt Tóth University of Miskolc 2016 Zsolt Tóth (UM) JavaScript Introduction 2016 1 / 31 Introduction Table of Contents 1 Introduction 2 Syntax Variables Control
More informationAGENCE WEB MADE IN DOM
AGENCE WEB MADE IN DOM https://madeindom.com/ Création de site internet dans les DROM GUADELOUPE - MARTINIQUE GUYANE-MAYOTTE LA REUNION RAPPORT DE VITESSE SITE INTERNET The web should be fast. Executive
More informationJavaScript: The Basics
JavaScript: The Basics CISC 282 October 4, 2017 JavaScript A programming language "Lightweight" and versatile Not universally respected Appreciated in the web domain Adds programmatic functionality to
More informationImplementing Oath s CMP JS
Implementing Oath s CMP JS A Guide For Third Party Publishers - V1.1 Table of contents Implementing Oath s CMP JS A Guide For Third Party Publishers - V1.1........ 1 What s new in this version?...............................
More informationiframe programming with jquery jquery Summit 2011
iframe programming with jquery jquery Summit 2011 who invited this guy? name s ben strange last name work at disqus co-author, Third-party JavaScript disqus? dis cuss dĭ-skŭs' third-party commenting platform
More informationWhy Use A JavaScript Library?
Using JQuery 4 Why Use A JavaScript Library? Okay, first things first. Writing JavaScript applications from scratch can be difficult, time-consuming, frustrating, and a real pain in the, ahem, britches.
More informationExecutive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?
The web should be fast. Executive Summary Performance Report for: http://paratiboutique.com.br/ Report generated: Test Server Region: Using: Wed, Mar 7, 2018, 11:36 AM -0800 Vancouver, Canada Chrome (Desktop)
More informationBrief Intro to Firebug Sukwon Oh CSC309, Summer 2015
Brief Intro to Firebug Sukwon Oh soh@cs.toronto.edu CSC309, Summer 2015 Firebug at a glance One of the most popular web debugging tool with a colleccon of powerful tools to edit, debug and monitor HTML,
More informationPubNub Training Webinar. Introduction to PubNub JavaScript SDK
PubNub Training Webinar Introduction to PubNub JavaScript SDK Course Agenda Participation What is PubNub? JavaScript API Resources Upcoming Events Q & A What is PubNub? Globally distributed Realtime Data
More informationjquery Tutorial for Beginners: Nothing But the Goods
jquery Tutorial for Beginners: Nothing But the Goods Not too long ago I wrote an article for Six Revisions called Getting Started with jquery that covered some important things (concept-wise) that beginning
More informationAJAX: Introduction CISC 282 November 27, 2018
AJAX: Introduction CISC 282 November 27, 2018 Synchronous Communication User and server take turns waiting User requests pages while browsing Waits for server to respond Waits for the page to load in the
More informationAJAX Programming Chris Seddon
AJAX Programming Chris Seddon seddon-software@keme.co.uk 2000-12 CRS Enterprises Ltd 1 2000-12 CRS Enterprises Ltd 2 What is Ajax? "Asynchronous JavaScript and XML" Originally described in 2005 by Jesse
More informationOn the Change in Archivability of Websites Over Time
Old Dominion University ODU Digital Commons Computer Science Presentations Computer Science 9-23-2013 On the Change in Archivability of Websites Over Time Mat Kelly Old Dominion University Justin F. Brunelle
More informationExecutive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?
The web should be fast. Executive Summary Performance Report for: http://www.element-roofing.com/ Report generated: Test Server Region: Using: Wed, Nov 2, 2016, 10:31 PM -0700 Vancouver, Canada Firefox
More informationHi I m Jamund and I love ES6 and I m giving this talk.
ES6 for Everyone Hi I m Jamund and I love ES6 and I m giving this talk. Why are you here?» Node.js People?» UI Engineers?» Designers?» Web Devs?» Non-technical folks? A LITTLE HISTORY OF JavaScript JavaScript
More informationClient vs Server Scripting
Client vs Server Scripting PHP is a server side scripting method. Why might server side scripting not be a good idea? What is a solution? We could try having the user download scripts that run on their
More informationDiscovery Service Infrastructure for Test- bädden
Discovery Service Infrastructure for Test- bädden för EID 2.0 Implementation guidelines Version 0.70 2013-04-24 This document describes the discovery service infrastructure for testbädden for EID 2.0 and
More informationJavaScript Programming
JavaScript Programming Course ISI-1337B - 5 Days - Instructor-led, Hands on Introduction Today, JavaScript is used in almost 90% of all websites, including the most heavilytrafficked sites like Google,
More informationCS Final Exam Review Suggestions - Spring 2018
CS 328 - Final Exam Review Suggestions p. 1 CS 328 - Final Exam Review Suggestions - Spring 2018 last modified: 2018-05-03 Based on suggestions from Prof. Deb Pires from UCLA: Because of the research-supported
More informationDDR & jquery More than just hover & dropdown
DDR & jquery More than just hover & dropdown Lee Wise / Front End Developer @theleewise 10 Pound Gorilla Team Everything DNN Everything Else Skins Modules Development Consulting Internet Marketing Web
More informationKonaKart Shopping Widgets. 3rd January DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK
KonaKart Shopping Widgets 3rd January 2018 DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK Introduction KonaKart ( www.konakart.com ) is a Java based ecommerce platform
More informationReact & Redux in Hulu. (Morgan Cheng)
React & Redux in Hulu (Morgan Cheng) About Me @morgancheng About Hulu Challenges System Complexity Legacy code in jquery & Backbone UI non-predictable Lack of component isolation Performance Bottleneck
More informationCSC 337. JavaScript Object Notation (JSON) Rick Mercer
CSC 337 JavaScript Object Notation (JSON) Rick Mercer Why JSON over XML? JSON was built to know JS JSON JavaScript Object Notation Data-interchange format Lightweight Replacement for XML It's just a string
More informationIntroduction to JavaScript p. 1 JavaScript Myths p. 2 Versions of JavaScript p. 2 Client-Side JavaScript p. 3 JavaScript in Other Contexts p.
Preface p. xiii Introduction to JavaScript p. 1 JavaScript Myths p. 2 Versions of JavaScript p. 2 Client-Side JavaScript p. 3 JavaScript in Other Contexts p. 5 Client-Side JavaScript: Executable Content
More informationDesign Document V2 ThingLink Startup
Design Document V2 ThingLink Startup Yon Corp Andy Chen Ashton Yon Eric Ouyang Giovanni Tenorio Table of Contents 1. Technology Background.. 2 2. Design Goal...3 3. Architectural Choices and Corresponding
More informationModular JavaScript. JC Franco. Blake Stearman
Modular JavaScript JC Franco Blake Stearman console.log("hello world"); JC Franco @arfncode jcfranco Blake Stearman @cthru BlakeStearman The Story of an App We ve all been here. Start small Add features
More informationCss Manually Highlight Current Link Nav Link
Css Manually Highlight Current Link Nav Link way to automatically highlight the "current" link. And I can manually add the following CSS to each page to get them highlighted, but I want to avoid added.
More informationCatbook Workshop 1: Client Side JS. Danny Tang
Catbook Workshop 1: Client Side JS Danny Tang Previously... Some frontend - Profile page - Nav bar - Stories feed page Techniques - DOM manipulation with JS In this workshop... More frontend - Stories
More informationEnGiNeErInG HtMl5 applications for better performance
EnGiNeErInG HtMl5 applications for better performance LaUrI SvAn @laurisvan Sc5 OnLiNe @sc5 HtMl5 expertise at your service GiVe me something that I can UsE 15 YeArS ReTrOsPeCtIvE of My PeRsOnAl GeAr 1000
More informationElegans Documentation
Elegans Documentation Release 0.1.0 Naoki Nishida April 29, 2014 Contents i ii CHAPTER 1 Description Elegans is a 3D plotting library written in JavaScript. With Elegans, you can generate charts in JavaScript,
More informationWeb Application Development
Web Application Development Produced by David Drohan (ddrohan@wit.ie) Department of Computing & Mathematics Waterford Institute of Technology http://www.wit.ie JavaScript JAVASCRIPT FUNDAMENTALS Agenda
More informationWorking with Javascript Building Responsive Library apps
Working with Javascript Building Responsive Library apps Computers in Libraries April 15, 2010 Arlington, VA Jason Clark Head of Digital Access & Web Services Montana State University Libraries Overview
More informationAdvanced JavaScript. Konstantin Käfer. Konstantin Käfer
Advanced JavaScript Contents 1. Why JavaScript? 2. Advanced Language Features 3. Patterns and Techniques 4. Debugging and Analyzing 1. Why JavaScript? Why JavaScript? Lightweight language No static type
More informationWebomania Solutions Pvt. Ltd. 2017
There are different types of Websites. To understand the types, one need to understand what is a website? What is a Website? A website is an online HTML Document, accessible publicly and it contains certain
More informationTools. SWE 432, Fall Design and Implementation of Software for the Web
Tools SWE 432, Fall 2016 Design and Implementation of Software for the Web Today Before we can really make anything, there s a bunch of technical stuff to get out of the way Tools make our lives so much
More informationSOASTA (mpulse )
SOASTA 55.1.2 (mpulse 7950.23.1022) August 7, 2015 Table of Contents SOASTA 55.1.2 (mpulse 7950.23.1022)... 1 SOASTA 55 (mpulse 7950.24.1)... 2 Features... 2 Bugs Fixed... 3 SOASTA 55.1.2 (mpulse 7950.23.1022)
More informationWelcome to CS50 section! This is Week 10 :(
Welcome to CS50 section! This is Week 10 :( This is our last section! Final project dates Official proposals: due this Friday at noon Status report: due Monday, Nov 28 at noon Hackathon: Thursday, Dec
More informationVarargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript
PHP Curriculum Module: HTML5, CSS3 & JavaScript Introduction to the Web o Explain the evolution of HTML o Explain the page structure used by HTML o List the drawbacks in HTML 4 and XHTML o List the new
More informationData Visualization (CIS 468)
Data Visualization (CIS 468) Web Programming Dr. David Koop Languages of the Web HTML CSS SVG JavaScript - Versions of Javascript: ES6/ES2015, ES2017 - Specific frameworks: react, jquery, bootstrap, D3
More informationWebGL A quick introduction. J. Madeira V. 0.2 September 2017
WebGL A quick introduction J. Madeira V. 0.2 September 2017 1 Interactive Computer Graphics Graphics library / package is intermediary between application and display hardware Application program maps
More informationCSS & Troubleshooting IE6
CSS & Troubleshooting IE6 KIMBERLY BLESSING W EB DEVELOPER & MANAGER COMCAST INTERACTIVE MEDIA PHILADELPHIA, PA The CSS Summit July 18, 2009 Like Netscape 4 in 2000, IE6 is perceived to be holding back
More informationJquery Ajax Json Php Mysql Data Entry Example
Jquery Ajax Json Php Mysql Data Entry Example Then add required assets in head which are jquery library, datatable js library and css By ajax api we can fetch json the data from employee-grid-data.php.
More informationJavaScript: the language of browser interactions. Claudia Hauff TI1506: Web and Database Technology
JavaScript: the language of browser interactions Claudia Hauff TI1506: Web and Database Technology ti1506-ewi@tudelft.nl Densest Web lecture of this course. Coding takes time. Be friendly with Codecademy
More informationBuild Native-like Experiences in HTML5
Developers Build Native-like Experiences in HTML5 The Chrome Apps Platform Joe Marini - Chrome Developer Advocate About Me Joe Marini Developer Relations Lead - Google Chrome google.com/+joemarini @joemarini
More informationExecutive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues
The web should be fast. Executive Summary Performance Report for: http://wkladki.net/porady/jak-usunac-zarysowa Report generated: Test Server Region: Using: Fri, Jan 22, 2016, 4:30 PM -0800 Vancouver,
More informationIntroduction to Web Development
Introduction to Web Development Lecture 1 CGS 3066 Fall 2016 September 8, 2016 Why learn Web Development? Why learn Web Development? Reach Today, we have around 12.5 billion web enabled devices. Visual
More informationIndiana Nimphius and the JavaScript Temple of Doom
Indiana Nimphius and the JavaScript Temple of Doom Frank Nimphius, Senior Principal Product Manager Oracle Mobility PlaLorm November, 2016 Copyright 2016 Oracle and/or its affiliates. All rights reserved.
More informationthis is a cat CS50 Quiz 1 Review
CS50 Quiz 1 Review this is a cat CS50 Quiz 1 Review JavaScript CS50 Quiz 1 Review first, recall from zamyla Remember, PHP is run server-side. The HTML output of this PHP code is sent to the user. Server
More informationCopyright Descriptor Systems, Course materials may not be reproduced in whole or in part without prior written consent of Joel Barnum
Ajax The notion of asynchronous request processing using the XMLHttpRequest object has been around for several years, but the term "AJAX" was coined by Jesse James Garrett of Adaptive Path. You can read
More informationJavaScript on the Command Line & PRATIK PATEL CTO TripLingo Labs
JavaScript on the Command Line & Server @prpatel TripLingo Labs PRATIK@mypatelspace.com Topics Modern JavaScript Why? Ecosystem Node Grunt Yesterday s JavaScript Today s JavaScript is cool What s changed?
More informationJavaScript Lecture 1
JavaScript Lecture 1 Waterford Institute of Technology May 17, 2016 John Fitzgerald Waterford Institute of Technology, JavaScriptLecture 1 1/31 Javascript Extent of this course A condensed basic JavaScript
More informationSo, if you receive data from a server, in JSON format, you can use it like any other JavaScript object.
What is JSON? JSON stands for JavaScript Object Notation JSON is a lightweight data-interchange format JSON is "self-describing" and easy to understand JSON is language independent * JSON uses JavaScript
More informationExecutive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?
The web should be fast. Executive Summary Performance Report for: http://atlantek.net/ Report generated: Test Server Region: Using: Sat, May 13, 2017, 8:24 AM -0700 Vancouver, Canada Firefox (Desktop)
More information