35
A Seminar Report On ”AJAX” By Mr. Dipak Potdar Submitted in partial fulfillment of Third Year Master in Computer Application Savitribai Phule Pune University Under The Guidance Of Prof. Nita Shinde Bhujbal Knowledge City MET’s Institute of Engineering Department of MCA Adgaon,Nashik-422003

Savitribai Phule Pune University - Tulsi Eye Hospital …tulsieyehospital.org/pdf/ajax.pdfSavitribai Phule Pune University Under The Guidance Of Prof. Nita Shinde Bhujbal Knowledge

Embed Size (px)

Citation preview

A

Seminar Report

On

”AJAX”

By

Mr. Dipak Potdar

Submitted in partial fulfillment of

Third Year Master in Computer Application

Savitribai Phule Pune University

Under The Guidance

Of

Prof. Nita Shinde

Bhujbal Knowledge City

MET’s Institute of Engineering

Department of MCA

Adgaon,Nashik-422003

Bhujbal Knowledge City

MET’s Institute of Engineering

Department of MCA

Adgaon, Nashik-422003

CERTIFICATE

This is to certify that

Mr. Dipak Potdar

has successfully completed his Seminar work on

”AJAX” in partial fulfillment of

term work of Third Year Master in Computer Application

under Savitribai Phule Pune University, for the academic year 2015-2016.

Prof.Nita Shinde Prof.Aruna Deogire

(Seminar Guide) (H.O.D.)

Acknowledgement

Every work is source which requires support from many people and areas. It gives us proud

privilege to complete the Seminar on ”AJAX” under valuable guidance and encouragement of our guide

Prof.Nita Shinde.

We are also extremely grateful to our respected H.O.D.(MCA Dept.) Prof.Aruna Deogire

and Prof. Javed Attar (Seminar Coordinator) for providing all facilities and every help for smooth

progress of Seminar.

We would also like to thank all the Staff Members of MCA Department for timely help and

inspiration for completion of the Seminar.

At last We would like to thank all the unseen authors of various articles on the Internet, helping

us become aware of the research currently ongoing in this field and all our colleagues for providing help

and support in our Seminar work.

Mr. Dipak Potdar

TYMCA

i

Abstract

The term Ajax is used to describe a set of technologies that allow browsers to provide users

with a more natural browsing experience. Before Ajax, Web sites forced their users into the sub-

mit/wait/redisplay paradigm, where the users’ actions were always synchronized with the server’s ”think

time.”

Ajax provides the ability to communicate with the server asynchronously, thereby freeing the

user experience from the request/response cycle. With Ajax, when a user clicks a button, you can use

JavaScript and DHTML to immediately update the UI, and spawn an asynchronous request to the server

to perform an update or query a database. When the request returns, you can then use JavaScript and

CSS to update your UI accordingly without refreshing the entire page. Most importantly, users don’t

even know your code is communicating with the server. The Web site feels like it’s instantly responding.

Ajax helps to develop internet application. It makes use of XML for communication with

server. Overall they provide application which is interactive. We can conclude that AJAX is easy

technology to learn with little knowledge of html. Although the Ajax provides the web applications

which are interactive and rich but if they are not properly used can create security problems.

1

Contents

1 Introduction 5

1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

2 History of AJAX 6

3 AJAX 7

4 What is AJAX and what does it do? 8

5 Ajax Architecture 10

6 How Does Ajax Work 12

7 Ajax Process 13

8 Ajax Elements 14

8.1 HTML CSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

8.2 JavaScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

8.3 Document Object Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

8.4 XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

8.5 XMLHttpRequest Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

9 Web Application Mode 15

10 Ajax Framework 16

10.1 Ajax Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

10.2 Reverse Ajax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

10.3 Search Engine Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

11 Characteristics of AJAX 17

11.1 The Web Page as an Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

11.2 Data is stored on server, not on Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

11.3 Provides Continuous and Dynamic user Experience . . . . . . . . . . . . . . . . . . . . . . 18

12 Ajax in Action 19

12.1 Steps of AJAX Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

12.1.1 client event occurs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

