Hi,
I've been working on my MapPoint program (in JavaScript) for a bit now and have been able to get it to do most of the things that I need. However, my problem is being able to get it work while it is hosted on a server. I can get it to work when I test it as a local file, but just displaying the map control wont work when I host it on a server. I dont know what the difference is or why it might not work, I receive an error when it gets to "MappointControl1.NewMap( 1 );". I have Mappoint installed locally on the computer that I try to access it from, the same computer that it works when tested locally. It's a web browser based program, but the activex control should work locally and everyone who intends on using it will also have Mappoint installed locally.
Here is the simple, cut down HTML file that just displays a simple map:
If someone can help me figure out how to get it to work from a server I would be very, very grateful because otherwise I would probably have to ditch the application.Code:<html> <head> <title>Test MapPoint</title> <SCRIPT LANGUAGE="JavaScript"> function initMap() { MappointControl1.NewMap( 1 ); } </SCRIPT> </head> <body lang=EN-US> Test MapPoint <object classid="CLSID:8F78D7FC-BAE4-46A4-A79A-052356AB3DD4" id=MappointControl1 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> </object> <SCRIPT> initMap(); </SCRIPT> </body> </html>
Dave