25.07.2014 Views

Analysis and Testing of Ajax-based Single-page Web Applications

Analysis and Testing of Ajax-based Single-page Web Applications

Analysis and Testing of Ajax-based Single-page Web Applications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 1.2 Screen shot <strong>of</strong> the Mosaic web browser interface, late 1993, designed<br />

at NCSA.<br />

bled <strong>page</strong>s served by smarter web servers. Figure 1.3 shows the classical web<br />

client/server interaction style in which a typical scenario would be as follows:<br />

• the user clicks on a hypertext link (URL),<br />

• the browser sends a (HTTP GET) request to the server,<br />

• (static) if the request points to a file stored on disk, the server retrieves<br />

the contents <strong>of</strong> that file,<br />

• (dynamic) if the request cannot be associated with a file on the disk,<br />

then <strong>based</strong> on the request, the parameters, <strong>and</strong> the server-side state, the<br />

server assembles a new web <strong>page</strong>,<br />

• the server sends the <strong>page</strong> to the browser as a response, <strong>and</strong><br />

• the browser refreshes the entire <strong>page</strong>.<br />

The first dynamic web <strong>page</strong>s were <strong>of</strong>ten created with the help <strong>of</strong> serverside<br />

languages, such as Perl, typically though the Common Gateway Interface<br />

(CGI), a st<strong>and</strong>ard (W3C, 1995) for interfacing external applications, such as<br />

databases, with web servers to assemble dynamic web <strong>page</strong>s.<br />

Chapter 1. Introduction 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!