12.1.2 An XMLHttpRequest object is created. . . . . . . . . . . . . . . . . . . . . . . . . 19

2

12.1.3 The XMLHttpRequest object is configured. . . . . . . . . . . . . . . . . . . . . . . 19

12.1.4 The XMLHttpRequest object makes an asynchronous request to the Webserver. . 19

12.1.5 The Webserver returns the result containing XML document. . . . . . . . . . . . . 20

12.1.6 The XMLHttpRequest object calls the callback() function and processes the result. 20

12.1.7 The HTML DOM is updated. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

13 Challenges in AJAX development and Maintenance 21

13.1 AJAX scripting based Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

13.2 Poor user Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

13.3 Mark up and language mix-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

14 Advantages of Ajax 22

15 Disadvantages of Ajax 24

16 Ajax Benefits 25

17 Ajax Example 26

18 AJAX Problem Issues 29

19 Conclusion 30

20 Bibliography 31

3

List of Figures

4.1 JavaScript and XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

5.1 Ajax Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

6.1 Ajax-Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

7.1 Ajax Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

9.1 Web application Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

17.1 Ajax-Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

17.2 Google Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

17.3 Google Suggest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

17.4 Gmail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

17.5 Yahoo Maps(New) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

4

Chapter 1

Introduction

1.1 Introduction

To make custom element web applications a software engineer must use Ajax. Ajax is a gathering

of innovations that give non concurrent two path correspondence between a server and the web program.

Nonconcurrent correspondence permits the client to keep on searching the site page as areas of it are

being stacked. This additionally permits the page to show new and redesigned data without invigorating

the page. Ajax advancement has blasted as of late as organizations have discovered clients lean toward

pages created with it. ESPN utilizes Ajax broadly on their site to revive scores and give news features

without the client updating the page.

Ajax is one of a kind since it takes into account the production of desktop like applications

in a web environment. Commonly a desktop application is extremely responsive and can have areas

of the system change without invigorating the whole screen. This happens in light of the fact that

the project is running on the nearby machine. Web applications for the most part run through a web

program like Microsoft Internet Explorer or Mozilla Firefox. These applications are normally slower on

the grounds that they require the server to process every solicitation. Most web applications require

the whole site page to be prepared without a moment’s delay. This implies when a client taps on a

connection in a site page the entire page will be changed. With Ajax a client can tap on a connec-

tion and have a area of the page reproduced for them without changing the entire page. This uproots

a part of the load from the server since it just needs to parse an area of the page instead of the entire page.

5

Chapter 2

History of AJAX

Procedures for the nonconcurrent stacking of substance go back to the mid 1990s. Java applets

were presented in the first rendition of the Java dialect in 1995.These permit gathered customer side code

to load information nonconcurrently from the web server after a page is stacked. In 1996,Internet Ex-

plorer acquainted the IE Frame component with HTML, which additionally empowers this to be achieved.

In 1999, Microsoft made the XMLHTTP ActiveX control in Internet Explorer 5,which is

presently upheld by Mozilla, Safari and different programs as the local XMLHttpRequest object.

Be that as it may, this component just turned out to be broadly known in the wake of being

utilized by Gmail (2004) and Google Maps (2005).Ajax is just a name given to an arrangement of ap-

paratuses that beforehand existed. The primary part is XMLHttpRequest,a server-side item usable in

JavaScript that was executed into Internet Explorer since the 4.0 variant.

In Internet Explorer it is an ActiveX object that was first named XMLHTTP once in a while,

some time recently to be summed up on all programs under the name XMLHttpRequest, when the

Ajax innovation gets to be generally utilized. The utilization of XMLHttpRequest in 2005 by Google,

in Gmail and Google Maps has contributed to the success of this organization. Yet, this is the when the

name Ajax was itself authored that the innovation began to be so well known.

The term Ajax turned out to be broadly known after the arrival of Google Maps and Google

Suggest. These items appeared exibility at no other time found in a web application and along these

lines impelled designers to make new and creative applications.

6

Chapter 3

AJAX

AJAX is based on JavaScript and HTTP requests. AJAX is not a new programming language,

but a new way to use existing standards with DOM manipulating. JavaScript is help to a AJAX to make

