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 A.5 The run-time DOM instance after the new content is retrieved <strong>and</strong> injected<br />

into the DOM-tree (bottom) <strong>and</strong> the updated user interface (top).<br />

into the target DOM element (in this case the DIV element with ID content), the<br />

browser updates the user interface.<br />

This way a complete client/server round-trip can be made <strong>and</strong> the user<br />

interface <strong>of</strong> the browser can be updated in the background, without having<br />

to refresh the <strong>page</strong>. Figure A.5 depicts the updated DOM <strong>and</strong> browser user<br />

interface.<br />

Appendix A. A <strong>Single</strong>-<strong>page</strong> <strong>Ajax</strong> Example Application 167

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

Saved successfully!

Ooh no, something went wrong!