Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 5 of 5

Viewing Javascript Mappoint application in a browser

This is a discussion on Viewing Javascript Mappoint application in a browser within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I've been working on my MapPoint program (in JavaScript) for a bit now and have been able to get ...

  1. #1
    dave17 is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    8

    Exclamation Viewing Javascript Mappoint application in a browser

    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:

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

    Dave

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Viewing Javascript Mappoint application in a browser

    Hi,

    I'm not sure but possible you have to take the same steps as when you wants to deploy mappoint over a netwerk ? Check some of my post from yesterday. In the help you also find the article.

    Also try a search on java or javascript on this forum. I recall at least 2 time people who wants to try something similar. However I dont remember how fare they got or helped, sorry. Please let us know if you proceed.

  3. #3
    dave17 is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    8

    Re: Viewing Javascript Mappoint application in a browser

    I'm not sure but possible you have to take the same steps as when you wants to deploy mappoint over a netwerk ? Check some of my post from yesterday. In the help you also find the article.

    Also try a search on java or javascript on this forum. I recall at least 2 time people who wants to try something similar. However I dont remember how fare they got or helped, sorry. Please let us know if you proceed.5 Hours Ago 09:51 AM
    Hi Wilfried,

    I have searched and looked through most, if not all of the threads with the word javascript in them. They helped me figure out the 'hello world' of using Javascript/HTML for Mappoint 2006, which is basically the code that I posted. However, I have not found any posts that describe specifically what my problem is: getting it to work on a hosted server, where there might be security or whatever else issues that stops the mappoint control from working.

    I looked through your posts from the last few days and couldnt really find anything relevant though, mostly just about general vb or c# questions. If you can give me a direct link to whatever post you might have been talking about, then I would appreciate that. Also if you can link me to whatever talks about how to get Mappoint working over a network. Thanks.

  4. #4
    dave17 is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    8

    Re: Viewing Javascript Mappoint application in a browser

    Hi again Wilfried,

    I managed to figure out what was cutting the control off... the "Initialize and script ActiveX controls not marked as safe for scripting." setting in internet options was disabled, where it needed to be set to at least prompt.

  5. #5
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Viewing Javascript Mappoint application in a browser

    Hi,

    This wasthe text I was refering to:

    Deploy MapPoint over a network
    If you are a system administrator, you can deploy MapPoint over a network by using standard command line options. You can also deploy MapPoint by using the Office Custom Installation Wizard. Documentation for the Office Custom Installation Wizard is located in the online Microsoft Office Resource Kit.

    Before you deploy MapPoint over a network, you must have a licensed copy of MapPoint for every computer on which you want to run it.

    Create an administrative installation location
    Place the MapPoint Setup disc in your disk drive.
    Open a command prompt window, and enter:
    msiexec /a X:\mappoint\msmap\data.msiwhere X is your disc drive location.

    The Administrative Installation Wizard starts.

    Click Next.
    Choose a network location for the administrative installation location, for example, \\machine\share\MapPoint\.
    Follow the Administrative Installation Wizard on-screen instructions.
    When you are finished creating the administrative installation location, users can install MapPoint either through an advertisement or by browsing to the location and double-clicking setup.exe.

    Make MapPoint available on the network through advertising
    After you create an administrative installation location, you can make MapPoint available through advertising. Advertising is a Windows installer method for making a program available to the user without installing it. When the user attempts to use the program, the program is installed and run.

    On a user's computer, open a command prompt window.
    Type the following command:
    msiexec /jm \\machine\share\MapPoint\msmap\data.msiwhere \\machine\share\MapPoint is the administrative installation location.

    A shortcut is placed on the user's Start menu. When the user clicks this shortcut, the MapPoint setup is launched automatically.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help using the Mappoint control with Javascript
    By dave17 in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-16-2006, 09:43 AM
  2. Importing a route and viewing with Mappoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 08-29-2005, 06:41 PM
  3. HTML, activeX and Javascript - Union method problem
    By mcjwb in forum MapPoint Desktop Discussion
    Replies: 14
    Last Post: 06-18-2005, 09:56 AM
  4. Open MapPoint INSIDE browser windows
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 05-19-2005, 01:26 PM
  5. How can I upload my map into browser,and allowing ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-19-2001, 12:51 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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