background AJAX calls for fetching certain amount of data. Without AJAX, traditional web page takes

a longer time to finishing round trip process for getting a data form the server. So it’s time-consuming

process even if small changes are in web page, entire web page reload.

In a traditional web page you can’t update small portion without reloading page. So here

Ajax is help us to background server calls for fetching data and update new contain without reloading

page. AJAX is a type of programming made popular in 2005 by Google with Google Suggest.

• AJAX remains for Asynchronous Java Script and XML. AJAX is another strategy for making

better, speedier, and more intelligent web applications with the assistance of XML, HTML, CSS,

and Java Script.

• Ajax utilizes XHTML for substance, CSS for presentation, alongside Document Object Model and

Java Script for element content presentation

• Conventional web applications transmit data to and from the server utilizing synchronous demands.

It implies you fill out a structure, hit submit, and get coordinated to another page with new data

from the server.

• With AJAX, when you hit submit, JavaScript will make a solicitation to the server, translate the

results, and upgrade the present screen. In the purest sense, the client could never realize that

anything was even transmitted to the server.

• XML is normally utilized as the organization for getting server information, albeit any arrangement,

including plain content, can be utilized.

• AJAX is a web program innovation autonomous of web server programming.

• A client can keep on utilizing the application while the customer system demands data from the

server out of sight.

• Intuitive and regular client communication.Clicking is not required, mouse development is a sufi-

cient occasion trigger.

7

Chapter 4

What is AJAX and what does it do?

As specified in the presentation, AJAX is a suite of innovations used to make rich web applications.

It utilizes JavaScript to assemble and indicate information to the client. It utilizes XML transmitted

either in the XMLHTTPRequest or IFrame items to correspond with the server. Together they permit

the client to do a considerable measure of things intuitively with one website page. The outline shows

on which side of the information exchange XML and JavaScript capacity.

Instead of customary structure based communication, in an AJAX application, JavaScript gives

a great deal of the cooperation. While components of web-structures are frequently utilized, in wellde-

signed AJAX, JavaScript turns into the medium for association and the site page as it were gives the

design to the information and the way it will be shown. JavaScript is responsible for the info and yield

occasions and showing the information connected with those occasions. This permits one website page

to show and control a considerable measure of information without being reloaded.

While JavaScript can deal with the client interface, it can’t correspond with the server. This

is the place XML becomes possibly the most important factor. This paper will talk about XML yet

any technique for passing on information can be utilized if the circumstance requires it. XML serves as

the correspondence between the site page and the server. This makes a reduced reaction object in light

of the fact that the server just needs to send a XML object speaking to the information that will be

shown in the web page as of now in the program. By making a littler reaction question and putting a

portion of the preparing connected with showcase on the customer PC, assets from the server are spared.

At long last, subsequent to the customer doesn’t have to stack another page, the information is shown

much snappier, making a much speedier interface that is a great deal all the more enhancing for the client.

8

Figure 4.1: JavaScript and XML

9

Chapter 5

Ajax Architecture

• Use of a customer side motor as a middle of the road between the User Interface (UI) and the

server;

• User movement prompts program calls to the customer side motor rather than a page solicitation

to the server;

• XML information exchange in the middle of server and the customer side motor.

10

Figure 5.1: Ajax Architecture

11

Chapter 6

How Does Ajax Work

Figure 6.1: Ajax-Work

12

Chapter 7

Ajax Process

Figure 7.1: Ajax Process

13

Chapter 8

Ajax Elements

8.1 HTML CSS

HTML/CSS is site markup dialect for defining site page design, for example, text styles style and

hues.

8.2 JavaScript

JavaScript is a web scripting dialect. JavaScript extraordinary article XMLHttpRequest that was

outlined by Microsoft. XMLHttpRequest gives a simple approach to recover information from web server

without doing full page revive. Site page can upgrade simply part of the page without hindering what

the clients are doing.

8.3 Document Object Model

Report Object Model (DOM) strategy gives a tree structure as a legitimate perspective of page.

8.4 XML

XML is a configuration for recover any sort of information, not simply XML information from

