Wednesday, March 28, 2012

Ajax-style Client/Server Programming with F#

Ajax-style Client/Server Programming with F#Ajax-style Client/Server Programming with F# Tomáš Petříček & Don Syme Why are Web Applications Hard? Limited client-side environment - Only JavaScript (no client-side installation allowed!!!) Discontinuity between client and server side, Two parts of the same application! Components in web frameworks are only server-side No standard way for expressing client-side interactions Ajax-style Web Control Flow HTTP protocol is based on request-response principle Ajax-style Web Control Flow HTTP protocol is based on request-response principle

Ajax-style applications update the page dynamically using asynchronous requests What’s going on? Program is “authored” on the server-side But runs primarily on the client-side. No state on the server (except during callbacks) Program is “authored” in server-side language (e.g. Visual Basic or PHP). But the main point of this program is to generate a client-side program in JS Executing some (most) code as JavaScript is unavoidable Summary 1. Client asks server for page 2. Server gives back JavaScript 3. Client runs JavaScript 4. Client calls back server asynchronously 5. Server talks to database during callbacks 6. Server responds with updated DOM/JavaScript for client Project Aims 1) Single programming language - F# 2) Type-checked client & server code 3) Modality-checked client & server code 4) Be Realistic Integrate with ASP.NET (or Apache …) No client-side installation required Look forward (SilverLight, …) Related Work Volta (Erik Meijer et. al., Microsoft) Client side in .NET languages (by translating IL to JavaScript) Links Language (Philip Wadler et. al., University of Edinburgh) Single language for all three tires (client/server/database) Google Web Toolkit Client side in Java (by translating...

Website: tomasp.net | Filesize: 511kb
No of Page(s): 23
Download Ajax-style Client/Server Programming with F#.pdf

Functional "AJAX" in Secure Synchronous Programming

Functional “AJAX” in Secure Synchronous ProgrammingFunctional AJAX in Secure Synchronous Programming Ramesh Bharadwaj Center for High Assurance Computer Systems Naval Research Laboratory 4555 Overlook Avenue Washington, District of Columbia 20375›5337 ramesh@itd.nrl.navy.mil Supratik Mukhopadhyay Department of Computer Science West Virginia University Morgantown, West Virginia 26506›6109 supratik@csee.wvu.edu ABSTRACT AJAX (Asynchronous Javascript and XML) is a combination of technologies aimed at supporting an improved user/application interactivity in the context of web-based service-oriented computing. Based on the XMLHttpRequest API, AJAX provides an engine for handling service invocations asynchronously

while interacting with other applications/users in the foreground. The AJAX combination of technologies have already been deployed in popular applications like Google Maps. The adherence to XML-based format for data exchange makes this combination of technologies and similar other frameworks suitable for deployment in service-oriented architectures based on lightweight services (REST or Web) augmenting existing architectures with increased capabilities of interaction. While AJAX promises improved interaction capabilities, it is also accompanied by its baggage of problems. The lack of formal semantics makes it difficult to understand and validate the function- alities that an application is supposed to provide. The support for individual component technologies of AJAX (e.g., XMLHttpRe- quest, Javascript etc.) are different for different infrastructures (and browsers). The adoption of Javascript (an interpreted scripting language) makes it inefficient for running heavyweight processes. Be- sides, the source code must be downloaded by the client for execution which raises concerns in security and intellectual property issues. These problems render the existing AJAX framework unsuitable for deployment in mission-critical enterprise applications. In this paper, we present an AJAX -like framework in an event- driven secure synchronous programming environment. More precisely, we present a synchronous programming...

Website: www.csee.wvu.edu | Filesize: 231kb
No of Page(s): 10
Download Functional “AJAX” in Secure Synchronous Programming.pdf

Web 2.0 Programming using AJAX & Blueprints

