Print Page | Close Window

Javscript type mismatch

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=9288
Printed Date: 28 March 2026 at 12:37pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Javscript type mismatch
Posted By: Sammy
Subject: Javscript type mismatch
Date Posted: 27 January 2004 at 2:32pm
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>



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net