Appendix D. CHAPTER 15'S ITALIAN TRANSLATOR AND CHAPTER 17'S TO DO LIST APPLICATION

The examples given in this appendix were too long to list in their entirety in Chapter 15 and Chapter 17. For more information about how each works, please refer to the appropriate chapter.

Chapter 15's Italian Translator

<html><head><title>Translator Suggestion Script</title> <script type = "text/javascript"> <!-- hide me from older browsers function getTranslations(the_file, the_word) { var request = null; var xml_response = null; if (window.XMLHttpRequest) { request = new XMLHttpRequest(); } else { request = new ActiveXObject("Microsoft.XMLHTTP"); } if (request) { request.open("GET", the_file + ".xml"); request.onreadystatechange = function() { if (request.readyState ...

Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.