General-Purpose Javascript Libraries

Total Page:16

File Type:pdf, Size:1020Kb

General-Purpose Javascript Libraries General-Purpose Javascript Libraries Steve Gardiner 16 April, 2013 A brief history of Javascript 1995 Brendan Eich hired by Netscape to implement "Mocha" ("Scheme in the Browser") in 10 days Upon reconsideration, they deliver the first version of LiveScript Renamed JavaScript by marketing to evoke Java (the cool language of the day) and Script-ing (i.e. amateurs could do it) 1996 Microsoft implements JScript, a copy of the Mozilla implementation which is completely faithful, down to the bugs 1998 ECMAscript 1.0 Characteristics of Javascript simple syntax, not unfamiliar to C/C++/java developers loose typing linguistically productive literal syntax (i.e. JSON) runs in the context of a response to an HTTP request Smalltalk Self Java Hypercard Scheme Prototypal First-class Functions; Syntax Events inheritance Closures Javascript Javascript as an Enduser language Web designers can and do write Javascript (often badly) and they copy it from one another So introducing libraries can improve the quality of code on the web but only if users adopt them ECMAScript is a standard, but anyone in the world can write and release a Javascript library Hypothesis The more used Javascript libraries will tend to exhibit qualities preferred by end users. Role of Javascript Libraries App Browser(s) Programming Javascript directly to the browser exposes many "low-level" concerns Cross-browser concerns Bandwidth concerns Lack of language features Role of Javascript Libraries App Browser(s) Lib Intermediary between code and the interpreter Akin to the role of the compiler in compiled languages (Some systems, e.g. Dart, do allow programmers to use a higher-level language and compile to JS) Large libraries must be downloaded before the application can use them High-Level Goals of Javascript Libraries Fix Javascript Fix the DOM including cross-browser issues with the DOM Fix HTML e.g. provide a richer set of widgets Fix HTTP i.e. support asynchronous loading of content Introduce best practices without re-training developers Some Examples of Javascript Libraries Class Poll WorldWide Usage 0 jQuery 0 MooTools 0 Prototype 0 YUI 0 None (wrote web-app w/o using a JS lib.) 0 Other Fix Javascript Problem: no support for classes (violates closeness of mapping heuristic for OO programmers) Solution in prototype // properties are directly passed to `create` method var Person = Class.create({ initialize: function(name) { this.name = name; }, say: function(message) { return this.name + ': ' + message; } }); // when subclassing, specify the class you want to inherit from var Pirate = Class.create(Person, { say: function($super, message) { return $super(message) + ', yarr!'; } }); var john = new Pirate('Long John'); john.say('ahoy matey'); // -> "Long John: ahoy matey, yarr!" Fix Javascript Problem: no include statement (forces programmers to address a hard mental operation, getting minimal dependency order right, and properly addressing bandwidth concerns) Instead, programmers reference script URLs in HTML, possibly impacting page performance Solution in YUI YUI().use('node', function(Y) { Y.one('#demo').setHTML("Whoa."); }); Fix the DOM Problem: browser DOM implementations are inconsistent (forces programmers to address a hard mental operation of writing cross-browser code) For example, in older versions of IE, event listeners are added with attachEvent rather than the ECMAscript standard addEventListener if (el.addEventListener) { el.addEventListener('click', modifyText, false); } else if (el.attachEvent) { el.attachEvent('onclick', modifyText); } Solution in jQuery -- new API that internally calls the appropriate native methods $(el).on("click", modifyText); Fix the DOM Problem: DOM provides rudimentary query operations (forces programmers to address a hard mental operation of decomposing a query into multiple steps) getElementById getElementsByTagName getElementsByClassName firstChild previousSibling nextSibling parentNode childNodes Solution in jQuery -- selectors follow CSS syntax (XPath also partially supported) $("#firstName"); $(".label"); $("#contents ul.people li"); Fix the DOM Problem: DOM provides rudimentary support for creating XML (e.g. for serialization) (forces programmers to address a hard mental operation of constructing documents in multiple steps) As with document querying, DOM supplies mehtods that create nodes of the tree one at a time Solution in prototype -- use JSON instead of XML var data = {name: 'Violet', occupation: 'character', age: 25 }; Object.toJSON(data); //-> '{"name": "Violet", "occupation": "character", "age": 25}' JSON support is native in JS 1.8.1+ modern browsers Fix the DOM Problem: DOM is not consistent with CSS CSS is declarative: the following rule applies to all li currently in the page, as well as any added subsequently li { color: red } Some naive JS developers expect that the following jQuery code works similarly $("li").on("click", function(event) { ... }); But in fact the jQuery code only (imperatively) adds event handlers to currently extant li elements. Initial jQuery solution: $("li").live("click", function(event) { ... }); jQuery 1.7+ solution: $(document).on("click", "li", function(event) { ... }); Fix HTML Problem: HTML provides only a small number of document- centric widgets (forces programmers to address a hard mental operation, getting the widgets right) Programmers must build richer widgets for themselves Solution in jQuery (UI) jQuery code Nunc tincidunt Proin dolor $(#tabs).tabs(); Fix HTTP Problem: We often want to update the page without re-loading all content through another HTTP request XMLHttpRequest is available in modern browsers, but it is difficult to use Solution from jQuery var jqxhr = $.get("example.php", function() { alert("success"); }); jqxhr.done(function() { alert("second success"); }); jqxhr.fail(function() { alert("error"); }); jqxhr.always(function() { alert("finished"); }); Try it Enforce Best Practices Problem: most (JS) programmers are bad programmers (forces programmers to address a hard mental operation, i.e. programming!) For example, the tabs on the previous slide are automatically enhanced with ARIA accessibility information, and thus work better with accessible browsers than a hand-coded variant <div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all"> <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist"> <li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="tabs-0" aria-labelledby="ui-id-1" aria-selected="true"><a href="#tabs-0" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-1">jQuery code</a></li> ... How libraries describe themselves jQuery MooTools fast, small, feature-rich compact Simplifies HTML document traversal and modular manipulation Object-Oriented Simplifies event handling and animation for intermediate to advanced JS developer Simplifies AJAX enables powerful, flexible, cross-browser across a multitude of browsers code versatile and extensible Elegant, well documented, coherent API Source: http://jquery.com/ Source: http://mootools.net/ Prototype YUI Introducing classes and inheritance Fast (lightweight core with modular Adding functionality to the DOM architecture) Ajax Complete (intuitive and well-documented JSON API) Event delegation Industrial Strength, with a thriving Measuring elements' dimensions and offsets community Source: http://prototypejs.org/learn/ Free & Open Source: http://yuilibrary.com/ Conclusions 66 64 62 jQuery 60 58 Why would you choose a JS library? 56 54 52 50 48 46 0 Team Familiarity / Previous 44 42 40 38 Mar 12 May 12 Jul 12 Sep 12 Nov 12 Jan 13 Mar 13 Implementation 4.2 4 3.8 MooTools 3.6 3.4 3.2 3 0 Cross Browser Compatibility 2.8 2.6 2.4 2.2 2 1.8 1.6 Mar 12 May 12 Jul 12 Sep 12 Nov 12 Jan 13 Mar 13 0 Modularity 3.4 3.3 3.2 prototype 3.1 3 2.9 2.8 2.7 2.6 2.5 2.4 2.3 2.2 0 Extensibility / Presence of Extensions 2.1 Mar 12 May 12 Jul 12 Sep 12 Nov 12 Jan 13 Mar 13 4.8 4.6 4.4 YUI 4.2 Improved API / Architecture 4 0 3.8 3.6 3.4 3.2 3 2.8 2.6 2.4 2.2 Feb 12Mar 12Apr 12May 12Jun 12 Jul 12Aug 12Sep 12Oct 12Nov 12Dec 12Jan 13Feb 13Mar 13Apr 13 0 Richer / Prettier Widgets 0 Other Fix Javascript Problem: no support for private variables Solution in JS, prototype (not solved directly AFAIK) // properties are directly passed to `create` method var Person = Class.create((function() { var name; // bound in the closure return { initialize: function(name1) { name = name1; }, say: function(message) { return name + ': ' + message; } }}())); // when subclassing, specify the class you want to inherit from var Pirate = Class.create(Person, { say: function($super, message) { return $super(message) + ', yarr!'; } }); var john = new Pirate('Long John'); john.say('ahoy matey'); // -> "Long John: ahoy matey, yarr!" (violates closeness of mapping heuristic, also maybe hard mental operation).
Recommended publications
  • Introduction to React.Js
    Introduction to React A workshop for COMP 523 Aaron Smith Monday, Feb. 10, 2020 What is React? • React is a JavaScript framework • Used for front end web development • Think of jQuery, but more structured • Created and used by Facebook • Famous for implementing a virtual dom Timeline of front-end JavaScript frameworks jQuery* AngularJS React Vue Angular (2006) (2010) (2013) (2014) (2014) * jQuery is more often considered a library than a framework Common tasks in front-end development App state Data definition, organization, and storage User actions Event handlers respond to user actions Templates Design and render HTML templates Routing Resolve URLs Data fetching Interact with server(s) through APIs and AJAX Fundamentals of React 1. JavaScript and HTML in the same file (JSX) 2. Embrace functional programming 3. Components everywhere JavaScript and HTML in the same file HTML CSS JS JSX CSS or JSS Traditional React approach approach JSX: the React programming language const first = "Aaron"; const last = "Smith"; const name = <span>{first} {last}</span>; const list = ( const listWithTitle = ( <ul> <> <li>Dr. David Stotts</li> <h1>COMP 523</h1> <li>{name}</li> <ul> </ul> <li>Dr. David Stotts</li> ); <li>{name}</li> </ul> </> ); “React is just JavaScript” Functional programming 1. Functions are “first class citizens” 2. Variables are immutable 3. Functions have no side effects Functional programming Functions are “first class citizens” let add = function() { console.log('Now adding numbers'); const five = 3 + 2; }; function foo() { return
    [Show full text]
  • Web Application Development Using TCL/Apache Rivet and Javascript Anne-Leslie Dean, Senior Software Developer, Flightaware Prese
    Web Application Development Using TCL/Apache Rivet and JavaScript Anne-Leslie Dean, Senior Software Developer, FlightAware Presented: 25th Annual TCL/Tk Conference, Oct 15-19, 2018 Introduction Modern Web applications rival native applications in user experience. This is accomplished by manipulating the Web document dynamically in the client browser environment. There are a many choices of scripting (language) environments a developer may choose to use on the web server: PHP, Python, Ruby, TCL etc. But on the client side, the JavaScript environment is the standard for programmatic control of the Web application. Apache Rivet provides a server environment to build Web applications using TCL. This case study will demonstrate the application of fundamental software design principles such as separation of concerns, abstraction, and encapsulation in a TCL/Apache Rivet environment with integrated JavaScript. The basic structure of the Rivet script will distinguish content management from presentation and will visibly identify a clear interface between the TCL/Apache Rivet and the JavaScript environments. Each step of the case study will conclude with an analysis of the software development principles being applied. Case Study Step 1: Framing Out The Rivet Script The distinguishing architectural feature of modern Web applications boils down to a simple model: a document template rendered against an abstracted data model. The code concerned with managing the abstracted data model is commonly referred to as content management. The code concerned with describing the document template is commonly referred to as presentation. The basic structure of an Apache Rivet script should always reinforce this Web application architectural distinction. This can be accomplished by applying the software principle of separation of concerns with respect to content management and presentation.
    [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]
  • Tripwire Ip360 9.0 License Agreements
    TRIPWIRE® IP360 TRIPWIRE IP360 9.0 LICENSE AGREEMENTS FOUNDATIONAL CONTROLS FOR SECURITY, COMPLIANCE & IT OPERATIONS © 2001-2018 Tripwire, Inc. All rights reserved. Tripwire is a registered trademark of Tripwire, Inc. Other brand or product names may be trademarks or registered trademarks of their respective companies or organizations. Contents of this document are subject to change without notice. Both this document and the software described in it are licensed subject to Tripwire’s End User License Agreement located at https://www.tripwire.com/terms, unless a valid license agreement has been signed by your organization and an authorized representative of Tripwire. This document contains Tripwire confidential information and may be used or copied only in accordance with the terms of such license. This product may be protected by one or more patents. For further information, please visit: https://www.tripwire.com/company/patents. Tripwire software may contain or be delivered with third-party software components. The license agreements and notices for the third-party components are available at: https://www.tripwire.com/terms. Tripwire, Inc. One Main Place 101 SW Main St., Suite 1500 Portland, OR 97204 US Toll-free: 1.800.TRIPWIRE main: 1.503.276.7500 fax: 1.503.223.0182 https://www.tripwire.com [email protected] TW 1190-04 Contents License Agreements 4 Academic Free License ("AFL") 5 Apache License V2.0 (ASL 2.0) 9 BSD 20 Boost 28 CDDLv1.1 29 EPLv1 30 FreeType License 31 GNU General Public License V2 34 GNU General Public License V3 45 IBM 57 ISC 62 JasPer 63 Lesser General Public License V2 65 LibTiff 76 MIT 77 MPLv1.1 83 MPLv2 92 OpenLDAP 98 OpenSSL 99 PostgreSQL 102 Public Domain 104 Python 108 TCL 110 Vim 111 wxWidgets 113 Zlib 114 Contact Information 115 Tripwire IP360 9.0 License Agreements 3 Contents License Agreements This document contains licensing information relating to Tripwire's use of free and open-source software with or within the Tripwire IP360 product (collectively, "FOSS").
    [Show full text]
  • “Web Development Using Python” 01 April 2021
    A Report on the Webinar “Web development using Python” 01 April 2021 Organized by ‘Anacron’, Students association of the Department of Computer Science and Engineering, Akshaya College of Engineering and Technology A webinar, “Web development using Python” was organized by the students’ association, ‘Anacron’ of the department of Computer Science and Engineering, on 1-4-21. A brief report of the same is given below. WELCOME ADDRESS: Welcome address was given by Dr. N. Rajkumar, HOD/CSE, ACET. INTRODUCTION OF CHIEF GUEST Ms. J. Rajichellam completed her UG degree B.E CSE in Madurai Institute of Engineering and Technology. She is having certificates of proficiency in C, C++, HTML5, CSS, Javascript, Jquery, etc.,. She is having more than 6 years of industrial experience and currently working as Technical trainer in Elysium Academy. CHIEF GUEST PRESENTATION: Ms. J. Rajichellam started her presentation with a brief note about the future for Web development using python and then explained about the career opportunities in Python. She also explained as to why students should be well versed in python. She also urged the students to have a goal for their career and for that they should envisage a plan. She opined that without a plan they can’t achieve success. She said, Web development is an umbrella term for conceptualizing, creating, deploying and operating web applications and application programming interfaces for the web. She basically gave explanation for three topics. 1. Why is web development important? The web has grown a mindboggling amount in the number of sites, users and implementation capabilities since the first website went live in 1989.
    [Show full text]
  • Download Ebook ^ Javascript: Ajax, Cross-Site Scripting, Couchdb
    W5CAMG0U1NWQ < PDF ^ JavaScript: Ajax, Cross-Site Scripting, CouchDB, WebKit, JQuery, Dojo Toolkit, Bookmarklet, ActionScript, V8,... JavaScript: A jax, Cross-Site Scripting, Couch DB, W ebKit, JQuery, Dojo Toolkit, Bookmarklet, A ctionScript, V 8, SpiderMonkey, Qooxdoo, Ext JS Filesize: 7.09 MB Reviews It becomes an amazing book which i actually have at any time study. It is actually loaded with wisdom and knowledge You wont sense monotony at at any time of your respective time (that's what catalogues are for regarding should you request me). (Rosina Schowalter V) DISCLAIMER | DMCA EUQW6UIGSWMD > Kindle « JavaScript: Ajax, Cross-Site Scripting, CouchDB, WebKit, JQuery, Dojo Toolkit, Bookmarklet, ActionScript, V8,... JAVASCRIPT: AJAX, CROSS-SITE SCRIPTING, COUCHDB, WEBKIT, JQUERY, DOJO TOOLKIT, BOOKMARKLET, ACTIONSCRIPT, V8, SPIDERMONKEY, QOOXDOO, EXT JS Books LLC, Wiki Series, 2011. Condition: New. This item is printed on demand for shipment within 3 working days. Read JavaScript: Ajax, Cross-Site Scripting, CouchDB, WebKit, JQuery, Dojo Toolkit, Bookmarklet, ActionScript, V8, SpiderMonkey, Qooxdoo, Ext JS Online Download PDF JavaScript: Ajax, Cross-Site Scripting, CouchDB, WebKit, JQuery, Dojo Toolkit, Bookmarklet, ActionScript, V8, SpiderMonkey, Qooxdoo, Ext JS R6UOTKQRMAXT « PDF \ JavaScript: Ajax, Cross-Site Scripting, CouchDB, WebKit, JQuery, Dojo Toolkit, Bookmarklet, ActionScript, V8,... See Also A Smarter Way to Learn JavaScript: The New Approach That Uses Technology to Cut Your Effort in Half Createspace, United States, 2014. Paperback. Book Condition: New. 251 x 178 mm. Language: English . Brand New Book ***** Print on Demand *****.The ultimate learn-by-doing approachWritten for beginners, useful for experienced developers who want to... Read PDF » Why We Hate Us: American Discontent in the New Millennium Random House USA Inc, United States, 2009.
    [Show full text]
  • Choosing the Right Javascript Framework for Your Next Web
    Choosing the Right JavaScript Framework for Your Next Web Application by Brandon Satrom © 2017 Progress. All Rights Reserved. All Rights © 2017 Progress. 2018 WHITEPAPER Table of Contents The Current State of Web Frameworks / 3 Tooling Considerations / 22 Evaluation Criteria / 5 UI & Component Libraries / 22 Ecosystem Considerations / 7 IDE & Tooling Support / 23 History & Longevity / 7 Companion & CLI Tools / 24 Popularity / 9 Enterprise Considerations / 26 Corporate Support / 11 Licensing / 26 Community & Ecosystem / 12 Support & Upgrade Paths / 27 Framework Considerations / 13 Security / 29 Getting Started Experience / 13 Talent Pool & Resources / 30 Skill Requirements / 15 Making a Choice / 33 Completeness of Offering / 17 Size & Performance / 18 Beyond the Browser Options / 21 © 2018 Progress. All Rights Reserved. All Rights © 2018 Progress. Progress / Kendo UI 2 The state of web application development has changed drastically in the past ten years. These changes have been spurred on by greater bandwidth for many, more powerful and feature-rich browsers. The result is a thriving web ecosystem with sites, apps and experiences that would have been hard to imagine a decade ago. And yet, for many developers, this ecosystem often feels like a bazaar, stuffed with libraries and frameworks that do anything and everything one could imagine. For every need there are a dozen options to choose from, and with new stalls (libraries) opening every day, it’s no wonder many of us pine for the days when starting a new project was as simple as dropping jQuery in a script tag. The Current State of Web Frameworks There’s no doubt that the web has grown in complexity, and our development tooling options have grown along with it.
    [Show full text]
  • Eddie Corrigall NOTE Last Updated on 2015-12-17
    Eddie Corrigall NOTE Last updated on 2015-12-17 CONTACT 1-226-606-2477 Yonge and Eglinton, Toronto, ON [email protected] @ LinkedIn, @ GitHub SUMARY I graduated from the University of Waterloo in 2014 with Honours Bachelor of Computer Science (BCS). I’ve learned a lot about the Ad Tech Industry this year while working at Eyereturn Marketing Inc. I used Apache Hadoop to operate on and house a lot of data and aggregate the important info into SQL servers for applications. Now I’m looking to be part of a team, have a well defined role, and ownership over a product or service. My long-term goal is to focus on more traditional software development that will include a release cycle and teamwork. What I’ve worked on in the past • Mining big data using Apache Hadoop and Apache PigLatin Data analytics using Python Pandas, NumPy, SciKit Learn • Real-time analytic software using C# Windows Presentation Foundation (WPF) • Crowd sourcing application using Amazon Web Services (AWS) Mechanical Turk (mTurk) • Custom implementation of I2C bus and LPC bus in C for an Embedded security platform • Web portal written in SQL, PHP, JavaScript for team knowledge tracking application Side Projects I have many side projects, some of which are farther along than others. These projects get me involved in technologies to strengthen my abilities and satisfy my ambition for knowledge. If you check out my GitHub account, there are plenty of working examples of my development abilities, so I encourage you to explore! What I’m looking to do next My internships at the University of Waterloo allowed me to pursue development opportunities within 1 many unique industries.
    [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]
  • Preview Extjs Tutorial (PDF Version)
    About the Tutorial ExtJS stands for Extended JavaScript. It is a JavaScript framework and a product of Sencha, based on YUI (Yahoo User Interface). It is basically a desktop application development platform with modern UI. This tutorial gives a complete understanding of Ext JS. This reference will take you through simple and practical approaches while learning Ext JS. Audience This tutorial has been prepared for beginners to help them understand the concepts of ExtJS to build dynamic web UI. Prerequisites For this tutorial, the reader should have prior knowledge of HTML, CSS, and JavaScript coding. It would be helpful if the reader knows the concepts of object-oriented programming and has a general idea on creating web applications. Execute ExtJS Online For most of the examples given in this tutorial you will find a Try it option. Make use of this option to execute your ExtJS programs on the spot and enjoy your learning. Try the following example using the Try it option available at the top right corner of the following sample code box − <!DOCTYPE html> <html> <head> <link href="https://cdnjs.cloudflare.com/ajax/libs/extjs/6.0.0/classic/theme- classic/resources/theme-classic-all.css" rel="stylesheet" /> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/extjs/6.0.0/ext-all.js"></script> <script type="text/javascript"> Ext.onReady(function() { Ext.create('Ext.Panel', { renderTo: 'helloWorldPanel', height: 100, i width: 200, title: 'Hello world', html: 'First Ext JS Hello World Program' }); }); </script> </head> <body> <div id="helloWorldPanel"></div> </body> </html> Copyright & Disclaimer Copyright 2017 by Tutorials Point (I) Pvt.
    [Show full text]
  • Lecture 10 – Ajax and Jquery
    Lecture 10 – Ajax and jQuery INLS 760 Web Databases Spring 2013 Rob Capra AJAX What is AJAX? 1. The “original” Ajax… is in Agamemnon’s army 2. Another Ajax… is “stronger than dirt” 3. Asynchronous JavaScript and XML Where can I get Ajax? 1. Homer’s Iliad 2. Try the grocery store 3. There is nothing to “get” support is built-in to modern browsers. Ajax is a programming technique. 2 What does AJAX do? • Traditional use of HTTP causes pages to be reloaded when data is exchanged • AJAX uses JavaScript’s XMLHttpRequest method to exchange data with the server without reloading the current page. – This enables quick, small transactions – Client can communicate more often with the server – More flexible user-interfaces can be built – Web applications can look/act more like desktop apps 3 Digging Deeper • Traditional HTTP communication – User clicks a link or presses a form button – Client browser makes an HTTP request using either GET or POST – Server processes request and sends a response – Browser loads the response in a new web page 4 Digging Deeper • AJAX – JavaScript event fires • calls user defined JavaScript function – Client browser makes a request using XMLHttpRequest – Client sets a handler to process the response when it arrives • This communication is asynchronous, so response could arrive whenever – When the response arrives, a client handler does something • For example, update just a PART of the page 5 “Real-World” Example • Google Suggest 6 Simple Example – Client Side <form name="myForm"> Name: <input type="text" onkeyup="ajaxFunction();"
    [Show full text]
  • Preview Jqueryui Tutorial (PDF Version)
    JQueryUI About the Tutorial JqueryUI is the most popular front end frameworks currently. It is sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development. It uses HTML, CSS and Javascript. This tutorial will teach you basics of JqueryUI Framework, which you can use to create complex web applications GUI with ease. This Tutorial is divided into sections such as JqueryUI Basic Structure, JqueryUI CSS, JqueryUI Layout Components and JqueryUI Plugins. Each of these sections contain related topics with simple and useful examples. Audience This tutorial has been prepared for anyone who has a basic knowledge of HTML and CSS and has an urge to develop websites. After completing this tutorial, you will find yourself at a moderate level of expertise in developing web projects using Twitter JqueryUI. Prerequisites Before you start proceeding with this tutorial, I'm making an assumption that you are already aware about basics of HTML and CSS. If you are not well aware of these concepts, then I will suggest to go through our short tutorial on HTML Tutorial and CSS Tutorial. Disclaimer & Copyright Copyright 2015 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute, or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors.
    [Show full text]