Code Resources

This page contains links to code resources from class exercises.

Your browser may treat the documents linked here in different ways, depending on configuration. For most users, zipped archives should be automatically downloaded to whatever directory you use for downloads. External Javascript files (.js) should open as text documents, from which you can cut and paste. Examples that incorporate scripting into otherwise conventional markup (.htm) will open as Web pages, and you will need to view source to see the script elements.

DATE PROJECT FILES
11-19-09 Week 12: Simplified code examples from the GoogleMaps API demos (November 17). These pages contain the same scripts as the pages linked from the class page, with the HTML contents trimmed to make them more readable. The API Key used in both examples is for student-iat.ubalt.edu (the one you need to develop in your personal server space). GoogleMaps Demo Code
11-17-09 Week 12: Google Maps API Key for student-iat.ubalt.edu. This code will work on any page you build in your student directory. GoogleMaps API Key
11-17-09 Week 12 and following (optional): Zip file containing external JavaScript files referenced in AJAX Hacks book. These files are not used in the GoogleMaps project for November 17. However, you may want to consult them if you find other chapters in the book useful. ajax_hacks_js.zip
10-14-09 Week 7: The completed Memory or Recall Game from 10-13, including redesign that eliminates need to refresh the page. Zip archive includes main page, external Javascript for XML loading, and XML file. This project is a good starting point for the midterm. recallDeluxe.zip
10-06-09 Week 6: Two projects demonstrating use of AJAX to process text input from an HTML form field. The first is a simulation of the popular Web technology called CAPTCHA. The second is a simple memory game, using Javascript to compare form input to a sentence loaded from an XML document. The Zipped archive contains complete versions of both projects, along with graphics and XML files. Week_6_Forms.zip
9-29-09 Week 5: Tickertype project. Move text from right to left through a mono-spaced page element, using timed repetition in an infinite loop. One project with three variations: (5.1) set up text animation with a single, pre-defined phrase (no XML); (5.2) import text from XML file; (5.3) deluxe version, with various code improvements, including speed controls. Week_5_Tickertype.zip
9-22-09 Week 4: XML as Database. One project with three variations: (4.1) retrieve information for one employee from an XML database; (4.2) march through the database sequentially; (4.3) access the database randomly from a menu. Zip file contains the database XML document, as well as a directory of associated graphics. Week_4_Exercises.zip
9-15-09 Week 3: XML File Access. Five projects: (1) Simple XML file access; (2) Random accdess to elements of an XML document; (3) Context-Free Grammar with random innerHTML replacement; (4) Replacing an entry in an XML File; (5) Adding an entry to an XML file. Week_3_Exercises.zip
9-9-09 Context-Free Grammar, Corrected: A revised, working version of the problematic third example from September 8. More moving parts, notably more complex. But it works! week2.3R.htm
9-8-09 Week 2: Arrays and Context-Free Grammars. Four projects: (1) Accessing an Array; (2) Building an Array via form input; (3) Using Arrays for Context-Free Grammars (Headline Generator); (4) Headline Generator with variable syntax and extensible Arrays. Week_2_Exercises.zip
9-1-09 Week 1: Variable Data on Web Pages. Five projects: (1) Variable data with document.write(); (2)Using a switch statement to increase variation; (3) Tying data variation to the Date object; (4) Using the innerHTML property to replace a page element without reloading; (5) Activating innerHTML replacement with an automatic timer. Week_1_Exercises.zip
9-15-09 XML Loader code fragment. Cut and paste into any page or script that needs to access XML data; works for both Microsoft and non-Microsoft browsers. xmlLoader.txt
9-1-09 Starter file for all AJAX Web pages, including DTD; copy into text editor and re-save as HTML. pageStarter.txt



University of Baltimore Logo

Last updated: 11/19/09 12:12:06
Copyright © 2009 School of Information Arts and Technologies