the web server. In any case you can utilize different organizations, for example, Plain content, HTML

or JSON (JavaScript Object Notation). what’s more, it underpins conventions HTTP and FTP.

8.5 XMLHttpRequest Class

XMLHttpRequest is an API that gives customer usefulness to exchanging information between a

customer and a server. It gives a simple approach to recover information from a URL without doing a

full page invigorate. This empowers a Web page to upgrade only a part of the page without upsetting

what the client is doing. XMLHttpRequest is utilized intensely as a part of AJAX programming.

14

Chapter 9

Web Application Mode

Figure 9.1: Web application Mode

15

Chapter 10

Ajax Framework

10.1 Ajax Structure

Ajax structure frames some portion of Ajax; an innovation to assemble dynamic website pages

on the customer side. Information is perused from the server or sent to the server by JavaScript asks.

Nonetheless, some preparing at the server side is required to handle demands, i.e., finding and putting

away the information. This is expert all the more effortlessly with the utilization of a system committed

to process Ajax asks. In the article that begat the ”Ajax” term, J.J. Garrett depicts the innovation as

”an intermediary...between the client and the server.”This Ajax motor is expected to stifle sitting tight

for the client when the page endeavors to get to the server. The objective of the system is to give this

Ajax motor and related server and customer side capacities.

10.2 Reverse Ajax

Shorthand for Converse Nonconcurrent JavaScript and XML, is a web improvement procedure for

making intuitive web applications. The goal is to make site pages feel more responsive by giving contin-

uous data in a page. This is intended to expand the site page’s intelligence, velocity, and convenience.

10.3 Search Engine Optimization

Sites that utilization Ajax to load information which ought to be filed via web indexes must be

mindful so as to give proportional information at an open, connected URL and in an arrangement that

the internet searcher can read, as web crawlers don’t by and large execute the JavaScript code required

for Ajax usefulness. This issue is not particular to Ajax, as the same issue happens with destinations

that give dynamic information as a full-page invigorate in light of, eg, a structure present (the general

issue is some of the time called the concealed web).

16

Chapter 11

Characteristics of AJAX

Ajax is a web planning strategy that is utilized as customer side to create Asynchronous web ap-

plications. AJAX is utilized to speak with server without meddle the configuration of the pages. AJAX

is not a solitary innovation instead of it is an arrangement of numerous advances.

AJAX utilize the accompanying innovations:

• HTML and CSS for showcase and presentation

• The Document Object model for Data collaboration and information model

• XML and XSL for trade and show of information

• XML http solicitation to make nonconcurrent pages

• JavaScript to consolidation every one of these innovations

11.1 The Web Page as an Application

AJAX electronic applications are more wise than straightforward HTML pages. They absolutely

act as desktop applications. They cooperate with back end server without demonstrating to it. They

are more responsive than basic HTML pages. AJAX pages give full quick client reaction furthermore

revive the page inside of seconds.

17

11.2 Data is stored on server, not on Pages

In basic pages, server executes the entire HTML pages. At the point when client sends a dynamic

information to the server the server converts the entire HTML page into the configuration which is

meaningful by customer. In any case in AJAX server does not need to change over every one of the

pages, it straightforwardly gets and sends the information to the customer side. In AJAX improvement,

server needs to manage the information not with the pages. It conveys better execution and versatility.

11.3 Provides Continuous and Dynamic user Experience

It gives a dynamic client experience implies that client can cooperate with the page and the in-

formation is being in prepared by the server at the same rime yet there is no hold up or revive. In

great web applications, when the client sends the solicitation to the server, it needs to hold up to get

any reaction from the server and client can’t perform another undertaking amid this. What’s more,

it happens without fail. While in AJAX web outline, u will get synchronous correspondence with the

server and u do not need to sit tight for the disjoin reaction. You can do various errand one time in an

AJAX based application. It gives conceivable nonlinear work flows.

18

Chapter 12

Ajax in Action

12.1 Steps of AJAX Operation

12.1.1 client event occurs

1. A JavaScript capacity is called as the aftereffect of an occasion.

