{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


AJAXFacebook2010Fall - Homework Yahoo Finance Facebook...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Homework: Yahoo! Finance & Facebook Mashup – an AJAX/JSON/Java Exercise 1. Objectives Become familiar with the AJAX, REST, JSON & XML technologies; Use a combination of HTML, CSS, DOM, XMLHttpRequest, XML and Java Servlets; Provide an interface to search and display stock quotes from Yahoo! Finance and post them to Facebook. 2. Background 2.1 AJAX & JSON AJAX ( A synchronous Ja vaScript + X ML) incorporates several technologies: Standards-based presentation using XHTML and CSS; Dynamic display and interaction using the Document Object Model (DOM); Data interchange and manipulation using XML and XSLT; Asynchronous data retrieval using XMLHttpRequest; JavaScript binding everything together. See the class slides at http://www-scf.usc.edu/~csci571/Slides/ajax.ppt . JSON, short for JavaScript Object Notation, is a lightweight data interchange format. Its main application is in AJAX web application programming, where it serves as an alternative to the use of the XML format for data exchange between client and server. See the class slides at http://www-scf.usc.edu/~csci571/Slides/JSON1.ppt . 2.2. Yahoo! Finance Yahoo! Finance is an online service that gives you free access to company finance content on the Web, including stock quotes. The Yahoo! Finance homepage is available at: http://finance.yahoo.com In Homework #6, you provided a search interface to Yahoo! Finance stock quotes to retrieve and display such quotes in a web application. In Homework #6 a Perl script together with your Apache server provided the “scrape” functionality. In this exercise you will re-use your scraping code to produce XML instead of HTML as you did in homework #6.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 2.3 Facebook Facebook is a global social networking website that is operated and privately owned by Facebook, Inc. Users can add friends and send them messages, and update their personal profiles to notify friends about themselves and what they are doing. Users can additionally post news feeds to their profiles, and these feeds may include images, besides text messages. The facebook homepage is available at: http://www.facebook.com Facebook provides developers with an application-programming interface, called the Facebook Platform. A component of this platform is Facebook Connect, a powerful set of APIs for developers that allows them to authorizes users, and send communications to Facebook, among many more things. The Facebook Connect homepage is available at: http://wiki.developers.facebook.com/index.php/Facebook_Connect 3. Description of the Exercise In this exercise, you will write a web application that does the following sequence of actions: a) allows a user to enter a “query” for stock quotes from Yahoo! Finance; the query will contain stock “symbols”, separated by spaces; b) uses query string to retrieve up to 3 stock quotes from Yahoo! Finance, using the Apache/Perl CGI from Homework #6; c) displays the stock quotes in the UI, in the same or similar format used in Assignment #6; d) allows the user to select one stock quote; e)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}