FIT3084: JavaScript, Part II


In the previous lecture:

In this lecture:


References:

Same as the previous lecture:


Some Web based Information and JavaScript applications:

Lloyd's JavaScript reference.

Mozilla JavaScript reference.

Firebug Javascript debugger that works with Mozilla Firefox.

AJAX (Asynchronous JavaScript and XML) for creating web applications where small amounts of data can be retrieved by a client (from the server) without requiring full page downloads.

A Google Maps example

Interactive maps like Google maps - click & drag to pan, click controls to zoom

JavaScript source utilises Google's API for its map software to display the above map:

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=SiteSpecificCode" type="text/javascript">         
   if (GBrowserIsCompatible())
   {
      var map = new GMap2(document.getElementById("map"));
      map.setCenter(new GLatLng(-37.91270348039777, 145.1369800497491), 15);
      map.setMapType(G_SATELLITE_MAP);
      map.openInfoWindow(map.getCenter(), document.createTextNode("Monash University -- here we are!"));
   
      var mapControl = new GSmallZoomControl();
      map.addControl(mapControl);
   }
</script>


This lecture's key point(s):


Courseware | Lecture notes

©Copyright Alan Dorin 2008