CORS Headers • Proxy Via NGINX • Proxy Using the Website Server • JSON Vs

Total Page:16

File Type:pdf, Size:1020Kb

CORS Headers • Proxy Via NGINX • Proxy Using the Website Server • JSON Vs Calling Alma APIs using JavaScript MELI – 11.7.2018 Ori Miller, 2018 © 2016 Ex Libris | Confidential & Proprietary Agenda • AJAX • Using JavaScript Library: e.g. jQuery • Demo: Google Chart with Alma Analytics APIs • Same Origin Policy • CORS headers • Proxy via NGINX • Proxy using the website server • JSON vs. XML • Demos: • Updating item record (JSON) • Updating bib record (XML) © 2016 Ex Libris | Confidential & Proprietary 2 Plain JavaScript © 2016 Ex Libris | Confidential & Proprietary 3 Regular JS… • Each Browser might behave differently • Long commands • Different selectors than in CSS • Sometimes different commands than in CSS • OnClick etc. inside the HTML • Hard to figure out if it is accessible © 2016 Ex Libris | Confidential & Proprietary 4 JavaScript libraries • AJILE • Dojo • GWT • JQuery • Microsoft AJAX Library • Mochikit • MooTools • Prototype • qooxdoo • Rialto Toolkit • Rico • Script.aculo.us • Spry • Yahoo! UI Library See: • http://en.wikipedia.org/wiki/JavaScript_library • http://en.wikipedia.org/wiki/List_of_JavaScript_libraries • http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks © 2016 Ex Libris | Confidential & Proprietary 5 Using a JavaScript library <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"></script> $("p#id1").css("margin-bottom","3cm"); © 2016 Ex Libris | Confidential & Proprietary 6 https://jquery.com/ AJAX © 2016 Ex Libris | Confidential & Proprietary 7 https://www.w3schools.com/xml/ajax_intro.asp AJAX © 2016 Ex Libris | Confidential & Proprietary 8 https://www.w3schools.com/xml/ajax_intro.asp Using jQuery to run AJAX © 2016 Ex Libris | Confidential & Proprietary 9 Debugging using the browser • Always use F12 … © 2016 Ex Libris | Confidential & Proprietary 10 Google Charts https://developers.exlibrisgroup.com/blog/Alma-Analytics-Data-in-a-Google-Chart © 2016 Ex Libris | Confidential & Proprietary 11 Same Origin Policy http://en.wikipedia.org/wiki/Same-origin_policy © 2016 Ex Libris | Confidential & Proprietary 12 CORS headers Cross-origin resource sharing © 2016 Ex Libris | Confidential & Proprietary 13 Solutions using CORS • Calling the same server the JS is from, and it will call the API • Calling a proxy server which returns CORS headers • The API to return CORS headers • Alma returns CORS headers only for the Analytics APIs • Why? For the other APIs we don’t want the API-key exposed by mistake. © 2016 Ex Libris | Confidential & Proprietary 14 NGINX configuration ### proxy to Gateway, adding CORS server { listen 5555; server_name proxy_to_gw; location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Origin,Accept,Content-Type'; add_header 'Access-Control-Max-Age' 1728000; add_header 'Content-Type' 'text/plain charset=UTF-8'; add_header 'Content-Length' 0; return 204; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Origin,Accept,Content-Type'; } proxy_pass https://api-na.hosted.exlibrisgroup.com; proxy_set_header Host $host; proxy_set_header Authorization "apikey l7xx08b23ba160004847a2e95b79ca5d0cf2"; proxy_set_header Accept "application/json"; proxy_set_header X-Real-IP $remote_addr; } } © 2016 Ex Libris | Confidential & Proprietary 15 http://enable-cors.org/server_nginx.html JS calling localhost:5555 © 2016 Ex Libris | Confidential & Proprietary 16 JSON - JavaScript Object Notation Alma’s default is XML. To get JSON use: • Using header: Accept: application/json • Using query-parameter: https://api- na.hosted.exlibrisgroup.com/almaws/v1/conf/general?apikey=l7xx39575714b b6e4d4d911874693dcafb1f&format=json © 2016 Ex Libris | Confidential & Proprietary 17 JSON vs. XML { "user": [ { "primary_id": "11234", <users total_record_count="2"> "first_name": "Dina", "last_name": "Cohen", <user> "gender": { "value": "FEMALE", <primary_id>11234</primary_id> "desc": "Female" <first_name>Dina</first_name> }, <last_name>Cohen</last_name> "status": { <gender desc="Female">FEMALE</gender> "value": "ACTIVE", "desc": "Active" <status desc="Active">ACTIVE</status> } </user> }, { "primary_id": "44123", <user> "first_name": "John", <primary_id>44123</primary_id> "last_name": "Smith", <first_name>John</first_name> "gender": { <last_name>Smith</last_name> "value": "MALE", "desc": "Male" <gender desc="Male">MALE</gender> }, <status desc="Active">ACTIVE</status> "status": { </user> "value": "ACTIVE", "desc": "Active" } </users> } ], "total_record_count": 2 } © 2016 Ex Libris | Confidential & Proprietary 18 JSON vs. XML XML pros: • Displays nicely in browser without plugin • Goes hand in hand with the XSDs JSON pros: • Simple to parse • Now much more popular than XML Alma APIs which work only in XML: • Bib/Holdings (MARC-XML) • Analytics report © 2016 Ex Libris | Confidential & Proprietary 19 PUT with JS • Demo Item-editor – using JSON • Demo Bib-Editor – using XML © 2016 Ex Libris | Confidential & Proprietary 20 Read API error message • xhr.responseText • console.log © 2016 Ex Libris | Confidential & Proprietary 21 Last slide… • Questions? • https://developers.exlibrisgroup.com/blog/Self- Check-Web-Based-Application • Node.js © 2016 Ex Libris | Confidential & Proprietary 22 [email protected] © 2016 Ex Libris | Confidential & Proprietary.
Recommended publications
  • 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]
  • Appendix a the Ten Commandments for Websites
    Appendix A The Ten Commandments for Websites Welcome to the appendixes! At this stage in your learning, you should have all the basic skills you require to build a high-quality website with insightful consideration given to aspects such as accessibility, search engine optimization, usability, and all the other concepts that web designers and developers think about on a daily basis. Hopefully with all the different elements covered in this book, you now have a solid understanding as to what goes into building a website (much more than code!). The main thing you should take from this book is that you don’t need to be an expert at everything but ensuring that you take the time to notice what’s out there and deciding what will best help your site are among the most important elements of the process. As you leave this book and go on to updating your website over time and perhaps learning new skills, always remember to be brave, take risks (through trial and error), and never feel that things are getting too hard. If you choose to learn skills that were only briefly mentioned in this book, like scripting, or to get involved in using content management systems and web software, go at a pace that you feel comfortable with. With that in mind, let’s go over the 10 most important messages I would personally recommend. After that, I’ll give you some useful resources like important websites for people learning to create for the Internet and handy software. Advice is something many professional designers and developers give out in spades after learning some harsh lessons from what their own bitter experiences.
    [Show full text]
  • Directing Javascript with Arrows
    Directing JavaScript with Arrows Khoo Yit Phang Michael Hicks Jeffrey S. Foster Vibha Sazawal University of Maryland, College Park {khooyp,mwh,jfoster,vibha}@cs.umd.edu Abstract callback with a (short) timeout. Unfortunately, this style of event- JavaScript programmers make extensive use of event-driven pro- driven programming is tedious, error-prone, and hampers reuse. gramming to help build responsive web applications. However, The callback sequencing code is strewn throughout the program, standard approaches to sequencing events are messy, and often and very often each callback must hard-code the names of the next lead to code that is difficult to understand and maintain. We have events and callbacks in the chain. found that arrows, a generalization of monads, are an elegant solu- To combat this problem, many researchers and practitioners tion to this problem. Arrows allow us to easily write asynchronous have developed libraries to ease the construction of rich and highly programs in small, modular units of code, and flexibly compose interactive web applications. Examples include jQuery (jquery. them in many different ways, while nicely abstracting the details of com), Prototype (prototypejs.org), YUI (developer.yahoo. asynchronous program composition. In this paper, we present Ar- com/yui), MochiKit (mochikit.com), and Dojo (dojotoolkit. rowlets, a new JavaScript library that offers arrows to the everyday org). These libraries generally provide high-level APIs for com- JavaScript programmer. We show how to use Arrowlets to construct mon features, e.g., drag-and-drop, animation, and network resource a variety of state machines, including state machines that branch loading, as well as to handle API differences between browsers.
    [Show full text]
  • Analysis Report
    METU Computer Engineering AKAMAI WEB TOOLKIT ANALYSIS REPORT Members of the Team: • Ahmet Emin Tosun è [email protected] • Uğur Can Tekin è [email protected] • Hasan İşler è [email protected] • Vedat Şengül è [email protected] • Muhammet Yavuz Aşık è [email protected] 1. PROJECT DEFINITION, SCOPE AND GOALS 1.1 Project Definition 1.2 Project Scope and Goals 2. PROCESS 2.1 Team Organization 2.2 Process Model 2.3 Major Constraints 2.3.1 Project Schedule 2.3.1 Language Constraints 2.3.3 User Interface 2.4 Gantt Chart 3. MARKET RESEARCH 3.1 CURRENT PRODUCTS 3.1.1 APTANA 3.1.1.1 What is Aptana? 3.1.1.2 Main Features of Aptana 3.1.1.3 About the Aptana Editors 3.1.1.3.1 JavaScript Editor 3.1.1.3.2 HTML Editor 3.1.1.3.3 CSS Editor 3.1.1.4 Screenshots 3.1.2 AJAX JOYISTAR WEBSHOP 3.1.2.1 What is Ajax Joyistar Webshop? 3.1.2.2 Main Features of Joyistar Webshop 3.1.2.3 Screenshots 3.1.3 ZAPATEC 3.1.3.1 What is Zapatec 3.1.3.2 Main Features of Zapatec 3.1.4 GOOGLE WEB TOOLKIT 3.1.4.1 What is Google Web Toolkit? 3.1.4.2 Main Features of GWT 3.1.4.3 Google Web Toolkit Components 3.1.5 DOJO TOOLKIT 3.1.5.1 What is Dojo? 3.1.5.2 Main Features of Dojo 2 3.1.6 MORFIK WEBOS APPSBUILDER 3.1.6.1 What is Morfik WebOS AppsBuilder 3.1.6.2 Main Features of Morfik WebOS AppsBuilder 3.1.6.3 About the Morfik Editor 3.1.6.4 Screenshots 3.1.7 Comparison Table 3.2 Questionnaire 3.3 Interview 4.
    [Show full text]
  • Javascript Hijacking
    JavaScript Hijacking Brian Chess, Yekaterina Tsipenyuk O'Neil, Jacob West {brian, katrina, jacob}@fortifysoftware.com March 12, 2007 Summary An increasing number of rich Web applications, often called Ajax applications, make use of JavaScript as a data transport mechanism. This paper describes a vulnerability we term JavaScript Hijacking, which allows an unauthorized party to read confidential data contained in JavaScript messages. The attack works by using a <script> tag to circumvent the Same Origin Policy enforced by Web browsers. Traditional Web applications are not vulnerable because they do not use JavaScript as a data transport mechanism. We analyzed 12 popular Ajax frameworks, including 4 server-integrated toolkits – Direct Web Remoting (DWR), Microsoft ASP.NET Ajax (a.k.a. Atlas), xajax and Google Web Toolkit (GWT) -- and 8 purely client-side libraries -- Prototype, Script.aculo.us, Dojo, Moo.fx, jQuery, Yahoo! UI, Rico, and MochiKit. We determined that among them only DWR 2.0 implements mechanisms for preventing JavaScript Hijacking. The rest of the frameworks do not explicitly provide any protection and do not mention any security concerns in their documentation. Many programmers are not using any of these frameworks, but based on our findings with the frameworks, we believe that many custom-built applications are also vulnerable. An application may be vulnerable if it: • Uses JavaScript as a data transfer format • Handles confidential data We advocate a two-pronged mitigation approach that allows applications to decline malicious requests and prevent attackers from directly executing JavaScript the applications generate. 1. Introduction Although the term “Web 2.0” does not have a rigorous definition, it is commonly used in at least two ways.
    [Show full text]
  • Ajax, State of The
    AjAjaax,x, ststaattee ooff tthhee aarrtt Tarek Ziadé, Nuxeo [email protected] WWhhoo aamm ii ● I am engineer at Nuxeo ● I work on CPS, the famous ECM Plateform ;) ● I©ve been lately in charge of Ajax stuff in CPS ● I read Ajax related feeds before I go to bed WWhhaatt iiss AAjjaaxx ?? A dutch football club (a good one) A cleanser (really works) AA WWeebb 22..00 tteechchnnoollooggyy Asynchronous Javascript And XML WWhhaatt©©ss WWeebb 22..00 ?? TTiimm OO©©RReeiillllyy©©ss ©©ccoommppaacctt©© ddeeffiinniittiioonn:: Web 2.0 is the network as platform, spanning all connected devices; Web 2.0 applications are those that make the most of the intrinsic advantages of that platform: delivering software as a continually-updated service that gets better the more people use it, consuming and remixing data from multiple sources, including individual users, while providing their own data and services in a form that allows remixing by others, creating network effects through an "architecture of participation," and going beyond the page metaphor of Web 1.0 to deliver rich user experiences. MMaarrkkuuss AAnnggeerrmmeeiieerr©©ss vviieeww ooff WWeebb 22..00:: (courtesy of Markus Angermeier) WWeebb 22..00 AAppppss ✔ del.icio.us ✔ flickr ✔ Voo2do ✔ Digg ✔ Google Mail (Gmail) ✔ Writely ✔ Basecamp ✔ ... AjAjaaxx bbiigg ppiictctuurere 11//22 (courtesy of J. J. Garett) AjAjaaxx bbiigg ppiictctuurere 22//22 (courtesy of J. J. Garett) TThhee LLiistst ooff tthhiinnggss AjAjaaxx rereaallllyy bbririnnggss ✔ Increases interactivity ✔ Save bandwidth ✔ Helps avoiding some interactive
    [Show full text]
  • Debugging Javascript
    6803.book Page 451 Thursday, June 15, 2006 2:24 PM APPENDIX ■ ■ ■ Debugging JavaScript In this appendix, I will introduce you to some tricks and tools to debug your JavaScript code. It is very important to get acquainted with debugging tools, as programming consists to a large extent of trying to find out what went wrong a particular time. Some browsers help you with this problem; others make it harder by having their debugging tools hidden away or returning cryptic error messages that confuse more than they help. Some of my favorites include philo- sophical works like “Undefined is not defined” or the MSIE standard “Object doesn’t support this property or method.” Common JavaScript Mistakes Let’s start with some common mistakes that probably every JavaScript developer has made during his career. Having these in the back of your head when you check a failing script might make it a lot quicker to spot the problem. Misspellings and Case-Sensitivity Issues The easiest mistakes to spot are misspellings of JavaScript method names or properties. Clas- sics include getElementByTagName() instead of getElementsByTagName(), getElementByID() instead of getElementById() and node.style.colour (for the British English writers). A lot of times the problem could also be case sensitivity, for example, writing keywords in mixed case instead of lowercase. If( elm.href ) { var url = elm.href; } There is no keyword called If, but there is one called if. The same problem of case sensi- tivity applies to variable names: var FamilyGuy = 'Peter'; var FamilyGuyWife = 'Lois'; alert( 'The Griffins:\n'+ familyGuy + ' and ' + FamilyGuyWife ); This will result in an error message stating “familyGuy is not defined”, as there is a variable called FamilyGuy but none called familyGuy.
    [Show full text]
  • Zenoss Zeveloper's Guide Version
    Zenoss, Inc. www.zenoss.com Copyright © 2008 Zenoss, Inc., 275 West St. Suite 204, Annapolis, MD 21401, U.S.A. All rights reserved. The Zenoss logo is a registered trademark of Zenoss, Inc. Zenoss and Open Enterprise Management are trademarks of Zenoss, Inc. in the U.S. and other countries. Flash is a registered trademark of Adobe Systems Incorporated. Java is a registered trademark of Sun Microsystems, Inc. Linux is a registered trademark of Linus Torvalds. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Tomcat is a trademark of the Apache Software Foundation. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Zenoss Developer’s Guide for Version 2.3 Zenoss Developer’s Guide for Version 2.3 Table of Contents 1. Introduction ............................................................................................................................... 1 1.1. Overview ........................................................................................................................ 1 1.1.1. Model ................................................................................................................. 1 1.1.2. Availability .......................................................................................................... 1 1.1.3. Events ................................................................................................................
    [Show full text]
  • Comparing Javascript Libraries
    www.XenCraft.com Comparing JavaScript Libraries Craig Cummings, Tex Texin October 27, 2015 Abstract Which JavaScript library is best for international deployment? This session presents the results of several years of investigation of features of JavaScript libraries and their suitability for international markets. We will show how the libraries were evaluated and compare the results for ECMA, Dojo, jQuery Globalize, Closure, iLib, ibm-js and intl.js. The results may surprise you and will be useful to anyone designing new international or multilingual JavaScript applications or supporting existing ones. 2 Agenda • Background • Evaluation Criteria • Libraries • Results • Q&A 3 Origins • Project to extend globalization - Complex e-Commerce Software - Multiple subsystems - Different development teams - Different libraries already in use • Should we standardize? Which one? - Reduce maintenance - Increase competence 4 Evaluation Criteria • Support for target and future markets • Number of internationalization features • Quality of internationalization features • Maintained? • Widely used? • Ease of migration from existing libraries • Browser compatibility 5 Internationalization Feature Requirements • Encoding Support • Text Support -Unicode -Case, Accent Mapping -Supplementary Chars -Boundary detection -Bidi algorithm, shaping -Character Properties -Transliteration -Charset detection • Message Formatting -Conversion -IDN/IRI -Resource/properties files -Normalization -Collation -Plurals, Gender, et al 6 Internationalization Feature Requirements
    [Show full text]
  • Ajax Programming
    Ajax Programming Ray Toal Loyola Marymount University 2006-06-07 Outline ● What Ajax is ● A few demos ● First steps programming an Ajax application ● Real programming: JavaScript doesn't suck ● Design patterns and libraries ● Where to learn more What this talk is about ● What Ajax is, or means, for those who don't know (Hands, please? Anyone?) ● Why Ajax matters ● SSeerriioouuss pprrooggrraammmmiinngg iinn JJaavvaaSSccrriipptt ● Distributed programming (remoting) in general, because there are alternatives to Ajax What this talk is not about ● Novice JavaScript-ing ● Stupid DHTML tricks ● Web Services ● Whether or not Ajax sux/rox/blows/... ● How to use Backbase or Echo2 or ... ● Jesse James Garrett In case you didn't know ● Ajax is a snappy term given (last year) to a collection of technologies that have been around since the previous century ● Ajax stands for Asynchronous Javascript And XML ● The XML part isn't required... plain text and JSON are often used instead, but Ajat and Ajaj sound stupid Why Ajaxify? ● Because many web applications in which every action causes the whole freakin' page to refresh are annoying ● Because you can create rich client applications without users installing the applications ● Because the techniques are (1) cross-browser, (2) server technology-agnostic, (3) require no plugins, and (4) mostly use open standards ! DEMO TIME !!! ● Google Maps http://maps.google.com ● Google Suggest http://www.google.com/webhp?complete=1 ● Rico Demos http://openrico.org/rico/demos.page ● ajaxpattens.org Demos http://www.ajaxify.com/run/ ● script.aculo.us Demos http://wiki.script.aculo.us/scriptaculous/show/Demos What was behind those demos? ● Two basic things: 1.
    [Show full text]
  • Learning PHP, Mysql, and Javascript
    Learning PHP, MySQL, and JavaScript Robin Nixon Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo Learning PHP, MySQL, and JavaScript by Robin Nixon Copyright © 2009 Robin Nixon. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://my.safaribooksonline.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or [email protected]. Editor: Andy Oram Indexer: Ellen Troutman Zaig Production Editor: Sumita Mukherji Cover Designer: Karen Montgomery Copyeditor: Nancy Kotary Interior Designer: David Futato Proofreader: Kiel Van Horn Illustrator: Robert Romano Printing History: July 2009: First Edition. Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Learning PHP, MySQL, and JavaScript, the image of sugar gliders, and related trade dress are trademarks of O’Reilly Media, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information con- tained herein. TM This book uses RepKover™, a durable and flexible lay-flat binding. ISBN: 978-0-596-15713-5 [M] 1246467361 Table of Contents Preface .
    [Show full text]
  • BREEZY BROWSING Books Were the Original Model for Website Design
    PROGRAMMING AJAX Workshop Building efficient websites with AJAX BREEZY BROWSING Books were the original model for website design. Navigation was similar to flipping the pages. Thanks to AJAX, many state-of-the-art websites now behave like desktop applications. BY CARSTEN ZERBST he standards for an impressive Internet presentation have changed substantially since Tim Berners-Lee cre- Tated the first web pages. Internet sites increasingly re- mind the surfer of interactive desktop applications rather than printed material. AJAX is a technology based on JavaScript that broker, Fotolia broker, adds convenience, with pull-down menus, sortable tables, and interactive input pages. The main improvement is the absence of delays typically experienced while pages reloaded. Long Way Before rendering a website, the browser and web server go through a number of steps (Figure 1): • The browser sends a page request to a web server. • The server processes the request and serves up the HTML text and images. This might take a couple of seconds if the load is heavy. The network transmission speed decides how fast the content is delivered. The required time is still notice- able on fast intranets, however. • Finally, the browser reads the response and displays the page. The same sequence is repeated for each image before the browser can render the final version of the page. All told, these three steps typically take several seconds. In case of HTML pages without AJAX technology the steps are repeated for even the tiniest of changes. In contrast to rich client applications, this considerably affects the user experience: Menus that drop down without a delay, point and click sorting in tables, or drag and drop are not easily implemented because of time-consuming page reloads.
    [Show full text]