SlideShare uma empresa Scribd logo
1 de 13
AJAX Bharath. P                                             Information Science dept. Sapthagiri college of engineering
What is AJAX? Overview History How it works? Request phase implementation Response phase implementation Examples of Request and Response phase Advantages and Disadvantages Agenda
Asynchronous Javascript and XML. It is a client-side technology that combines a set of known technologies in order to create faster and more user friendly web pages. It provides responsiveness approaching to that of desktop applications. What is AJAX?
AJAX is meant to speed web apps that have frequent user interactions. Technologies used mainly are javascirpt, xml, DOM, css… It shortens the required time for both document transmission and document rendering. When browser requests a new part of its displayed document from the server, it doesn’t lock up waiting for response, thus its Asynchronous. Overview
Use of <iframe> element which is made invisible by setting width and height to zero, although this worked, it was not elegant. Microsoft introduced 2 extensions to DOM with XmlDocument and XmlHtml (XmlHttpRequest) objects. It got popular from 2005/06 with google maps and gmail popularizing it. History
How it works?
Object declaration of type XmlHttpRequest. Registering function that implements the receive phase of the application using onreadystatechange property. Call to open method to set parameters (Http method, URL of response document on the server, Asynchronous or synchronous) for HttpRequest. Call to send method to send the HttpRequest to server. Request phase implementation
Check value of callback from server to see whether processing of request is completed. Get the response using responsetext property of XmlHttprequest object. Display the output in a desired way. Response phase implementation
Varxhr= new XmlHttpRequest(); xhr.onreadystatechange= response; xhr.open(“GET”, “reply.php?....”,true); xhr.send(null); Example of Request phase
Function response()   {   if(xhr.readystate == 4) { var result=xhr.responsetext;   // any desired code   } Example of Response phase
Independent of server technology. Apart from obtaining the XMLHTTP object, all processing is same for all browser types, because Javascript is used. Permits the development of faster and more interactive desktop like interface to users. Advantages
The back button problem. People think that when they press back button, they will return to the last change they made, but in AJAX this does not hold. Requests ActiveX to be enabled in IE 5 and 6Is only available in newer versions of Opera, firefox and Safari Has small implementation differences between browsers Disadvantages
Thank you

Mais conteúdo relacionado

Mais procurados (20)

Ajax Presentation
Ajax PresentationAjax Presentation
Ajax Presentation
 
Ajax
AjaxAjax
Ajax
 
Ajax
AjaxAjax
Ajax
 
M6 l8-ajax-handout
M6 l8-ajax-handoutM6 l8-ajax-handout
M6 l8-ajax-handout
 
AJAX
AJAXAJAX
AJAX
 
Ajax
AjaxAjax
Ajax
 
Pracitcal AJAX
Pracitcal AJAXPracitcal AJAX
Pracitcal AJAX
 
Ajax
Ajax Ajax
Ajax
 
Net core performance
Net core performanceNet core performance
Net core performance
 
Ajax
AjaxAjax
Ajax
 
Ajax
AjaxAjax
Ajax
 
Simple todo app with meteor
Simple todo app with meteorSimple todo app with meteor
Simple todo app with meteor
 
Ajax
AjaxAjax
Ajax
 
Grails Controllers
Grails ControllersGrails Controllers
Grails Controllers
 
Spring batch
Spring batchSpring batch
Spring batch
 
Monitoring Kubernetes with Prometheus
Monitoring Kubernetes with PrometheusMonitoring Kubernetes with Prometheus
Monitoring Kubernetes with Prometheus
 
Metrics by coda hale : to know your app’ health
Metrics by coda hale : to know your app’ healthMetrics by coda hale : to know your app’ health
Metrics by coda hale : to know your app’ health
 
Grokking TechTalk #24: Thiết kế hệ thống Background Job Queue bằng Ruby & Pos...
Grokking TechTalk #24: Thiết kế hệ thống Background Job Queue bằng Ruby & Pos...Grokking TechTalk #24: Thiết kế hệ thống Background Job Queue bằng Ruby & Pos...
Grokking TechTalk #24: Thiết kế hệ thống Background Job Queue bằng Ruby & Pos...
 
Ajax
AjaxAjax
Ajax
 
ASP.NET Lecture 7
ASP.NET Lecture 7ASP.NET Lecture 7
ASP.NET Lecture 7
 

Destaque

Artificial inteligence
Artificial inteligenceArtificial inteligence
Artificial inteligenceSn Kariarikato
 
Freeport: press trip
Freeport: press tripFreeport: press trip
Freeport: press tripPR.Konektor
 
Case study: Český šermířský svaz
Case study: Český šermířský svazCase study: Český šermířský svaz
Case study: Český šermířský svazPR.Konektor
 
Jak sociální média změnila povahu PR
Jak sociální média změnila povahu PRJak sociální média změnila povahu PR
Jak sociální média změnila povahu PRPR.Konektor
 
Case study: digitální PR pro Vincentku
Case study: digitální PR pro VincentkuCase study: digitální PR pro Vincentku
Case study: digitální PR pro VincentkuPR.Konektor
 
Case study: sčítání fanoušků (El Clásico)
Case study: sčítání fanoušků (El Clásico)Case study: sčítání fanoušků (El Clásico)
Case study: sčítání fanoušků (El Clásico)PR.Konektor
 
Case study: PR launch ZUNO bank
Case study: PR launch ZUNO bankCase study: PR launch ZUNO bank
Case study: PR launch ZUNO bankPR.Konektor
 
Case study: Garnier Olia Competition
Case study: Garnier Olia CompetitionCase study: Garnier Olia Competition
Case study: Garnier Olia CompetitionPR.Konektor
 
PENNY: Zákaznický Senát
PENNY: Zákaznický SenátPENNY: Zákaznický Senát
PENNY: Zákaznický SenátPR.Konektor
 
Artificial Intelligence(AI)
Artificial Intelligence(AI)Artificial Intelligence(AI)
Artificial Intelligence(AI)Hari krishnan
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logicgiki67
 

Destaque (13)

Artificial inteligence
Artificial inteligenceArtificial inteligence
Artificial inteligence
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Freeport: press trip
Freeport: press tripFreeport: press trip
Freeport: press trip
 
Case study: Český šermířský svaz
Case study: Český šermířský svazCase study: Český šermířský svaz
Case study: Český šermířský svaz
 
Jak sociální média změnila povahu PR
Jak sociální média změnila povahu PRJak sociální média změnila povahu PR
Jak sociální média změnila povahu PR
 
Case study: digitální PR pro Vincentku
Case study: digitální PR pro VincentkuCase study: digitální PR pro Vincentku
Case study: digitální PR pro Vincentku
 
Case study: sčítání fanoušků (El Clásico)
Case study: sčítání fanoušků (El Clásico)Case study: sčítání fanoušků (El Clásico)
Case study: sčítání fanoušků (El Clásico)
 
Case study: PR launch ZUNO bank
Case study: PR launch ZUNO bankCase study: PR launch ZUNO bank
Case study: PR launch ZUNO bank
 
Case study: Garnier Olia Competition
Case study: Garnier Olia CompetitionCase study: Garnier Olia Competition
Case study: Garnier Olia Competition
 
PENNY: Zákaznický Senát
PENNY: Zákaznický SenátPENNY: Zákaznický Senát
PENNY: Zákaznický Senát
 
Laird ibm-small
Laird ibm-smallLaird ibm-small
Laird ibm-small
 
Artificial Intelligence(AI)
Artificial Intelligence(AI)Artificial Intelligence(AI)
Artificial Intelligence(AI)
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 

Semelhante a Ajax (20)

Ajax
AjaxAjax
Ajax
 
Ajax
AjaxAjax
Ajax
 
Ajax Lecture Notes
Ajax Lecture NotesAjax Lecture Notes
Ajax Lecture Notes
 
Copy of ajax tutorial
Copy of ajax tutorialCopy of ajax tutorial
Copy of ajax tutorial
 
Ajax Introduction
Ajax IntroductionAjax Introduction
Ajax Introduction
 
Unit-5.pptx
Unit-5.pptxUnit-5.pptx
Unit-5.pptx
 
Ajax
AjaxAjax
Ajax
 
M Ramya
M RamyaM Ramya
M Ramya
 
Using Ajax In Domino Web Applications
Using Ajax In Domino Web ApplicationsUsing Ajax In Domino Web Applications
Using Ajax In Domino Web Applications
 
Ajax
AjaxAjax
Ajax
 
SynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client librarySynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client library
 
Ajax presentation
Ajax presentationAjax presentation
Ajax presentation
 
Ajax
AjaxAjax
Ajax
 
Ajax Introduction
Ajax IntroductionAjax Introduction
Ajax Introduction
 
Ajax tutorial by bally chohan
Ajax tutorial by bally chohanAjax tutorial by bally chohan
Ajax tutorial by bally chohan
 
Building Applications Using Ajax
Building Applications Using AjaxBuilding Applications Using Ajax
Building Applications Using Ajax
 
AJAX
AJAXAJAX
AJAX
 
AJAX
AJAXAJAX
AJAX
 
Mashup
MashupMashup
Mashup
 
mukesh
mukeshmukesh
mukesh
 

Último

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 

Último (20)

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 

Ajax

  • 1. AJAX Bharath. P Information Science dept. Sapthagiri college of engineering
  • 2. What is AJAX? Overview History How it works? Request phase implementation Response phase implementation Examples of Request and Response phase Advantages and Disadvantages Agenda
  • 3. Asynchronous Javascript and XML. It is a client-side technology that combines a set of known technologies in order to create faster and more user friendly web pages. It provides responsiveness approaching to that of desktop applications. What is AJAX?
  • 4. AJAX is meant to speed web apps that have frequent user interactions. Technologies used mainly are javascirpt, xml, DOM, css… It shortens the required time for both document transmission and document rendering. When browser requests a new part of its displayed document from the server, it doesn’t lock up waiting for response, thus its Asynchronous. Overview
  • 5. Use of <iframe> element which is made invisible by setting width and height to zero, although this worked, it was not elegant. Microsoft introduced 2 extensions to DOM with XmlDocument and XmlHtml (XmlHttpRequest) objects. It got popular from 2005/06 with google maps and gmail popularizing it. History
  • 7. Object declaration of type XmlHttpRequest. Registering function that implements the receive phase of the application using onreadystatechange property. Call to open method to set parameters (Http method, URL of response document on the server, Asynchronous or synchronous) for HttpRequest. Call to send method to send the HttpRequest to server. Request phase implementation
  • 8. Check value of callback from server to see whether processing of request is completed. Get the response using responsetext property of XmlHttprequest object. Display the output in a desired way. Response phase implementation
  • 9. Varxhr= new XmlHttpRequest(); xhr.onreadystatechange= response; xhr.open(“GET”, “reply.php?....”,true); xhr.send(null); Example of Request phase
  • 10. Function response() { if(xhr.readystate == 4) { var result=xhr.responsetext; // any desired code } Example of Response phase
  • 11. Independent of server technology. Apart from obtaining the XMLHTTP object, all processing is same for all browser types, because Javascript is used. Permits the development of faster and more interactive desktop like interface to users. Advantages
  • 12. The back button problem. People think that when they press back button, they will return to the last change they made, but in AJAX this does not hold. Requests ActiveX to be enabled in IE 5 and 6Is only available in newer versions of Opera, firefox and Safari Has small implementation differences between browsers Disadvantages