Autodesk 15606-011408-9300 Developer Guide - Page 28
Displaying Maps, To install the Autodesk MapGuide Viewer Plug-In
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 28 highlights
To install the Autodesk MapGuide Viewer Plug-In 1 To install the latest version of Autodesk MapGuide Viewer Plug-In for Netscape Navigator users, write additional code to prompt the user to download Autodesk MapGuide Viewer Plug-In, as follows: To download Autodesk MapGuide Viewer Plug-In // Call this function on a page onLoad event or frameset onLoad event function init() { // For Netscape browsers, check for // Autodesk MapGuide Viewer Plug-In if (navigator.appName == "Netscape") { for(j=0;j
28
|
Chapter 2
Displaying Maps
To install the Autodesk MapGuide Viewer Plug-In
1
To install the latest version of Autodesk MapGuide Viewer Plug-In for
Netscape Navigator users, write additional code to prompt the user to
download Autodesk MapGuide Viewer Plug-In, as follows:
To download Autodesk MapGuide Viewer Plug-In
// Call this function on a page onLoad event or frameset onLoad event
function init()
{
// For Netscape browsers, check for
// Autodesk MapGuide Viewer Plug-In
if (navigator.appName == "Netscape")
{
for(j=0;j<navigator.plugins.length;j++)
{
if (navigator.plugins[j].name == "Autodesk MapGuide")
return;
}
// If the Autodesk MapGuide Viewer Plug-In is
// not detected, display the message...
displayDownloadMsg();
return;
}
// If the Autodesk MapGuide Viewer Plug-In is installed,
// check the version by returning the API version
var version = getMap().getApiVersion();
//
If the API/Plug-In version is previous to 6.0,
//display the message
if (version < "6.0")
{
displayDownloadMsg();
return;
}
}
function displayDownloadMsg()
{
// Display dialog box.
msg = "You do not have the latest version of " +
"Autodesk MapGuide Viewer. Do you want to " +
"download it now? Click OK to download or Cancel" +
"to proceed with your current Autodesk MapGuide Viewer."
// If user clicks OK, load download page from Autodesk Web site
if (confirm(msg))
top.window.location =
"www.autodesk.com/mapguideviewerdownload";
}