SlideShare a Scribd company logo
HTML, Javascript and Ajax
By wanleung (20th Feb, 2021)
Web Technology
- BackEnd
- FrontEnd
Backend
- Web servers
- HTML Pages, Data, etc from the web server.
- HTTP protocol (GET, POST)
- Web services, CGI, SOAP, API, Restful API….
- Php, Perl, Javascript (nodejs), Python, Java, Ruby, Go, Rust, C# …...
Frontend
- Web Browser
- HTML, CSS, Javascript, XML, json
- Ajax.
- (old) jQuery, Prototype….
- (latest) ReactJS, AnglurJS, Vue.
HTML
HyperText Markup Language
Sir Timothy John Berners-Lee (TimBL)
1993 1st release.
Concept in 1989, inspire from SGML (Standard Generalized Markup Language,
1986) and IBM GML from 60s.
HTML
HTML Tags
<html>
<head><title>Testing</title></head>
<body></body>
<h1>Hello</h1>
<p>I am 1st line. <br /> I am 2nd line</p>
</html>
HTML
<span></span> - is an inline container used to mark up a part of a text, or a part of
a document.
<div></div> - defines a division or a section in an HTML document.
HTML
HTML5
Canvas
Drag and Drop
Media support
WebRTC
WebStoarge
etc...
XML
Extensible Markup Language
1996. Inspire from the simplicity of HTML.
For Data.
Human readable.
XML
<tag></tag>
<tag attr=”value”></tag>
<emptyline />
XML
<name>
<firstname>Bob</firstname>
<lastname>Foo</lastname>
</name>
<name>
<firstname>Chris</firstname>
<lastname>Bar</lastname>
</name>
DOM
Document Object Model
Data Structure - Tree
DOM
CSS
Cascading Style Sheet
In a much easier way to control web layout and style such as colour, margin,
padding, font type and side.
CSS
CSS
CSS
CSS
. = class
# = id
CSS
Frameworks:
- Bootstrap
- Foundation
Javascript
Javascript is a scripting language run on browsers.
developed by Netscape 1995.
Javascript is not Java.
Microsoft reverse engineering on Netscape and developed JSscript and CSS on
IE in 1996.
As the browser war, Javascript and JSscript although the syntax are almost the
same, they are not fully compatible between different browsers.
Javascript
Netscape fight back: Standardization
Submitted Javascript to ECMA International in 1996, becoming ECMAScript 1.0 in
1997.
ECMAScript 2.0 in 1998, ECMAScript 3.0 in 1999, ECMAScript 4.0 in 2000.
But as IE had a market share 95% in 2000s, JSscript was the de facto standard,
and not very helpful on the working of standardization. It was the nightmare at the
time.
During the time Microsoft was pushing its VBscript. Adobe was pushing its
Actionscript.
Javascript
Turning Point: 2005
Jesse James Garrett release a white paper on the concept of AJAX.
Asynchronous Javascript and XML
Using the benefit of ECMAScript4 (ES4), XML and other technology on browser,
such as DOM, to handling the GET / POST call and data processing at the
background. So, user will no longer recognize the page refreshing whole page
when updating data.
Javascript
A lot of opensource communities supporting the new technology AJAX.
jQuery, Prototype, Dojo.
Firefox and Webkit (Safari)
Google was working on the new browser Chromium release the V8 Javascript
engine in 2008.
Javascript
Finally, all the parties had a conference in Oslo 2008. This led to the eventual
agreement in early 2009 to combine all relevant work and drive the language
forward. The result was the ECMAScript 5 standard, released in December 2009,
which we also called it as ES5.
ECMAScript 6 (ES6) in 2015.
Javascript
But at the moment, it is still not every browsers implement to support HTML5,
CSS3 and ES6.
There are still a very little part that the output is not the same in every browsers
with the same code. But it is far better before 2008 and becoming better.
AJAX
Asynchronous JavaScript and XML
- is a set of web development techniques using many web technologies on the
client-side to create asynchronous web applications. With Ajax, web
applications can send and retrieve data from a server asynchronously (in the
background) without interfering with the display and behaviour of the existing
page.
AJAX
Using Javascript to handle the DOM tree.
And use XML as the format of the data transmission via HTTP protocol.
AJAX
DOM
XML
Problem:
Network traffic need cost.
<tag></tag> format wastes too much traffic
Slim down data traffic solution: JSON
JSON
JavaScript Object Notation
JSON
JSON
JSON
JSON
JSON
JSON
XML
<name>
<firstname>Bob</firstname>
<lastname>Foo</lastname>
</name>
<name>
<firstname>Chris</firstname>
<lastname>Bar</lastname>
</name>
JSON
{ “name” : [
{“firstname”: “Bob”, “lastname”: “Foo”},
{“firstname” : “Chris”, “lastname”: “Bar”}
]
}
Coding
First. Download VSCode
Coding
After install:
Coding
Click to open the extension tab
Coding
Search “Live Server”, “Browser Preview” and “open in browser” and install
HTML, Javascript and AJAX
Download
http://office.ben7.net/javascript-test.zip
Editing HTML
Right click the editor,
and then choose
“open with live server”
AJAX JSON TEST URL
http://office.ben7.net/1823_statistic.json

