CSC 2720 Building Web Applications FLEX –Working with Remote Data.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10 Servlets and Java Server Pages.
Advertisements

Web forms and CGI scripts Dr. Andrew C.R. Martin
SOAP.
RPC Robert Grimm New York University Remote Procedure Calls.
OAI in DigiTool DigiTool Version 3.0.
.NET Remoting. .Net Remoting Replaces DCOM (Distributed Component Object Model – a proprietary Microsoft technology for communication among software components.
9. AJAX & RIA. 2 Motto: O! call back yesterday, bid time return. — William Shakespeare.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 42 Web Services.
Flex and ActionScript. What is Flex? Adobe Flex is a rich Internet application framework built on top of the Flash platform Applications are built using.
XMLHttpRequest Object and XML What we should learn in this lesson –What is the XHR object? –How to create the XHR objects? –XHR object properties –XHR.
RIA - Flex and ActionScript RIA – Flex and ActionScript CS590 - Ashok Sahu.
Web Services CS Web Services Internet-available services using XML messaging, for computer-computer interaction Not tied to any OS or language Self-describing:
Adobe Flash Media Server. Outline What is Adobe Flash Media Server? What can we do with it? How the server works? How to install and set-up the server?
1 Web Services Visual C# 2008 Step by Step Chapter 30.
Boris Tshibangu. What is a proxy server? A proxy server is a server (a computer system or an application) that acts as an intermediary for requests from.
Lesson15. JavaScript Objects Objects encapsulate data (properties) and behavior(methods); the properties and the methods of an object are tied together.
Chapter 6 DOJO TOOLKITS. Objectives Discuss XML DOM Discuss JSON Discuss Ajax Response in XML, HTML, JSON, and Other Data Type.
Creating Hierarchical Drill Downs for Flex Charts Dan Carotenuto Service Director, Product Marketing Copyright 2010, Information Builders. Slide 1.
Christopher Paolini Computational Science Research Center College of Engineering San Diego State University Computational Science 670 Fall 2009 Monday.
Ajax (Asynchronous JavaScript and XML). AJAX  Enable asynchronous communication between a web client and a server.  A client is not blocked when an.
RIA & Adobe Flex Yunhui Fu 11/05/2008. What’s RIA RIA (Rich Internet Applications) –web applications which look and perform like desktop applications.
Configuration Management and Server Administration Mohan Bang Endeca Server.
Exploring Real-time apps with ColdFusion and Blaze DS / Live Cycle Data Services ES Dan Blackman
Presented by Robert Zaremba.  Remote messages must be sent to a message queue so that components are decoupled  Both sides of a communication must be.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Copyright 2007 Adobe Systems Incorporated. 1 ColdFusion 8 : Advanced AJAX Development Rakshith N Computer Scientist Jan 02, 2008.
Standalone Java Application vs. Java Web Application
Agenda 1.Implementation of CustomerService. CustomerService wrapper SOAP → ESB internal format Abstract → Concrete XML syntax ESB internal format → HTTP.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Flex Data Communications Nick Kwiatkowski, Michigan State University.
Client Call Back Client Call Back is useful for multiple clients to keep up to date about changes on the server Example: One auction server and several.
Phonegap Bridge – File System CIS 136 Building Mobile Apps 1.
XML Web Service. Overview of XML Web Service ASP.NET XML Web services enable you to remotely access the properties and methods of classes across a network.
Integrating and Troubleshooting Citrix Access Gateway.
Cairngorm Microarchitecture. Pronunciation Cairngorm (kârn gôrm) n. yellowish-brown variety of quartz, especially found in Scottish Cairngorm mountain.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Using Flash with php Very quick introduction to Flash Homework: work on projects.
SYST Web Technologies SYST Web Technologies AJAX.
2006 Adobe Systems Incorporated. All Rights Reserved. Getting Started with Adobe Presenter.
C# 1 Web services CSC 298. C# 2 Web services  A technology to make libraries available across the internet.  In Visual Studio,  can create a web service.
Web Services from 10,000 feet Part I Tom Perkins NTPCUG CertSIG XML Web Services.
AJAX Asynchronous JavaScript and XML 1. AJAX Outline What is AJAX? Benefits Real world examples How it works 2.
ICM – API Server & Forms Gary Ratcliffe.
XML Over The Web Today Dino Esposito Wrox Press
CSC 2720 Building Web Applications FLEX – Data Binding.
HTTP protocol Java Servlets. HTTP protocol Web system communicates with end-user via HTTP protocol HTTP protocol methods: GET, POST, HEAD, PUT, OPTIONS,
CHAPTER 8 AJAX & JSON WHAT IS AJAX? Ajax lets you…
ASP-14-1 Advanced ASP Techniques Colorado Technical University IT420 Tim Peterson.
AJAX CS456 Fall Examples Where is AJAX used? Why do we care?
JavaScript and Ajax Week 10 Web site:
Web Services Essentials. What is a web service? web service: software functionality that can be invoked through the internet using common protocols like.
AJAX. Objectives Understand and apply AJAX Using AJAX in DOJO library.
USING ANDROID WITH THE INTERNET. Slide 2 Lecture Summary Getting network permissions Working with the HTTP protocol Sending HTTP requests Getting results.
CSE 154 Lecture 11: AJAx.
AJAX AJAX = Asynchronous JavaScript and XML.
Step 1 Create Database Info activity in Adeptia Server specifying the driver, URL and user credentials information for the database in which stored.
CSE 154 Lecture 11: AJAx.
CSE 154 Lecture 22: AJAX.
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
Getting Started with Adobe Presenter
JavaScript & AJAX.
Asynchronous Javascript And XML
jQuery form submission
Remote Data Access Update
Processing Asynchronous REST Requests in Orchestration Designer
Lecture 5: Functions and Parameters
Chapter 42 Web Services.
Uniform Resource Locator: URL
Getting Started with Adobe Presenter
Presentation transcript:

CSC 2720 Building Web Applications FLEX –Working with Remote Data

Connecting with HTTP  Use HTTPService class to load any remote data via HTTP protocol  Steps:  Create an instance of HTTPService that maps to a URL.  Invoke the send() method to retrieve the remote file asynchronously.  Retrieve the loaded data via the lastResult property.

Loading an XML File students.xml

 service.lastResult.students.student is an array of objects with each object containing three properties – name, id, age.  The lastResult property holds the most recently retrieved data. <mx:Application xmlns:mx=" creationComplete="service.send()"> <mx:DataGrid dataProvider="{service.lastResult.students.student}" >

HTTPService's resultFormat Property  We can specify in what format the returned value should be using the property resultFormat.  Possible values are: "object", "array", "xml", "flashvars", "text", "e4x".  Default value is "object", which converts XML to a hierarchical list of ActionScript objects.

Retriving Results via a Handler Function <mx:Application xmlns:mx=" creationComplete="service.send()"> <mx:HTTPService url="students.xml" result="handleResult(event)" /> <![CDATA[ import mx.rpc.events.ResultEvent; private function handleResult(e:ResultEvent):void { var resultObj: Object = e.result; … } ]]>

Passing Parameters to the Server <mx:Application xmlns:mx=" creationComplete="sendRequest()"> <![CDATA[ private function sendRequest():void { var params: Object = new Object(); params.count = 10; // # of records params.min_age = 20; // minimum age service.send(params); // Use HTTP GET (default) } ]]>

References and Resources  Adobe Flex 3.0 For Dummies, by Doug McCune, Deepa Subramaniam. Wiley Publishing, Inc. 2008