PHP and AJAX. Servers and Clients For many years we tried to move as much as possible to the server. Weak clients, poor bandwidth, browser compatibility..

Slides:



Advertisements
Similar presentations
WEB 2.0. What we are speaking about… Transformation of WEB, the WEB 2.0 –New generation of websites… –Importance of Open Data… –Importance of Users… –Web.
Advertisements

AJAX : Technology Evaluation Bryan Jones Philip Lim Fred Lo Warren Wang.
6/3/2015eBiquity1 Tutorial on AJAX Anubhav Kale (akale1 AT cs DOT umbc DOT edu)
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Administrative  Philosophy  Class survey  Grading  Proposal (5 points max)  Small projects (10 points each max)  Project (40 points max)  Presentation.
IS 360 Course Introduction. Slide 2 What you will Learn (1) The role of Web servers and clients How to create HTML, XHTML, and HTML 5 pages suitable for.
AJAX asynchronous server-client communication. Test.
WHAT IS AJAX? Zack Sheppard [zts2101] WHIM April 19, 2011.
Multiple Tiers in Action
Administrative  Philosophy  Class survey  Grading  Project  Presentation.
1 JavaScript & AJAX CS , Spring JavaScript.
E-Commerce The technical side. LAMP Linux Linux Apache Apache MySQL MySQL PHP PHP All Open Source and free packages. Can be installed and run on most.
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
ITM352 Javascript and Dynamic Web Pages: Client Side Processing.
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
Making AJAX Easy with jQuery Chris Renner Health Systems Analyst Programmer & Informatics Manager VUMC Office of Grants & Contracts Management October.
IT 210 The Internet & World Wide Web introduction.
Introduction to AJAX AJAX Keywords: JavaScript and XML
Ruth Betcher Ruth Christie
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Lecture 12 – AJAX SFDV3011 – Advanced Web Development Reference: 1.
AJAX Without the “J” George Lawniczak. What is Ajax?
An Idiosyncratic History of Web-Page Generation Denise Draper Dev Manager Webdata XML Microsoft.
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
AJAX and Atlas in ASP.NET 2.0 William J. Steele MSDN Developer Evangelist Microsoft Corporation
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
Instructor, Dr. Khalili Bahram Jeevan Kumar Gogineni.
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
Asterisk based real-time social chat Advisor : Lian-Jou Tsai Student : Jhe-Yu Wu.
Weekend MS CS Program Internet and Web Technologies COT 5930 Web Project Development - Ajax Dr. Roy Levow, Associate Chair & Professor
Understanding AJAX Hype, Hope, Hurt and Help for the Web MJTS May 4th, 2006 _________________________ Terence Conklin, Conklin Systems
WEB SCIENCE. What is the difference between the Internet and the World Wide Web? Internet is the entire network of connected computers and routers used.
Ventsislav Popov Crossroad Ltd.. 1. What is AJAX?  AJAX Concept  ASP.NET AJAX Framework 2. ASP.NET AJAX Server Controls  ScriptManager, UpdatePanel.
AJAX (also known as: XMLHTTP, Remote Scripting, XMLHttpRequest, etc.) Matt Warden.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Web Architecture Introduction
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
Web Technology Introduction AJAXAJAX. AJAX Outline  What is AJAX?  Benefits  Real world examples  How it works  Code review  Samples.
School of Computing and Information Systems CS 371 Web Application Programming AJAX.
the acronym for Asynchronous JavaScript and XML.
Ajax for Dynamic Web Development Gregory McChesney.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
 AJAX – Asynchronous JavaScript and XML  Ajax is used to develop fast dynamic web applications  Allows web pages to be updated asynchronously by transferring.
AJAX Asynchronous JavaScript and XML 1. AJAX Outline What is AJAX? Benefits Real world examples How it works 2.
CHAPTER 13 COMMUNICATING WITH AJAX. LEARNING OBJECTIVES AJAX, which stands for Asynchronous JavaScript and XMLprovides a way for a browser to send and.
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.
October 7 th, 2010 SDU Webship. What did we learn last week? jQuery makes it really easy to select elements and do stuff with them. jQuery can process.
Display Page (HTML/CSS)
Introduction to the World Wide Web & Internet CIS 101.
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.
INNOV-2: Build a Better Web Interface Using AJAX Chris Morgan Pandora Software Systems
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
 AJAX technology  Rich User Experience  Characteristics  Real live examples  JavaScript and AJAX  Web application workflow model – synchronous vs.
NCCUCS 軟體工程概論 Lecture 5: Ajax, Mashups April 29, 2014.
I NTRO TO W EB TECHNOLOGY Basic terms. C LIENT – S ERVER M ODEL a distributed communication between service requestors and service providers.
JavaScript and Ajax (Ajax Tutorial)
CS 371 Web Application Programming
AJAX – Asynchronous JavaScript and XML
Asynchronous Java script And XML Technology
AJAX.
IS 360 Course Introduction
COP 3813 Intro to Internet Computing
Secure Web Programming
AJAX CS-422 Dick Steflik.
DR. JOHN ABRAHAM PROFESSOR UTPA
Creating dynamic/interactive web pages
AJAX By Prof. B.A.Khivsara
Presentation transcript:

PHP and AJAX

Servers and Clients For many years we tried to move as much as possible to the server. Weak clients, poor bandwidth, browser compatibility.. Created a certain way of interacting with a website. Request – Response model.

Clients and Servers Client machines have become much more powerful. You’re not using much of your duel core processor rendering a webpage Bandwidth has increased dramatically 9.5 million broadband users in the UK (2006, BBC) “Broadband now makes up 57.4% of all net connections compared to 42.6% for dial-up. In the last year dial-up connections had shrunk by 28.7%” (2005, BBC) 14,520,988 Q (

Clients and Servers Browsers now run JavaScript in a more predictable manner. So the technology is ready for AJAX but what is it?

What isn't AJAX A Language A Technology A Plug-in Proprietary All that hard The answer to all of our dreams

What is AJAX? Asynchronous JavaScript and XML  What is asynchronous? Uses JavaScript and XML to create seamless interaction on a website. Lots of CSS sites look ‘real purty’ but still have the response/request model of interaction. Using Obvious forms for their interaction.

AJAX “It uses the JavaScript XMLHttpRequest function to create a tunnel from the client's browser to the server and transmit information back and forth without having to refresh the page.” Ajax has become synonymous with any rich web application or Web 2.0 / 3.0 application.

PHP and Ajax XMLHttpRequest Object “XMLHttpRequest (XHR) is an API that can be used by JavaScript, and other web browser scripting languages to transfer XML and other text data to and from a web server using HTTP, by establishing an independent communication channel between a web page's Client-Side and Server-Side.” - Wiki Created in IE: var AlsAjaxObject = new ActiveXObject("Microsoft.XMLHTTP"); In other browsers: var AlsAjaxObject = new XMLHttpRequest();

Demos Image Editor Text Stuff Google Suggests Google Maps

Some tutorials ase.asp ase.asp os-php-rad1/ os-php-rad1/ php php php php3 ating-a-mysql-connection-with-phpajax/ ating-a-mysql-connection-with-phpajax/

Links – Further Reading Whats_Ajax Whats_Ajax og/comments/round_up_of_50_ajax_toolki ts_and_frameworks/ og/comments/round_up_of_50_ajax_toolki ts_and_frameworks/ rogramming/xmlhttprequest/examples rogramming/xmlhttprequest/examples