Web 2.0 Programming using AJAX & Blueprints1 Web 2.0 Programming using AJAX & Blueprints Sang Shin sang.shin@sun.com www.javapassion.com Technology Evangelist Sun Microsystems, Inc. 2 Agenda • What is Web 2.0? • What is Rich User Experience? • Rich Internet Application (RIA) Technologies • AJAX: Real-life examples • What is and Why AJAX? • Technologies used in AJAX • AJAX usage cases • Anatomy of AJAX interaction • Toolkits What is Web 2.0? 4 Web 2.0 Principles • Web as a Platform • Collection Intelligence > Folksonomy

– Collaborative Categorization • Data is key and should be shared > Mashups 5 Web 2.0 Principles • Software is in constantly evolving > Software release cycles dead? • Lightweight Programming Models > SOAP/REST • Rich User Experience > AJAX 6 Web 1.0 • Personal Websites • Email/News Groups • Popups • Web Directories • Web Classifieds • Terraserver • mp3 • Blogging - Roller • RSS – Syndication • Google Ads • Delici.io.us • HousingMaps.com • Google Maps • iTunes Web 2.0 • Wikis • Discussion Forums • Popunders • Yahoo • Cragislist • MapQuest • Napster Web 1.5 7 What Makes the Web 2.0 Different? • Personalized • User oriented • Easy to Use • Get you to the information you want • Useful 8 Mashups? Rich User Experience for Web Application 10 Rich User Experience • Take a look at a typical desktop application (Spreadsheet) • The program responses intuitively and quickly • The program gives a user meaningful feedbacks instantly > The cursor changed shape > Icons light up as mouse hovers them > Selected text changes color • Things happen naturally > I don't have to click a button or a link 11 Characteristics of...

Website: library.igcar.gov.in | Filesize: 533kb
No of Page(s): 60
Download Web 2.0 Programming using AJAX & Blueprints.pdf

Flapjax: A Programming Language for Ajax Applications

Flapjax: A Programming Language for Ajax ApplicationsFlapjax: A Programming Language for Ajax Applications Leo A. Meyerovich University of California, Berkeley lmeyerov@eecs.berkeley.edu Arjun Guha Brown University arjun@cs.brown.edu Jacob Baskin Google jacob.baskin@gmail.com Gregory H. Cooper Google ghcooper@gmail.com Michael Greenberg University of Pennsylvania mgree@seas.upenn.edu Aleks Bromfield Microsoft albromfi@microsoft.com Shriram Krishnamurthi Brown University sk@cs.brown.edu Abstract This paper presents Flapjax, a language designed for contemporary Web applications. These applications communicate with servers and have rich, interactive interfaces. Flapjax provides two key features that simplify writing these applications.First,it provides event streams,auniformabstrac-

tion for communication within a programs well as with external Web services. Second, the language itself is reactive: it automatically tracks data dependencies and propagates updates along those dataflows. This allows developers to write reactive interfaces in a declarative and compositional style. Flapjax is built on top of JavaScript.It runs on unmodified browsers and readily interoperates with existing JavaScript code. It is usable as either a programming language (that is compiled to JavaScript) or as a JavaScript library, and is designed for both uses. This paper presents the language, its design decisions, and illustrative examples drawn from several working Flapjax applications. Categories and Subject Descriptors D.3.2 [Programming Languages]:Language Classifications Data-flow languages General Terms Languages, Design Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, to republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. OOPSLA’09, October 25–29, 2009, Orlando, Florida, USA. Copyright c©2009 ACM 978-1-60558-734-9/09/10...$10.00 Keywords JavaScript, Web Programming, Functional Re- active Programming 1. Introduction The advent of broadband has changed the structure of application software....

Website: www.eecs.berkeley.edu | Filesize: 572kb
No of Page(s): 20
Download Flapjax: A Programming Language for Ajax Applications.pdf

Saturday, March 24, 2012

Google Web Toolkit GWT Java AJAX Programming