More Related Content

What's hot (17)

ODP
Javascript Update May 2013
RameshNair6
 
PPTX
Level 101 for Presto: What is PrestoDB?
Ali LeClerc
 
PPTX
Martin Splitt "A short history of the web"
Fwdays
 
PDF
Why and How You Should Move from PHP to Node.js
Brainhub
 
PDF
Webpack
Jozef Spisiak
 
PDF
The Problems and Promise of WebAssembly
Priyanka Aash
 
KEY
Redis
Ramon Wartala
 
KEY
English Casual 2012/05/10
Ryosuke IWANAGA
 
PPTX
What does JavaScript
Sachirou Inoue
 
PDF
Ajax Introduction Presentation
thinkphp
 
PPTX
MongoDB Introduction - Document Oriented Nosql Database
Sudhir Patil
 
PDF
Post-relational databases: What's wrong with web development?
Dobrica Pavlinušić
 
PDF
NoSQL solutions
Felix Crisan
 
PDF
MongoTorino 2013 Opening Keynote
Mitch Pirtle
 
PDF
My life with MongoDB
Mitch Pirtle
 
PDF
GDI WordPress 1 January 2012
pamselle
 
ODP
Javascript debugging
audiodog
 
Javascript Update May 2013
RameshNair6
 
Level 101 for Presto: What is PrestoDB?
Ali LeClerc
 
Martin Splitt "A short history of the web"
Fwdays
 
Why and How You Should Move from PHP to Node.js
Brainhub
 
Webpack
Jozef Spisiak
 
The Problems and Promise of WebAssembly
Priyanka Aash
 
English Casual 2012/05/10
Ryosuke IWANAGA
 
What does JavaScript
Sachirou Inoue
 
Ajax Introduction Presentation
thinkphp
 
MongoDB Introduction - Document Oriented Nosql Database
Sudhir Patil
 
Post-relational databases: What's wrong with web development?
Dobrica Pavlinušić
 
NoSQL solutions
Felix Crisan
 
MongoTorino 2013 Opening Keynote
Mitch Pirtle
 
My life with MongoDB
Mitch Pirtle
 
GDI WordPress 1 January 2012
pamselle
 
Javascript debugging
audiodog
 

Similar to HTML, Javascript and AJAX (20)

PPTX
Ajax
Rajesh Khanna
 
PPTX
Ajax
Rajesh Khanna
 
PPT
Using SVG with Ample SDK cross browser
Sergey Ilinsky
 
PPT
Ajax World 2008
Axway Appcelerator
 
PPT
Ajaxworld March 2008 - Jeff Haynie Keynote - Appcelerator
Jeff Haynie
 
PPT
Developing For The Web
aleemb
 
PPT
Rob Tweed :: Ajax and the Impact on Caché and Similar Technologies
george.james
 
PPT
Krug Fat Client
Paul Klipp
 
PPTX
Ajax presentation
Bharat_Kumawat
 
PDF
Echo HTML5
Nathan Smith
 
PPTX
HTML5 vs Silverlight
Şeyda Hatipoğlu
 
PPT
An Introduction to Ajax Programming
hchen1
 
PPT
Web Development Environments: Choose the best or go with the rest
george.james
 
PDF
Past, present, and future of web assembly - Devfest Nantes 2017
Alexandre Morgaut
 
PDF
Introduction to JavaScript
Jussi Pohjolainen
 
PPT
Jquery
Swapnil & Patil
 
PDF
NetBeans Support for EcmaScript 6
Kostas Saidis
 
PPT
GWT is Smarter Than You
Robert Cooper
 
PPT
Introduction to ajax
Venkat Pinagadi
 
Using SVG with Ample SDK cross browser
Sergey Ilinsky
 
Ajax World 2008
Axway Appcelerator
 
Ajaxworld March 2008 - Jeff Haynie Keynote - Appcelerator
Jeff Haynie
 
