Community of VE/MapPoint Users and Developers
This is a discussion on Can I embed MapPoint ActiveX Ctrl in HTML with JScript/VBScr within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, Can I embed MapPoint ActiveX Control in HTML with JScript or VBScript? I am using MS ActiveX Control Pad ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Can I embed MapPoint ActiveX Ctrl in HTML with JScript/VBScr Can I embed MapPoint ActiveX Control in HTML with JScript or VBScript? I am using MS ActiveX Control Pad which produces the following HTML code. I have tried the following but I do not know how to initialize the control (the ###### part). <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript" FOR="window" EVENT="onLoad()"> <!-- MappointControl1.NewMap( ###### ) --> </SCRIPT> <TITLE>New Page</TITLE> </HEAD> <BODY> <OBJECT ID="MappointControl1" WIDTH=489 HEIGHT=435 CLASSID="CLSID:8F78D7FC-BAE4-46A4-A79A-052356AB3DD4"> <PARAM NAME="BorderStyle" VALUE="0"> <PARAM NAME="MousePointer" VALUE="0"> <PARAM NAME="TabStop" VALUE="0"> <PARAM NAME="Appearance" VALUE="1"> <PARAM NAME="PaneState" VALUE="3"> <PARAM NAME="UnitsOfMeasure" VALUE="1"> </OBJECT> </BODY> </HTML> What's the JScript or VBScript equivalent of the Visual Basic following code ? MappointControl1.NewMap geoMapNorthAmerica or MappointControl1.OpenMap "Clients.ptm" tia Nikos Georgopoulos |
| |||
| leme give ya a litl elp
Hy, I noticed that the window.load event is not triggered when you embed a mappoint control into a html page. But with setTimeout() i could make it work. See next, Code: <html> <head> <title>Test MapPoint</title> </head> <body> <object classid="CLSID:8F78D7FC-BAE4-46A4-A79A-052356AB3DD4" id="objMapPoint" width=192 height=192> <param name=BorderStyle value=0> <param name=MousePointer value=0> <param name=TabStop value=-1> <param name=Appearance value=1> <param name=PaneState value=3> <param name=UnitsOfMeasure value=0> Could not load mappoint control! </object> <script language="VBScript"> Sub Start() Dim Map ' 1 = US, 2 = Europe Set Map = objMapPoint.NewMap(2) End Sub SetTimeout "Start()", 2000 </script> </body> </html> |
![]() |
| Tags |
| activex, ctrl, embed, html, jscript or vbscr, mappoint |
| ||||
| Posted By | For | Type | Date | |
| Embedding MappointControl in IE - microsoft.public.mappoint | Google | This thread | Refback | 11-20-2007 12:20 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTML, activeX and Javascript - Union method problem | mcjwb | MapPoint 2006/2009 Discussion | 14 | 06-18-2005 09:56 AM |
| Ctrl+T (Data -> Territories...) programatically MapPoint | SheepWorrier | MapPoint 2006/2009 Discussion | 3 | 04-12-2005 05:34 PM |
| MapPoint Map.SaveAs HTML | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-11-2003 10:15 AM |
| .Save and .SaveAs don't work in from VB using MapPoint Ctrl | Anthony_Hunt | Wish List | 1 | 05-29-2003 07:51 PM |
| Key press Event of Mappoint Ctrl in VC++ | Anonymous | MapPoint 2006/2009 Discussion | 1 | 04-28-2003 11:45 AM |