Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MapPoint contrl on webpage - error "MapPoint failed to load. The cause of this failure is unknown."

68 views
Skip to first unread message

John

unread,
Jul 28, 2003, 12:49:54 PM7/28/03
to
I have a webpage with an integrated MapPoint ActiveX control. When I
try to call NewMap on the control (with the JavaScript line:
"MappointControl.NewMap(1)") I get the error mentioned in the subject
("MapPoint failed to load. The cause of this failure is unknown.").
Note that the 1 indicates the North America region.

I *can* load the page by breaking into MS Script Debugger and choosing
to continue execution after NewMap(). I also can get it to load by
including a JavaScript alert() call before the call to NewMap() so
that I have something like this : "alert('MapPoint test page');
MappointControl.NewMap(1);" This will load fine, but the user
obviously has to click through the alert() box which is not ideal.

It seems to me that the ActiveX container has to initialize (or
something) before I call NewMap() and that bringing up another
interface element (the alert box, for example) allows it to that. I
tried pausing execution (I think with PHP) but that doesn't work. Does
anyone have any ideas?

I can't imagine I'm the first person to use the ActiveX control in a
webpage!

Thanks very much

- John

Chris Gebhardt

unread,
Jul 28, 2003, 12:58:27 PM7/28/03
to
MapPoint is not support under web development. Having said that, someone
here may be able to help you...

--
///Chris\\\
Chris Gebhardt
Crime Analysis Associates
"Putting Criminals in Jail; One Pattern at a Time"
www.crimemap.com

"John" <cal...@yahoo.com> wrote in message
news:5c9feb81.03072...@posting.google.com...

John

unread,
Jul 28, 2003, 4:43:22 PM7/28/03
to
"Chris Gebhardt" <ch...@crimemap.com> wrote in message news:<uYZE3lSV...@TK2MSFTNGP12.phx.gbl>...

> MapPoint is not support under web development. Having said that, someone
> here may be able to help you...
>
> --
> ///Chris\\\
> Chris Gebhardt
> Crime Analysis Associates
> "Putting Criminals in Jail; One Pattern at a Time"
> www.crimemap.com

That's interesting - I didn't know that. Thankfully, however, for
something that's not supported, it works awfully well! Thanks for your
reply.

If my hunch about why it fails (the ActiveX container within IE has to
"initialize" or otherwise process some code before I call NewMap())
the solution may be general to hosting ActiveX controls in a
webbrowser, rather than specific to MapPoint.

- John

John

unread,
Jul 29, 2003, 5:20:34 PM7/29/03
to
I've figured out that the control works fine (without calling alert()
before NewMap()) as long as its not embedded in a table. I haven't
seen this behavior with other ActiveX controls. Has anyone heard of
something like this before? If not, maybe its a bug with MapPoint.

- John

0 new messages