Developing For The Web
aleemb
 
Rob Tweed :: Ajax and the Impact on Caché and Similar Technologies
george.james
 
Krug Fat Client
Paul Klipp
 
Ajax presentation
Bharat_Kumawat
 
Echo HTML5
Nathan Smith
 
HTML5 vs Silverlight
Şeyda Hatipoğlu
 
An Introduction to Ajax Programming
hchen1
 
Web Development Environments: Choose the best or go with the rest
george.james
 
Past, present, and future of web assembly - Devfest Nantes 2017
Alexandre Morgaut
 
Introduction to JavaScript
Jussi Pohjolainen
 
NetBeans Support for EcmaScript 6
Kostas Saidis
 
GWT is Smarter Than You
Robert Cooper
 
Introduction to ajax
Venkat Pinagadi
 
Ad

More from Wan Leung Wong (20)

PPTX
用Flutter 開發Linux Desktop Application
Wan Leung Wong
 
PPTX
iOS Development, with Swift and XCode
Wan Leung Wong
 
PPTX
Package Management Systems on GNU/Linux
Wan Leung Wong
 
PDF
Tinyboy Project - A 3D Printer for Education
Wan Leung Wong
 
PDF
HKCOTA 海外見聞錄 - 思考香港IT未來發展 - HKOSCON 2015
Wan Leung Wong
 
PDF
Ecosystem of IT Industry - Sitcon x HK - 2016
Wan Leung Wong
 
PDF
Hacking Saturday 2018-05 - flutter
Wan Leung Wong
 
PDF
What is IT - Sitcoin x HK 2018
Wan Leung Wong
 
PDF
Hacking Saturday - 2018-05
Wan Leung Wong
 
PDF
中國曆法 Barcamphk - 2017
Wan Leung Wong
 
PDF
Ecosystem of IT Industry - Sitcon x HK - 2017
Wan Leung Wong
 
PDF
Security Solution - Luckey Application on Crypto-currency and Personal Bankin...
Wan Leung Wong
 
PDF
Tinyboy, A 3D Printer for Student
Wan Leung Wong
 
PDF
Tinyboy Updates on 1st quarter of 2015
Wan Leung Wong
 
PDF
Tinyboy Project - A 3D printer for student
Wan Leung Wong
 
PDF
Some cases of open source products that have great impact in recent years
Wan Leung Wong
 
PDF
3D Printing Workshop
Wan Leung Wong
 
PDF
How Open Source / Open Technology Could Help On Your Project
Wan Leung Wong
 
PDF
Virtualization - Kernel Virtual Machine (KVM)
Wan Leung Wong
 
PDF
DIY Gateway
Wan Leung Wong
 
用Flutter 開發Linux Desktop Application
Wan Leung Wong
 
iOS Development, with Swift and XCode
Wan Leung Wong
 
Package Management Systems on GNU/Linux
Wan Leung Wong
 
Tinyboy Project - A 3D Printer for Education
Wan Leung Wong
 
HKCOTA 海外見聞錄 - 思考香港IT未來發展 - HKOSCON 2015
Wan Leung Wong
 
Ecosystem of IT Industry - Sitcon x HK - 2016
Wan Leung Wong
 
Hacking Saturday 2018-05 - flutter
Wan Leung Wong
 
What is IT - Sitcoin x HK 2018
Wan Leung Wong
 
Hacking Saturday - 2018-05
Wan Leung Wong
 
中國曆法 Barcamphk - 2017
Wan Leung Wong
 
Ecosystem of IT Industry - Sitcon x HK - 2017
Wan Leung Wong
 
Security Solution - Luckey Application on Crypto-currency and Personal Bankin...
Wan Leung Wong
 
Tinyboy, A 3D Printer for Student
Wan Leung Wong
 
Tinyboy Updates on 1st quarter of 2015
Wan Leung Wong
 
Tinyboy Project - A 3D printer for student
Wan Leung Wong
 
Some cases of open source products that have great impact in recent years
Wan Leung Wong
 
3D Printing Workshop
Wan Leung Wong
 
How Open Source / Open Technology Could Help On Your Project
Wan Leung Wong
 
Virtualization - Kernel Virtual Machine (KVM)
Wan Leung Wong
 
DIY Gateway
Wan Leung Wong
 
Ad

Recently uploaded (20)

PPTX
How Cloud Computing is Reinventing Financial Services
Isla Pandora
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PPTX
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PDF
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
How Cloud Computing is Reinventing Financial Services
Isla Pandora
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 

HTML, Javascript and AJAX