If I run each of these functions separately, they work.
However, if I put them together as they are in this sample below, I get type mismatch errror.
Can you please save me again, please?
It probably has something to do with having two onClick events at the same time.
Here is the code:
<script language="javascript">
function LaunchReport()
{
var theMap=getMap();
var mySelection = theMap.getSelection();
OBJ_KEYS= new Array();
var mapObjects = mySelection.getMapObjectsEx(null);
for (var i=0; i < mapObjects.size(); i++)
{
var mySelKeys = (mapObjects.item(i).getKey());
OBJ_KEYS
= mySelKeys;
}
var newWindow=window.open("http://pw6/reports/spills.asp?OBJ_KEYS="+OBJ_KEYS,...;);
}
function onDigitizedPoint(map, point)
{
lat=point.getY();
lon=point.getX();
var win = window.open("http://www.autodesk.com";, "displayFormWin",
"width=550,height=250,dependent=yes,resizable=yes,status=y es");
</script>
<td><INPUT TYPE="button" VALUE="Run Report" onClick="LaunchReport()"></td>
<td><INPUT TYPE="button" VALUE="Digitize Point" onClick="digitizePoint()"></td>