<head><title>onreturn.html</title>
<script src=../window.js></script>
<script src=../examples.js></script>
</head>
<body>
<script>
w = new win(70,190,400,400,"Hello World")
w.setServerURL(MSURL)
w.setVar("map",MSMAP)
function submitWin() {
w.setVar("mapsize",w.contentWidth + " " + w.contentHeight)
w.submit()
}
function getVars() {
var mapextBox = document.getElementById("ms_mapext")
var scaleBox = document.getElementById("ms_scale")
var mapsizeBox = document.getElementById("ms_mapsize")
var mapext = w.getReturnedVar("mapext")
var scale = w.getReturnedVar("scale")
var mapsize = w.getReturnedVar("mapsize")
mapextBox.value = mapext
scaleBox.value = scale
mapsizeBox.value = mapsize
}
w.setExecOnResize(submitWin)
w.setExecOnReturn(getVars)
</script>
<input type=button value="Submit Map" onclick="submitWin()">
<!-- text fields for returned variables -->
<br><br>
<table>
<tr><td colspan=2 align=center>Returned Variables
<tr><th>name<th>value
<tr>
<td>mapext
<td><input type=text id=ms_mapext style="width:400">
<tr>
<td>scale
<td><input type=text id=ms_scale style="width:400">
<tr>
<td>mapsize
<td><input type=text id=ms_mapsize style="width:400">
</table>
</body>