2. Illustration: validateUserId() JavaScript capacity is mapped as an occasion handler to an onkeyup

occasion on information structure field whose id is set to ”userid”.

3. ¡input type=”text” size=”20” id=”userid” name=”id” onkeyup=”validateUserId();”¿.

12.1.2 An XMLHttpRequest object is created.

12.1.3 The XMLHttpRequest object is configured.

In this stride, we will compose a capacity that will be activated by the customer occasion and a

callback capacity processRequest() will be enrolled.

12.1.4 The XMLHttpRequest object makes an asynchronous request to the

Webserver.

Source code is accessible in the above bit of code. Code written in strong typeface is dependable

to make a solicitation to the webserver. This is all being done utilizing the XMLHttpRequest article

ajaxRequest.

19

12.1.5 The Webserver returns the result containing XML document.

You can implement your server-side script in any language, however its logic should be as follows.

1. Get a solicitation from the customer.

2. Parse the info from the customer.

3. Do required preparing.

4. Send the yield to the customer.

12.1.6 The XMLHttpRequest object calls the callback() function and pro-

cesses the result.

The XMLHttpRequest article was designed to call the processRequest() capacity at the point

when there is a state change to the readyState of the XMLHttpRequest article. Presently this capacity

will get the outcome from the server and will do the required handling. As in the accompanying case, it

sets a variable message on genuine or false in light of the returned esteem from the Webserver.

12.1.7 The HTML DOM is updated.

This is the last step and in this stride, your HTML page will be upgraded. It happens in the

accompanying way:

• JavaScript gets a reference to any component in a page utilizing DOM Programming interface.

• The prescribed approach to pick up a reference to a component is to call.

• JavaScript might now be utilized to change the component’s qualities; adjust the component’s style

properties; or include, uproot, or adjust the tyke components.

20

Chapter 13

Challenges in AJAX development

and Maintenance

There are significant benefits of AJAX development and maintenance,but it also has some chal-

lenges:

13.1 AJAX scripting based Approach

AJAX utilizes a great deal of scripting that is composed in JAVASCRIPT. JavaScript code is

dificult to peruse,compose, test and investigate so it is dificult for software engineers to do scripting in

JavaScript. JavaScript is too not good with numerous programs, applications and working frameworks.

13.2 Poor user Interface

Ajax does not itself give rich client interface. It doesnt give a fast redesign by any means. It is

dificult to compose this code in DHTML and JavaScript.

13.3 Mark up and language mix-up

In run of the mill web plans, the interface of the application is coded independently than its ratio-

nale which makes the application simple to create and oversee. Be that as it may, AJAX advancement

splits all imprint up rationale outline and stirs up the rationale and configuration which makes it dificult

for software engineers to add to the mind boggling application.

21

Chapter 14

Advantages of Ajax

• AJAX Concept

Before you beginning AJAX you’ll need a solid learning of JavaScript. AJAX is not a di-

ficult, you can simple actualize AJAX in a significant way. Some IDE are push us to execute AJAX.

• Speed

Lessen the server trafic in both side solicitation. Likewise diminishing the tedious on both

side reaction.

• XMLHttpRequest

XMLHttpRequest has an imperative part in the Ajax web improvement procedure. XML-

HttpRequest is extraordinary JavaScript object that was composed by Microsoft. XMLHttpRe-

quest article call as a nonconcurrent HTTP solicitation to the Server for exchanging information

both side. It’s utilized for making solicitations to the non Ajax pages.

• Bandwidth Usage

No require to totally reload page once more. AJAX is enhance the rate and execution.

Getting information from database and putting away information into database perform founda-

tion without reloading page.

22

• Better interactivity

This is essentially the most striking benefit behind why a few designers and website admins

are changing to AJAX for their sites. AJAX permits less demanding and faster connection between

client and site as pages are not reloaded for substance to be shown.

• Easier route

AJAX applications on sites can be worked to permit less demanding route to clients in

examination to utilizing the conventional back and forward catch on a program.

• Compact

With AJAX, a few multi reason applications and elements can be taken care of utilizing a

solitary site page, maintaining a strategic distance from the requirement for disarray with a few

site pages.

