MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Can I embed MapPoint ActiveX Ctrl in HTML with JScript/VBScr

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 04-30-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Can I embed MapPoint ActiveX Ctrl in HTML with JScript/VBScr

Hi,

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 08-16-2005
Junior Member
White Belt
 
Join Date: Apr 2005
Posts: 8
Did you ever get this work? I'm trying to load the activex control in a web page, but Internet Explorer only shows an empty box and never loads the control.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2006
Junior Member
White Belt
 
Join Date: Nov 2005
Posts: 1
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>
This should work,...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
activex, ctrl, embed, html, jscript or vbscr, mappoint


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/can-i-embed-mappoint-activex-ctrl-html-jscript-vbscr-1437.html

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 10:40 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54