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