source: TI04-geosplat/trunk/web_extras/LiveMap_30/extractorMap.html @ 798

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI04-geosplat/trunk/web_extras/LiveMap_30/extractorMap.html@798
Revision 798, 2.4 KB checked in by astephen, 14 years ago (diff)

Latest working version with install method.
Can accept more than one file but doesn't combine variables yet.

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- saved from url=(0064)http://tmap.pmel.noaa.gov/~callahan/JAVA/map_v3.0/simpleMap.html --> 
3<HTML><HEAD> 
4<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> 
5<SCRIPT>
6it_is_loaded = false;
7
8function submitRequest(form) {
9  if (it_is_loaded) {
10    alert("\n\nYou have selected the following region:\n\n" +
11          "Longitude:  " + document.map.get_x_range() + "\n" +
12          "Latitude:  " + document.map.get_y_range());
13  }
14}
15
16function setForm() {
17    // Need these for Netscape for some reason (otherwise could just use get_[xy]_range() function in assignments below)
18    simpleForm.x_range.value = document.map.get_x_range();
19    simpleForm.y_range.value = document.map.get_y_range();
20    opener.document.extract_info.westernExtent.value = simpleForm.x_range.value.split(" ")[0];
21    opener.document.extract_info.easternExtent.value = simpleForm.x_range.value.split(" ")[1];
22    opener.document.extract_info.southernExtent.value = simpleForm.y_range.value.split(" ")[0];
23    opener.document.extract_info.northernExtent.value = simpleForm.y_range.value.split(" ")[1];
24    self.close();
25    return false;
26}
27</SCRIPT>
28 
29<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD> 
30<BODY onload="it_is_loaded = true;"> 
31        <SCRIPT LANGUAGE="JavaScript">
32        if (navigator.javaEnabled()==true){
33                javaOK="Yes";
34        } else {
35                javaOK="No";
36                document.writeln("Java is not enabled on your browser.");
37        }
38        </SCRIPT>
39        <noscript><font color="red">JavaScript is not enabled on your browser.</font></noscript>
40<CENTER> 
41<FORM name="simpleForm">
42<INPUT onclick="return setForm()" type="submit" value="Choose this selection">
43<input type="hidden" name="x_range" value="-180 180">
44<input type="hidden" name="y_range" value="-90 90">
45<P>
46<TABLE border=1>
47  <TBODY>
48  <TR>
49    <TD align=middle><B>VIEW: Longitude-Latitude</B></TD></TR>
50  <TR>
51    <TD>
52    <APPLET height=160 archive=LiveMap_30.jar width=500 code="LiveMap_30.class" name="map" MAYSCRIPT>
53      <PARAM NAME="base_image" VALUE="gifs/java_0_world_20k.jpg">
54      <PARAM NAME="img_x_domain" VALUE="-180 180">
55      <PARAM NAME="img_y_domain" VALUE="-90 90">
56      <PARAM NAME="toolType" VALUE="XY">
57      <PARAM NAME="tool_x_range" VALUE="-180 180">
58      <PARAM NAME="tool_y_range" VALUE="-90 90">
59    </APPLET> </TD></TR></TBODY></TABLE>
60<P></CENTER>
61</FORM>
62</P>
63</BODY>
64</HTML>
Note: See TracBrowser for help on using the repository browser.