SlideShare uma empresa Scribd logo
1 de 13
Baixar para ler offline
AJAX for Libraries


 Jason A. Clark
 Head of Digital Access and Web Services
 Montana State University Libraries

 Karen A. Coombs
 Head of Web Services
 University of Houston Libraries




                    Outline
1. What you’re in for…

2. What’s AJAX?

3. Why AJAX?

4. Look at some AJAX examples

5. AJAX for Libraries

6. Walkthrough sample AJAX application
What you’re in for…
A discussion about an emerging web
application framework

An introduction to the essential elements of
AJAX

How does AJAX fit into libraries?

Walkthrough the code of a working AJAX
application




        What is AJAX?
Asynchronous Javascript and XML

    Not all AJAX apps involve XML

Combination of technologies


    XHTML, CSS, DOM


    XML, XSLT, XMLHttp, JavaScript


    Some server scripting language

A method for building more responsive
AJAX Components
XHTML and CSS
Ajax applies these familiar Web standards for styling the look and feel of a page and to
markup those areas on a page that will be targeted for data updates.

DOM (document object model)
Ajax uses the DOM to manipulate dynamic page views for data and to walkthrough
documents to “cherrypick” data. The DOM enables certain pieces of an Ajax page to be
transformed and updated with data.

XML, JSON (Javascript Object Notation), HTML, or plain text
Ajax can use any of these standards to provide structure to the data it passes to and from a
page.

XMLHttpRequest object
The heavy lifter for Ajax: It’s a javascript object embedded in most modern browsers that sets
up data request/response pipelines between client and server.

Javascript
Lightweight programming language that Ajax uses for instructions to bind all of the
components together.




                          Why AJAX?
      Want to make your applications more interactive

      Want to incorporate data from external Web
      Services

      Don’t want your users to have to download a plugin
Client vs. Server
          Scripting
Client scripting

   Web browser does all the work

Server Scripting


   Web server does all the work

AJAX leverages both client and server side
scripting




      How AJAX Works
AJAX Web Interaction
What you don’t see

Data reload happens in the background

JavaScript queries the server to get the
proper data without you knowing it

Page updates without a screen “reload”




    Potential Problems
  Javascript MUST be enabled

  Back button doesn’t always work

  Pages can be difficult to bookmark

  Search engines may not be able to index all
  portions of an AJAX site

  Cross browser differences in how XML is
  dealt with
AJAX and Accessibility

AJAX done correctly can help with accessibility
issues
   Dynamic content such as
     Tabs
     Smart Forms

Use href and onClick in conjunction to deal with
Javascript being disabled




  Some AJAX examples
   Google Calendar

   Flickr

   del.icio.us

   LibraryThing

   Backpack
