<head><title>var_getting.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) </script> <input type=button value="Submit Map" onclick="submitWin()"> <input type=button value="Get Variables" onclick="getVars()"> <!-- 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>