Autodesk 15606-011408-9300 Developer Guide - Page 124
The following illustration shows the results of the application if no map
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 124 highlights
This the final text of parcel_map.htm, as well as the finished application: parcel_map.htm ASP Example // function #1 function getMap() { if (navigator.appName == "Netscape") return parent.Left.document.map; else return parent.Left.window.map; } // function #2 function runReport() { parent.Right.document.write("Select one or more parcels first."); getMap().viewReport('Parcel Data (ASP)'); } Querying and Displaying Data via the Map This example uses ASP to access an Autodesk MapGuide Report
124
|
Chapter 6
Using Reports to Query and Update Data Sources
This the final text of
parcel_map.htm
, as well as the finished application:
The following illustration shows the results of the application if no map
features have been selected.
parcel_map.htm
<HTML>
<HEAD>
<TITLE>ASP Example</TITLE>
<!-- JavaScript functions -->
<SCRIPT>
// function #1
function getMap()
{
if (navigator.appName == "Netscape")
return parent.Left.document.map;
else
return parent.Left.window.map;
}
// function #2
function runReport()
{
parent.Right.document.write("<P>Select one or more parcels first.</P>");
getMap().viewReport('Parcel Data (ASP)');
}
</SCRIPT>
</HEAD>
<BODY>
<H1>Querying and Displaying Data via the Map</H1>
<P>This example uses <b>ASP</b> to access an Autodesk MapGuide
Report</P>
<!-- embedded map -->
<OBJECT ID="map" WIDTH=600 HEIGHT=250
CLASSID="CLSID:62789780-B744-11D0-986B-00609731A21D">
<PARAM NAME="URL"
Right>
<EMBED
ghtNAME="map" WIDTH=600 HEIGHT=250>
</OBJECT>
<!-- Parcel Report button -->
<FORM>
<INPUT TYPE="button" VALUE="Parcel Report" ONCLICK=
"
runReport()
"
</INPUT>
</FORM>
</BODY>
</HTML>