AJAX Components
 Server-side Component

    Communicates with the database, or web
    service

    Can be written in any server-side language
    (PHP, ASP, Coldfusion, etc)

 Client-side Component


    Written in Javascript, often uses XMLHttp


    Accesses the server side page in the
    background


 AJAX Script Libraries
 You could choose to write AJAX code from
 scratch

 Or you can use a script library
 faster, more consistent, better code

 Prototype
 script.aculo.us
 MooTools
 jQuery

 * Google: AJAX Libraries API
 (http://code.google.com/apis/ajaxlibs/)
AJAX Script Libraries
Script libraries are very similar
Always being updated and improved
Make sure you keep your code up to date
Take advantage of new features and functions when they
come out
Some systems come with built in script libraries
    Coldfusion 8 comes with Prototype
Some open source software is built on a pre-existing script
library
    Wordpress utilizes Prototype
Can use script libraries in combination but only do so if
absolutely necessary




       Potential Uses for
             AJAX
    Error checking in Forms

    AutoSuggest

    Drag and Drop objects functionality

    Dynamically move view around on image or
    map

    Preload content you want to show later

    Apply limits to search results and get new
    results quickly
AJAX for Libraries
     Browsing subject headings

     “Pre-displaying” indexes and databases
     categories

     Complex ILL or contact forms

     Federated Search

     OPAC and digital library interfaces




       AJAX - Library Use
             Cases
SingleSearch - Curtain University Library (http://apps.
library.curtin.edu.au/singlesearch/search.cgi)

Content Panes - TERRA: The Nature of Our World
Montana State University Libraries
(http://lifeonterra.com)

Guesstimate - Virginia Tech Libraries (http://addison.vt.
edu)
Code Samples and Downloads
       People @ the Library (XML)
       http://www.lib.montana.edu/~jason/files/ajax/list/

       Yahoo! News Search @ the Library (JSON)
       http://www.lib.montana.edu/~jason/files/ajax/search/

       Contact the Library (Feedback and Validation)
       http://www.lib.montana.edu/~jason/files/ajax/validate/

       People @ the Library (HTML and Feedback)
       http://www.lib.montana.edu/~jason/files/ajax/show/

       Code Library Examples (Prototype and MooTools)
       http://www.librarywebchic.
       net/presentations/internetlibrarian2008/ajax.zip




           AJAX – Sample
             Applications
People @ the Library (HTML and Feedback)
http://www.lib.montana.edu/~jason/files/ajax/show/

BrowseSearch Library of Congress Subject Headings
http://www.lib.montana.edu/~jason/files/ajax/browsesearch/

Javascript AJAX Code Libraries Examples

   Hello User Example (Prototype JS Library)
   WorldCat Search API (Prototype JS Library)
   WorldCat Search API (MooTools JS Library)

*Download files from http://www.lib.montana.edu/~jason/files.php
AJAX and APIs
Data available on the web for
libraries to access via APIs

   LibraryThing API
   Google Books Availability API
   WorldCat API
   Google and Yahoo Maps




    AJAX and APIs Examples
TAMU Geologic Atlas of the United States - http:
//repository.tamu.edu/handle/1969.1/2490

Plymouth State University Lampson Library
Catalog - http://library.plymouth.edu/read/184908

National Library of Australia Library Labs - http:
//ll01.nla.gov.au/search.jsp?searchTerm=enigma
Studying AJAX in the Wild

 TERRA: The Nature of Our World
   Tabbed Environment
   Comments
   Ratings
   Pros and Cons - page views, instant feedback, web stats
   can be problematic




    Studying AJAX in the Wild
UH Libraries CMS
 staff only interface
 ability to seamlessly edited multiple parts of the
 screen
 can control what browser people use
 No other way to create this type of interface for
 updating content
 old interface klunky and frustrating for staff
Final thoughts – What’s
           Next?
         That’s AJAX and AJAX applications in a
         nutshell.

         Consider AJAX advantages and
         disadvantages

         Fundamentals of method are there

         Keep practicing and learning




       Contact Information
Karen Coombs

University of Houston Libraries
Web Services Librarian
kacoombs@uh.edu
http://librarywebchic.net/
713-743-3713

Jason A. Clark

Montana State University Libraries
Head of Digital Access and Web Services
jaclark@montana.edu
www.jasonclark.info
406-994-6801

Mais conteúdo relacionado

Mais procurados

Using Ajax In Domino Web Applications
Using Ajax In Domino Web ApplicationsUsing Ajax In Domino Web Applications
Using Ajax In Domino Web Applicationsdominion
 
Advantages and disadvantages of an ajax based client application
Advantages and disadvantages of an ajax based client applicationAdvantages and disadvantages of an ajax based client application
Advantages and disadvantages of an ajax based client applicationPlacinta Alin
 
Ajax presentation
Ajax presentationAjax presentation
Ajax presentationengcs2008
 
Introduction to ajax
Introduction  to  ajaxIntroduction  to  ajax
Introduction to ajaxPihu Goel
 
What is Ajax technology?
What is Ajax technology?What is Ajax technology?
What is Ajax technology?JavaTpoint.Com
 
Asynchronous JavaScript & XML (AJAX)
Asynchronous JavaScript & XML (AJAX)Asynchronous JavaScript & XML (AJAX)
Asynchronous JavaScript & XML (AJAX)Adnan Sohail
 
An Introduction to Ajax Programming
An Introduction to Ajax ProgrammingAn Introduction to Ajax Programming
An Introduction to Ajax Programminghchen1
 
Ajax:From Desktop Applications towards Ajax Web Applications
Ajax:From Desktop Applications towards Ajax Web ApplicationsAjax:From Desktop Applications towards Ajax Web Applications
Ajax:From Desktop Applications towards Ajax Web ApplicationsSiva Kumar
 
Introduction to ajax
Introduction to ajaxIntroduction to ajax
Introduction to ajaxNir Elbaz
 
Ajax Introduction Presentation
Ajax   Introduction   PresentationAjax   Introduction   Presentation
Ajax Introduction Presentationthinkphp
 

Mais procurados (20)

Ajax presentation
Ajax presentationAjax presentation
Ajax presentation
 
Using Ajax In Domino Web Applications
Using Ajax In Domino Web ApplicationsUsing Ajax In Domino Web Applications
Using Ajax In Domino Web Applications
 
Advantages and disadvantages of an ajax based client application
Advantages and disadvantages of an ajax based client applicationAdvantages and disadvantages of an ajax based client application
Advantages and disadvantages of an ajax based client application
 
Ajax
AjaxAjax
Ajax
 
Ajax.ppt
Ajax.pptAjax.ppt
Ajax.ppt
 
Ajax presentation
Ajax presentationAjax presentation
Ajax presentation
 
Ajax
AjaxAjax
Ajax
 
Introduction to ajax
Introduction  to  ajaxIntroduction  to  ajax
Introduction to ajax
 
Introduction to ajax
Introduction to ajaxIntroduction to ajax
Introduction to ajax
 
What is Ajax technology?
What is Ajax technology?What is Ajax technology?
What is Ajax technology?
 
Ajax Presentation
Ajax PresentationAjax Presentation
Ajax Presentation
 
Asynchronous JavaScript & XML (AJAX)
Asynchronous JavaScript & XML (AJAX)Asynchronous JavaScript & XML (AJAX)
Asynchronous JavaScript & XML (AJAX)
 
An Introduction to Ajax Programming
An Introduction to Ajax ProgrammingAn Introduction to Ajax Programming
An Introduction to Ajax Programming
 
Ajax:From Desktop Applications towards Ajax Web Applications
Ajax:From Desktop Applications towards Ajax Web ApplicationsAjax:From Desktop Applications towards Ajax Web Applications
Ajax:From Desktop Applications towards Ajax Web Applications
 
Introduction to ajax
Introduction to ajaxIntroduction to ajax
Introduction to ajax
 
Ajax Introduction Presentation
Ajax   Introduction   PresentationAjax   Introduction   Presentation
Ajax Introduction Presentation
 
Ajax and PHP
Ajax and PHPAjax and PHP
Ajax and PHP
 
Ajax PPT
Ajax PPTAjax PPT
Ajax PPT
 
Ajax Ppt
Ajax PptAjax Ppt
Ajax Ppt
 
Webdevelopment
WebdevelopmentWebdevelopment
Webdevelopment
 

Destaque

What works online
What works online What works online
What works online Kristy G
 
Web Technologies for the Classroom
Web Technologies for the ClassroomWeb Technologies for the Classroom
Web Technologies for the ClassroomKristy G
 
Anagnostou serious games in education v2
Anagnostou   serious games in education v2Anagnostou   serious games in education v2
Anagnostou serious games in education v2kostasan
 
Houston / Galveston PIO Nework Social Media Training (ppt)
Houston / Galveston PIO Nework Social Media Training (ppt)Houston / Galveston PIO Nework Social Media Training (ppt)
Houston / Galveston PIO Nework Social Media Training (ppt)Nate Ritter
 
CLÍNICA DE MEDICINAS ALTERNATIVAS
CLÍNICA DE MEDICINAS ALTERNATIVASCLÍNICA DE MEDICINAS ALTERNATIVAS
CLÍNICA DE MEDICINAS ALTERNATIVASJuan Krishna Vedani
 
STAVCON 08 Web 2.0 and PowerPoint workshop
STAVCON 08 Web 2.0 and PowerPoint workshopSTAVCON 08 Web 2.0 and PowerPoint workshop
STAVCON 08 Web 2.0 and PowerPoint workshopKristy G
 

Destaque (7)

What works online
What works online What works online
What works online
 
Web Technologies for the Classroom
Web Technologies for the ClassroomWeb Technologies for the Classroom
Web Technologies for the Classroom
 
Anagnostou serious games in education v2
Anagnostou   serious games in education v2Anagnostou   serious games in education v2
Anagnostou serious games in education v2
 
Houston / Galveston PIO Nework Social Media Training (ppt)
Houston / Galveston PIO Nework Social Media Training (ppt)Houston / Galveston PIO Nework Social Media Training (ppt)
Houston / Galveston PIO Nework Social Media Training (ppt)
 
CLÍNICA DE MEDICINAS ALTERNATIVAS
CLÍNICA DE MEDICINAS ALTERNATIVASCLÍNICA DE MEDICINAS ALTERNATIVAS
CLÍNICA DE MEDICINAS ALTERNATIVAS
 
Behind The Logo
Behind The LogoBehind The Logo
Behind The Logo
 
STAVCON 08 Web 2.0 and PowerPoint workshop
STAVCON 08 Web 2.0 and PowerPoint workshopSTAVCON 08 Web 2.0 and PowerPoint workshop
STAVCON 08 Web 2.0 and PowerPoint workshop
 

Semelhante a Ajax for Libraries

Lessons from the Trenches: Engineering Great AJAX Experiences
Lessons from the Trenches: Engineering Great AJAX ExperiencesLessons from the Trenches: Engineering Great AJAX Experiences
Lessons from the Trenches: Engineering Great AJAX Experiencesgoodfriday
 
Web 2.0 Mimbar Ilmiah
Web 2.0 Mimbar IlmiahWeb 2.0 Mimbar Ilmiah
Web 2.0 Mimbar IlmiahSoetam Rizky
 
Ruby On Rails Siddhesh
Ruby On Rails SiddheshRuby On Rails Siddhesh
Ruby On Rails SiddheshSiddhesh Bhobe
 
Ajax Using JSP with prototype.js
Ajax Using JSP with prototype.jsAjax Using JSP with prototype.js
Ajax Using JSP with prototype.jsTushar Chauhan
 
M6 l8-ajax-handout
M6 l8-ajax-handoutM6 l8-ajax-handout
M6 l8-ajax-handoutNolboo Kim
 
Ajax Presentation
Ajax PresentationAjax Presentation
Ajax Presentationronaldmam
 
Krug Fat Client
Krug Fat ClientKrug Fat Client
Krug Fat ClientPaul Klipp
 
Angular jS Introduction by Google
Angular jS Introduction by GoogleAngular jS Introduction by Google
Angular jS Introduction by GoogleASG
 
TSSJS2010 Presenatation on: Performance Anti Patterns In Ajax Applications
TSSJS2010 Presenatation on: Performance Anti Patterns In Ajax ApplicationsTSSJS2010 Presenatation on: Performance Anti Patterns In Ajax Applications
TSSJS2010 Presenatation on: Performance Anti Patterns In Ajax Applicationsguestc75cdc
 
Performance anti patterns in ajax applications
Performance anti patterns in ajax applicationsPerformance anti patterns in ajax applications
Performance anti patterns in ajax applicationsSergeyChernyshev
 

Semelhante a Ajax for Libraries (20)

Ajax
AjaxAjax
Ajax
 
M Ramya
M RamyaM Ramya
M Ramya
 
25250716 seminar-on-ajax text
25250716 seminar-on-ajax text25250716 seminar-on-ajax text
25250716 seminar-on-ajax text
 
Ajax
AjaxAjax
Ajax
 
Ajax
AjaxAjax
Ajax
 
Ajax
AjaxAjax
Ajax
 
Lessons from the Trenches: Engineering Great AJAX Experiences
Lessons from the Trenches: Engineering Great AJAX ExperiencesLessons from the Trenches: Engineering Great AJAX Experiences
Lessons from the Trenches: Engineering Great AJAX Experiences
 
Lessons
LessonsLessons
Lessons
 
AJAX
AJAXAJAX
AJAX
 
Web 2.0 Mimbar Ilmiah
Web 2.0 Mimbar IlmiahWeb 2.0 Mimbar Ilmiah
Web 2.0 Mimbar Ilmiah
 
Ruby On Rails Siddhesh
Ruby On Rails SiddheshRuby On Rails Siddhesh
Ruby On Rails Siddhesh
 
Ajax Using JSP with prototype.js
Ajax Using JSP with prototype.jsAjax Using JSP with prototype.js
Ajax Using JSP with prototype.js
 
Web 2 0 Tools
Web 2 0 ToolsWeb 2 0 Tools
Web 2 0 Tools
 
M6 l8-ajax-handout
M6 l8-ajax-handoutM6 l8-ajax-handout
M6 l8-ajax-handout
 
Ajax Presentation
Ajax PresentationAjax Presentation
Ajax Presentation
 
AJAX
AJAXAJAX
AJAX
 
Krug Fat Client
Krug Fat ClientKrug Fat Client
Krug Fat Client
 
Angular jS Introduction by Google
Angular jS Introduction by GoogleAngular jS Introduction by Google
Angular jS Introduction by Google
 
TSSJS2010 Presenatation on: Performance Anti Patterns In Ajax Applications
TSSJS2010 Presenatation on: Performance Anti Patterns In Ajax ApplicationsTSSJS2010 Presenatation on: Performance Anti Patterns In Ajax Applications
TSSJS2010 Presenatation on: Performance Anti Patterns In Ajax Applications
 
Performance anti patterns in ajax applications
Performance anti patterns in ajax applicationsPerformance anti patterns in ajax applications
Performance anti patterns in ajax applications
 

Último

social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 

Último (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

Ajax for Libraries

  • 1. AJAX for Libraries Jason A. Clark Head of Digital Access and Web Services Montana State University Libraries Karen A. Coombs Head of Web Services University of Houston Libraries Outline 1. What you’re in for… 2. What’s AJAX? 3. Why AJAX? 4. Look at some AJAX examples 5. AJAX for Libraries 6. Walkthrough sample AJAX application
  • 2. What you’re in for… A discussion about an emerging web application framework An introduction to the essential elements of AJAX How does AJAX fit into libraries? Walkthrough the code of a working AJAX application What is AJAX? Asynchronous Javascript and XML Not all AJAX apps involve XML Combination of technologies XHTML, CSS, DOM XML, XSLT, XMLHttp, JavaScript Some server scripting language A method for building more responsive
  • 3. AJAX Components XHTML and CSS Ajax applies these familiar Web standards for styling the look and feel of a page and to markup those areas on a page that will be targeted for data updates. DOM (document object model) Ajax uses the DOM to manipulate dynamic page views for data and to walkthrough documents to “cherrypick” data. The DOM enables certain pieces of an Ajax page to be transformed and updated with data. XML, JSON (Javascript Object Notation), HTML, or plain text Ajax can use any of these standards to provide structure to the data it passes to and from a page. XMLHttpRequest object The heavy lifter for Ajax: It’s a javascript object embedded in most modern browsers that sets up data request/response pipelines between client and server. Javascript Lightweight programming language that Ajax uses for instructions to bind all of the components together. Why AJAX? Want to make your applications more interactive Want to incorporate data from external Web Services Don’t want your users to have to download a plugin
  • 4. Client vs. Server Scripting Client scripting Web browser does all the work Server Scripting Web server does all the work AJAX leverages both client and server side scripting How AJAX Works
  • 5. AJAX Web Interaction What you don’t see Data reload happens in the background JavaScript queries the server to get the proper data without you knowing it Page updates without a screen “reload” Potential Problems Javascript MUST be enabled Back button doesn’t always work Pages can be difficult to bookmark Search engines may not be able to index all portions of an AJAX site Cross browser differences in how XML is dealt with
  • 6. AJAX and Accessibility AJAX done correctly can help with accessibility issues Dynamic content such as Tabs Smart Forms Use href and onClick in conjunction to deal with Javascript being disabled Some AJAX examples Google Calendar Flickr del.icio.us LibraryThing Backpack
  • 7. AJAX Components Server-side Component Communicates with the database, or web service Can be written in any server-side language (PHP, ASP, Coldfusion, etc) Client-side Component Written in Javascript, often uses XMLHttp Accesses the server side page in the background AJAX Script Libraries You could choose to write AJAX code from scratch Or you can use a script library faster, more consistent, better code Prototype script.aculo.us MooTools jQuery * Google: AJAX Libraries API (http://code.google.com/apis/ajaxlibs/)
  • 8. AJAX Script Libraries Script libraries are very similar Always being updated and improved Make sure you keep your code up to date Take advantage of new features and functions when they come out Some systems come with built in script libraries Coldfusion 8 comes with Prototype Some open source software is built on a pre-existing script library Wordpress utilizes Prototype Can use script libraries in combination but only do so if absolutely necessary Potential Uses for AJAX Error checking in Forms AutoSuggest Drag and Drop objects functionality Dynamically move view around on image or map Preload content you want to show later Apply limits to search results and get new results quickly
  • 9. AJAX for Libraries Browsing subject headings “Pre-displaying” indexes and databases categories Complex ILL or contact forms Federated Search OPAC and digital library interfaces AJAX - Library Use Cases SingleSearch - Curtain University Library (http://apps. library.curtin.edu.au/singlesearch/search.cgi) Content Panes - TERRA: The Nature of Our World Montana State University Libraries (http://lifeonterra.com) Guesstimate - Virginia Tech Libraries (http://addison.vt. edu)
  • 10. Code Samples and Downloads People @ the Library (XML) http://www.lib.montana.edu/~jason/files/ajax/list/ Yahoo! News Search @ the Library (JSON) http://www.lib.montana.edu/~jason/files/ajax/search/ Contact the Library (Feedback and Validation) http://www.lib.montana.edu/~jason/files/ajax/validate/ People @ the Library (HTML and Feedback) http://www.lib.montana.edu/~jason/files/ajax/show/ Code Library Examples (Prototype and MooTools) http://www.librarywebchic. net/presentations/internetlibrarian2008/ajax.zip AJAX – Sample Applications People @ the Library (HTML and Feedback) http://www.lib.montana.edu/~jason/files/ajax/show/ BrowseSearch Library of Congress Subject Headings http://www.lib.montana.edu/~jason/files/ajax/browsesearch/ Javascript AJAX Code Libraries Examples Hello User Example (Prototype JS Library) WorldCat Search API (Prototype JS Library) WorldCat Search API (MooTools JS Library) *Download files from http://www.lib.montana.edu/~jason/files.php
  • 11. AJAX and APIs Data available on the web for libraries to access via APIs LibraryThing API Google Books Availability API WorldCat API Google and Yahoo Maps AJAX and APIs Examples TAMU Geologic Atlas of the United States - http: //repository.tamu.edu/handle/1969.1/2490 Plymouth State University Lampson Library Catalog - http://library.plymouth.edu/read/184908 National Library of Australia Library Labs - http: //ll01.nla.gov.au/search.jsp?searchTerm=enigma
  • 12. Studying AJAX in the Wild TERRA: The Nature of Our World Tabbed Environment Comments Ratings Pros and Cons - page views, instant feedback, web stats can be problematic Studying AJAX in the Wild UH Libraries CMS staff only interface ability to seamlessly edited multiple parts of the screen can control what browser people use No other way to create this type of interface for updating content old interface klunky and frustrating for staff
  • 13. Final thoughts – What’s Next? That’s AJAX and AJAX applications in a nutshell. Consider AJAX advantages and disadvantages Fundamentals of method are there Keep practicing and learning Contact Information Karen Coombs University of Houston Libraries Web Services Librarian kacoombs@uh.edu http://librarywebchic.net/ 713-743-3713 Jason A. Clark Montana State University Libraries Head of Digital Access and Web Services jaclark@montana.edu www.jasonclark.info 406-994-6801