Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Javscript type mismatch
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Javscript type mismatch

 Post Reply Post Reply
Author
Sammy View Drop Down
Newbie
Newbie


Joined: 18 December 2003
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sammy Quote  Post ReplyReply Direct Link To This Post Topic: Javscript type mismatch
    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>
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.