• Backed by reputed brands

Another guaranteeing motivation to utilize AJAX on your sites is the way that few complex

web applications are taken care of utilizing AJAX, Google Maps is the most noteworthy and clear

case,other intense, mainstream scripts, for example, the Bullet in gathering programming has like-

wise consolidated AJAX into their most recent variant.

23

Chapter 15

Disadvantages of Ajax

• AJAX application would be a misstep since web crawlers would not have the capacity to file an

AJAX application.

• Open Source: View source is permitted and anybody can see the code source composed for AJAX.

• ActiveX solicitations are empowered just in Internet Explorer and more up to date most recent

program.

• The last disservice, XMLHttpRequest article itself. For a security reason you can just use to access

data from the web have that serves beginning pages. In the event that you have to bringing data

from another server, it’s is impractical with in the AJAX.

24

Chapter 16

Ajax Benefits

The fundamental advantage of the Ajax suite is its capacity to give a hearty intuitive web appli-

cation. Ajax additionally evacuates the time the client spends attending to a site page in light of the fact

that the page can be stacked in areas. Ajax is utilized as a part of territories where a lot of information

should be accessible to the client rapidly however without the client waiting for another page to stack.

An illustration of this situation is a logbook.

The logbook will demonstrate all occasions however when the client moves their mouse over

an occasion an Ajax call could stack data on the specific occasion. This lessens the heap on the server

and the measure of activity sent every time a client demands the date-book. Rather than sending the

client the date-book and the data on every occasion when the page is stacked the client would just get

the timetable and the data about every occasion would be stacked as the client demands it.

The XMLHttpRequest was planned utilizing a sandbox model. This implies the XMLHttpRe-

quest keeps running in a secured mode where it can just get to sites that are situated on the same space

as the script it was called from. This keeps Ajax from being utilized as a part of cross-site-scripting.

25

Chapter 17

Ajax Example

Figure 17.1: Ajax-Example

26

• Google Maps

A user can drag an entire map by using the mouse, rather than clicking on a button.(http://maps.google.com)

Figure 17.2: Google Maps

• Google Suggest

As you type,Google offers suggestions. Use the arrow keys to navigate the results.(http://www.google.com/webhp?complete=1

and hl=en)

Figure 17.3: Google Suggest

27

• Gmail

Gmail is a webmail built on the idea that emails can be more intuitive, efficient, and use-

ful.(http://gmail.com)

Figure 17.4: Gmail

• Yahoo Maps (new)

Now it’s even easier and more fun to get where you’re going! (http://maps.yahoo.com)

Figure 17.5: Yahoo Maps(New)

28

Chapter 18

AJAX Problem Issues

Ajax can give rich web applications yet in the event that utilized dishonorably can make a security

bad dream. One issue with Ajax is that if the program denies the Ajax ask for any reason the clients

application loses all usefulness. The second issue includes executing vindictive code. Designers regularly

clean the info they are sending to the server.

The info must be cleaned to keep the server from incidentally executing a summon an assailant

tries to run.With Ajax its enticing to clean the information on the customer side utilizing JavaScript

and at that point not clean it on the server side. The issue with this is an aggressor could call the server

script without utilizing the customer script and trade off the server.

Another issue with Ajax is that it can be utilized malevolently without the client finding it.

Since Ajax is intended to keep running without client communication it can undoubtedly be keep running

on a site page seizing session data and sending it to an assailant.

29

Chapter 19

Conclusion

• Ajax gives usefulness to make a vigorous web application.

• If an Ajax web application is coded legitimately it will run quicker than and as secure as a non-Ajax

program.

• Ajax like wise permits sites to diminish their general data transfer capacity utilization and server

load by lessening the measure of full page loads.

30

Chapter 20

Bibliography

31

Bibliography

[1] www.google.com.

[2] www.wikipedia.com.

[3] www.tutorialsponit.org.

[4] www.e-book.com.

[5] Kogent. Black Book. Dreamtech, 1996.

[6] Jeremy McPeak. Professional Ajax. Reference Book, 2nd Edition.

[1] [2] [3] [4] [6] [5]

32