Google Web Toolkit GWT Java AJAX ProgrammingGoogle Web Toolkit GWT Java AJAX Programming A practical guide to Google Web Toolkit for creating AJAX applications with Java Prabhakar Chaganti Chapter 2 "Creating a New GWT Application" For More Information: http://www.packtpub.com/google-web-toolkit-GWT-Java-AJAX/book In this package, you will find: A Biography of the authors of the book A preview chapter from the book, Chapter 2 “Creating a New GWT Application” A synopsis of the book’s content Information on where to buy this book About the Author Prabhakar Chaganti Prabhakar Chaganti

is an enterprise software architect and open-source evangelist working for a cutting-edge software company in the suburbs of Atlanta. His interests include Linux, Ruby, Python, Java, and Virtualization. He recently won the community choice award for the most innovative virtual appliance in the 2006 VMW—this award is the Ultimate Global Virtual Appliance Challenge. This book has gained immense support from various people. The staff at Packt Publishing were very helpful in providing key assistance to me and ably and enthusiastically led me through the various phases of this project. I would like to thank the technical reviewers for their comments, which have helped make this a much better book. The vibrant community around the GWT mailing list was very helpful whenever I needed clarifications on some of the more arcane corners of GWT. I would like to thank my wife Nitika for her support and constant encouragement while I was writing this book. She effortlessly played the roles of both mom and dad while I was wrestling with GWT! Thanks and love to my two daughters Anika and Anya for putting up with daddy being stuck to his laptop for long periods of time instead of playing with them. For...

Website: www.packtpub.com | Filesize: 505kb
No of Page(s): 24
Download Google Web Toolkit GWT Java AJAX Programming.pdf

Ajax Programming

Ajax ProgrammingAjax 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 ● Serious programming in JavaScript ● 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. The actual document object in the browser was being modified dynamically (those were not Flash movies, applets, or other plugins) 2. The browser...

Website: www.cs.lmu.edu | Filesize: 126kb
No of Page(s): 48
Download Ajax Programming.pdf

userSmartsо GX

userSmartsо GXCopyright © 2007 Image Matters LLC. All Rights Reserved. Page 1 of 2 userSmarts and Context-Sensitive Service are trademarks of Image Matters LLC. www.imagemattersllc.com userSmarts® GX A framework for building context-sensitive web applications Overview userSmarts GX is an open framework for building and deploying dynamic web-based decision support and portal systems. userSmarts GX simplifies the development of web applications by providing a multi-layered framework that hides the low-level interactions and details of Adaptive JavaScript and XML (AJAX) programming and preserves

the traditional “separation-of-concerns” model used in building J2EE applications. userSmarts GX Bundles userSmarts GX provides a set of extensible framework bundles: null userSmarts Core – Rich collection of foundation classes for building Java services and applications null userSmarts CX – Connection framework for accessing web resources and services; includes connectors for common OGC services null userSmarts OWS – Collection of extensible OGC web services; includes pre-built CSW (Catalog) and cascading WMS (Web Map Service) null userSmarts RCP – AJAX application framework implemented in JavaScript; modeled after the Eclipse Rich Client Platform null userSmarts Context – Extensible framework for managing projects, folders, and resources; includes support for GeoRSS feeds, maps, and reports null Context Sensitive Situation Awareness (CSSA) application serves as a starting point for developing new applications Context Sensitive Situation Awareness (CSSA) null A unique Common Operating Picture (COP) capability supporting “Context-Sensitive Situation Awareness” null System behaviors are driven by user and application context using Context-Sensitive Service null Features a COP Interoperability Framework for geospatial data and services, a standards- based framework for integrating distributed COP resources null Tools for discovering, viewing, analyzing and reporting on multi-source geospatial data null Supports a variety of geospatial data sources, including GeoRSS feeds...

Website: www.imagemattersllc.com | Filesize: 495kb
No of Page(s): 2
Download userSmartsо GX.pdf