Lirida Kerçelli Ayşe Sezer The Google AJAX Search API.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 16 Introduction to Ajax.
Advertisements

Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
CHAPTER 15 WEBPAGE OPTIMIZATION. LEARNING OBJECTIVES How to test your web-page performance How browser and server interactions impact performance What.
HTML 5 and CSS 3, Illustrated Complete Unit L: Programming Web Pages with JavaScript.
Google Ajax Search API Srikanth TSS. Google AJAX Search API Lets you put Google Search in your web pages with JavaScript. Embed a simple, dynamic search.
Assignment: Improving search rank – search engine optimization Read the following post carefully.
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Create slices and hotspots Create links in Web pages Create rollovers from slices Create basic animation Add tweening symbol instances to create animation.
AJAX (Asynchronous JavaScript and XML) Amit Jain CS 590 – Winter 2008.
Microsoft ASP.NET AJAX - AJAX as it has to be Presented by : Rana Vijayasimha Nalla CSCE Grad Student.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
1 JavaScript & AJAX CS , Spring JavaScript.
More APIs: Web Services CMPT 281. Announcements Project milestone Lab: – Web services examples.
A different approach to Middleware. The IGUANA Integration Engine Introduction Eliot Muir, CEO My role is 75% development Based in Toronto, Canada.
CHAPTER 8: Enhancing a Website Session 1. Objectives Embed a YouTube video in your website Insert a slideshow in your website Use Google fonts in your.
UNIT-V The MVC architecture and Struts Framework.
Competence Development Introduction to AJAX. What is AJAX? AJAX = Asynchronous JavaScript and XML For creating interactive web applications – Exchanging.
DHTML - Introduction Introduction to DHTML, the DOM, JS review.
2012 National BDPA Technology Conference Creating Rich Data Visualizations using the Google API Yolanda M. Davis Senior Software Engineer AdvancED August.
Introduction to AJAX AJAX Keywords: JavaScript and XML
JavaScript & jQuery the missing manual Chapter 11
AJAX in ASP.NET James Crowley Developer Fusion
Google Maps API. Static Maps send an HTTP GET request receive an image (PNG, GIF, JPEG) no javascript needed encode params in URL example:
Chapter 19: Adding JavaScript
Intro to Ajax Fred Stluka Jan 25, /25/2006Intro to AjaxFred Stluka2 What is Ajax? "Asynchronous JavaScript and XML" New name for an old technique:
Title, meta, link, script.  The title looks like:  The tag defines the title of the document in the browser toolbar.  It also: ◦ Provides a title for.
Copyright 2007 Adobe Systems Incorporated. 1 ColdFusion 8 : Advanced AJAX Development Rakshith N Computer Scientist Jan 02, 2008.
AJAX and Atlas in ASP.NET 2.0 William J. Steele MSDN Developer Evangelist Microsoft Corporation
Chapter 8 Browsing and Searching the Web. Browsing and Searching the Web FAQs: – What’s a Web page? – What’s a URL? – How does a browser work? – How do.
JavaScript, Fourth Edition
Cross Site Integration “mashups” cross site scripting.
StockWatch Developers: Nimrod Hagay Hagai Barkan Supervisors: Assaf Solomovitch Viktor Kulikov June 2009.
Javascript II DOM & JSON. In an effort to create increasingly interactive experiences on the web, programmers wanted access to the functionality of browsers.
Chapter 8 Browsing and Searching the Web. 2Practical PC 5 th Edition Chapter 8 Getting Started In this Chapter, you will learn: − What is a Web page −
Rails & Ajax Module 5. Introduction to Rails Overview of Rails Rails is Ruby based “A development framework for Web-based applications” Rails uses the.
Using Ajax to Improve uPortal User Experience Jen Bourey Yale University
Ajax for Dynamic Web Development Gregory McChesney.
JavaScript Introduction. Slide 2 Lecture Overview JavaScript background The purpose of JavaScript A first JavaScript example Introduction to getElementById.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
AJAX James Kahng. Congrats Jack Guo for Angular entryentry This week’s coding challenge at end of talk.
ICM – API Server & Forms Gary Ratcliffe.
1 What is JQuery. jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax* interactions.
AJAX. Overview of Ajax Ajax is not an API or a programming language Ajax aims to provide more responsive web applications In normal request/response HTTP.
Event Handling & AJAX IT210 Web Systems. Question How do we enable users to dynamically interact with a website? Answer: Use mouse and keyboard to trigger.
CHAPTER 8 AJAX & JSON WHAT IS AJAX? Ajax lets you…
AJAX and REST. Slide 2 What is AJAX? It’s an acronym for Asynchronous JavaScript and XML Although requests need not be asynchronous It’s not really a.
CMS 2: Advanced Web Editing - Content Presented By: Katie Pagano, Special Projects Manager Steve Pont, Product Architect.
AJAX – Asynchronous JavaScript And XML By Kranthi Kiran Nuthi CIS 764 Kansas State University.
Web 2.0 IS530 Fall 2009 Dr. Dania Bilal. Web 2.0 Is the Web that is being transformed into a computing platform for delivering web applications to end.
Google Map API The Google Maps API lets you embed Google Maps in your own web pages with JavaScript The API provides a number of utilities for manipulating.
Excel Services Displays all or parts of interactive Excel worksheets in the browser –Excel “publish” feature with optional parameters defined in worksheet.
The Internet Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
X2R Spec 1. Change log DateVersionPeopleNote 2013/11/01V0.0.1Chien-Wei Yu, Anderson Ou First draft, add X2R files spec. 2013/12/16V0.0.2Anderson Ou, Doc.
Point Maps Peterson’s Chapter 11 & 12. Points and Point Maps Points – Datum and coordinate systems – geocoding Point Maps – Show where points are (just.
JavaScript and Ajax (Ajax Tutorial)
Chapter 8 Browsing and Searching the Web
AJAX and REST.
Application with Cross-Platform GUI
AJAX.
Asynchronous Java script And XML Technology
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
Fast, free, fun Weebly web sites.
JavaScript & jQuery AJAX.
Types of Spatial Data Sites
Unit 3 Test Building a Web Site Test.
MIS Professor Sandvig MIS 324 Professor Sandvig
JavaScript CS 4640 Programming Languages for Web Applications
Intro to Ajax Fred Stluka Jan 25, 2006.
MIS Professor Sandvig MIS 424 Professor Sandvig
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

Lirida Kerçelli Ayşe Sezer The Google AJAX Search API

Goal of this presentation Show what AJAX Search APIs can do on your pages. Show how easy these APIs are to use. Introduce you to the API’s layered architecture. Show how powerful they are through advanced custom controls. Encourage you to try the Google AJAX Search APIs.

What is AJAX? AJAX (Asynchronous JavaScript and XML), or Ajax, is a web development technique used for creating interactive web applications. Why AJAX? The AJAX’ aim is to make web pages’ download appear faster by exchanging small amounts of data with the server behind the scenes.

What is Google AJAX Search API? Easy way to add Google search to your page Parallel search over Web, Local Listings, Google Video, and Blogs Supports “Clipping” of Search Results Technologies: AJAX JSON HTML Free Sample to left is: ~9 Lines of JavaScript ~10 Lines of HTML

The "Hello, World" of Google AJAX Search API function OnLoad() { var sc = new GSearchControl(); sc.addSearcher(new GlocalSearch()); sc.addSearcher(new GwebSearch()); sc.addSearcher(new GvideoSearch()); sc.addSearcher(new GblogSearch()); sc.draw(searchContainer); sc.execute(“bogazici”); }

Architecture Block Diagram

Execution Timeline Page 9

API Overview GSearchControl – UI Layer to expose multiple search results Common APIs.addSearcher() : add a searcher instance to the search control.draw() : bind a search control to your page.execute() : execute a parallel search across all searchers.setOnKeepCallback() : handler for receiving copies of search results.clearAllResults() : reset the search control.setLinkTarget() : control the link following behavior Expected Operation Sequence sc = new GSearchControl(); sc.addSearcher(); sc.draw();

Architecture Block Diagram

API Overview UI-less object that executes type specific search GwebSearch() : search the web GlocalSearch() : local search results and geo-coding GblogSearch() : search blogs GvideoSearch() : search Google Video Common APIs.execute() : execute a search.setSearchCompleteCallback() : handler for search completion event.setResultSetSize() : select number of results (small or large).setLinkTarget() : control the link following behavior Searcher Class Specific APIs.setSiteRestriction() : site restricted blog, web search.setCenterPoint() : local search scope control (string, map, or point)

Architecture Block Diagram

What is a search result? JavaScript Object Uniform Properties (common across all searchers).GsearchResultClass : indicates “type” of search result.html : HTML node containing microformat based result data Domain Specific Properties.title : the results title.url : the associated page’s url...

Architecture Block Diagram

“Keep Handling” – How do I do it? function OnLoad() { var sc = new GSearchControl(); … // establish keep handler sc.setOnKeepCallback(this, MyKeepHandler); … } function MyKeepHandler(result){ // clone the.html property var node = result.html.cloneNode(true); // append into my document savedResults = document.getElementById(“saveArea”); savedResults.appendChild(node); }

How to use the search API within your web site Sign up for an API key. Include the URL for the Google AJAX Search API javascript library ( FG). This library includes objects and symbols for placing Google Search API results on your pages. Be sure to include this library within a tag before you attempt to use search control functionality.

Screen Shots and Demos

Building a “Lead List” using Search

Local Search Results contain lat/lng

Christmas List

Favorite Places List

Favorite Places List

Resources Have a look at: Google Feed API, Google Map API Google Code AJAX Search API Documentation and Samples Search API Blog Search API Developer Forum Page 24

Questions Page 25