Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 24

1

WEB DEVELOPMENT

Fundamentals with Java


Table of Contents #1
2

 Description Java
 Example of Java
 Description of JavaScript
 Example of JavaScript
 Comparison of Java and JavaScript
 Open Source and JavaScript
 Description of DOM
 Example f DOM
 Discussion of the open-source nature of JavaScript scripts and examples of
their use in commercial settings
 Comparison of AJAX and JavaScript
Table of Contents #2
3

 Security vulnerability of AJAX and JavaScript


 Summary of the use of Java applets in commercial settings
 Future trend of Java applets in commercial settings
 Java applets and AJAX
 JavaScript in DHTML
 Comparison of cookies and spyware
Description of Java
4

 Java is object-oriented  Java is a programming


 Java is architecture- language
neutral  Java does not require a
 Java was designed as a network
crossing point within  Java applications may
web pages to allow use network
applications over the connection for
internet. dispersed computing
Example of Java
5

This is an
example of the
Java
programming
language.
This program
will calculate
an amortized
monthly
mortgage
payment
including the
remaining
principal.
Description of JavaScript
6

 JavaScript is an object-based  Each object has properties


language that describe its appearance,
 JavaScript deals directly with purpose, or behavior
the browser entities like  Validate forms
windows, forms, frames and  Helps detect browsers
documents  An object can have methods,
 It can respond to browser which are actions that can be
events like mouse clicks and performed with or to it.
user- typed text.  Objects are items that exist in
 It is based on manipulating a defined space in a Web page
objects by changing their (window, document, form
properties or applying etc)
methods to them.
Example of JavaScript
7

This is an
example of
JavaScript for
menu that is a
drop down
from the top
of the page.

It is also
possible to
modify the
menu to scroll
or not, also to
change colors,
and all
dimensions.
Java vs. JavaScript
8

Java - Programming Language JavaScript - Scripting Language

 Interactive Web  runs within the context of


Graphics the Web browser
 Creating web browser  Customizing pages based
applications on browser version
 Writing stand-alone  Visual Feedback to user
applications actions
 Validating data entered
on HTML Forms
Open Source and JavaScript
9

 Open source is a
Technology-Neutral
development method for
software that harnesses the  The promise of open
power of distributed peer source is better quality,
review and transparency of higher reliability, more
process. flexibility, lower cost, and
an end to predatory vendor
lock-in
 It gives access to source
code and ability and right
to modify it
Description of DOM
10

 DOM stands for  Every element of the


Document Object web page can be
Model. actively updated in
 DOM is an crossing response to input from
point that permits the user or other
scripts to access and programs
update the content,  The DOM has a
structure and style of hierarchy of elements
the document. with the window as the
top level object
Description of DOM
11

 Document Object Model


Defines a hierarchical  Common types are:
model of the document
structure through which all
document elements may be
 document node
accessed Nodes.  element node
 The W3C DOM defines  text node
element of a document is a  attribute node
node of a particular type  comment node
Node Types
 document-type node
Example of DOM
12

DOM Document Window


provides
access to the
Attr
structure of an Element
aligh
HTML page Paragraph
by mapping
the elements Text
in that page to left
a tree of Text Element Text
nodes. The it portion

Text
Italicized
Comparison of Java applets and AJAX
13

Java applets AJAX


 Web Page  Web Page Enhancement
Enhancement  Coordinates Multiple
 User-Friendly Languages
 Wide Access  Requires Less
Bandwidth
 Based on Open
Standards
Security Vulnerabilities of Ajax and
JavaScript
14

 Inexperienced Ajax
developers failing to
implement proper
safety precautions
 Ajax applications
present large attack
surface
Security Vulnerabilities of Ajax and
JavaScript
15

 An attack surface =
number of points of
entry that can be
exploited
 Reduce attack surface
by removing features
not used
Security Vulnerabilities of Ajax and
JavaScript
16

 Other Ajax
vulnerabilities:
 Cross-site scripting
attacks to mislead
visitors
 Screen-Scraping and
Web session Hi-jacks
to steal information
Security Vulnerabilities of Ajax and JavaScript
17

 JavaScript
Vulnerabilities
 Attacker may gain
access though
privileges required to
use JavaScript
 Malware spreads
because a visitor trusts
website viewed
Security Vulnerabilities of Ajax and JavaScript
18

 Home routers also


under attack changing
DNS entries using
JavaScript
 JavaScript Hijacking
exposes vulnerabilities
with JSON (JavaScript
Open Notation)
Commercial uses of Java Applets
19

 Applets windowed
applications
 Provide GUI
(Graphical User
Interface)
 Embedded in
WebPages and execute
in browser
environment
Commercial uses of Java Applets
20

 Applets provide visual


interest
 Scrolling or
Shimmering Text
 Graphics that repeat
patterns
 Add Animation
Commercial uses of Java Applets
21

 Applet Users
 Sun Microsystems
 Dimension X
 HotWire
 The Rolling Stones
The Future Trend of Java applets in
commercial settings
22

 Synchronizing
applications for
multiple platforms
 Smart Phones
 Netbooks
 Laptops
Comparison of Cookies and Spyware
23

 Cookie saved as text


file
 Contains user
information : Name,
Password, Credit Card
Information
 Facilitates return visit
 Website specific
Comparison of Cookies and Spyware
24

 Spyware is a software
application
 Installs undetected
 Collects personal
information
 Associated with Adware
 Can change computer’s
configuration

You might also like