Autodesk 15606-011408-9300 Developer Guide - Page 178
<INPUT TYPE=hidden NAME=op VALUE=None>, function clearVars
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 178 highlights
poi.asp Example Code (continued) zoomToLon = sdfPoint.X; zoomToLat = sdfPoint.Y; clearVars(); actionOp = "ZoomToPoint"; // Zooms to the point on the map msgText = "Zooming to point."; } else msgText = "Point not found."; } sdfToolKit.Close(); } else msgText = "A name must be specified." } else if (Request.Count > 0) msgText = "Unrecognized command."; %> // This next section creates the content of the frame. Points of Interest Name
178
|
Chapter 7
Applications
zoomToLon = sdfPoint.X;
zoomToLat = sdfPoint.Y;
clearVars();
actionOp = "ZoomToPoint"; // Zooms to the point on the map
msgText = "Zooming to point.";
}
else
msgText = "Point not found.";
}
sdfToolKit.Close();
}
else
msgText = "A name must be specified."
}
else if (Request.Count > 0)
msgText = "Unrecognized command.";
%>
<%
function findObject(openSdf, objKey) // The actual search
{
var sdfObject = null;
openSdf.BeginKeyIndexSearch(objKey);
sdfObject = openSdf.SearchToNextObject();
openSdf.EndSearch();
return sdfObject;
}
function clearVars()
{
pointName = "";
pointLat = "";
pointLon = "";
op = "";
}
%>
// This next section creates the content of the frame.
<H2>Points of Interest</H2>
<HR>
<FORM METHOD="POST" NAME="pointForm" TARGET="_self"
ACTION="poi.asp">
<INPUT TYPE="hidden" NAME="op" VALUE="None">
<DIV ALIGN="left">
<P>
<LABEL FOR="fp1">Name<BR></LABEL>
<INPUT TYPE="text" NAME="pointName" VALUE="<%=pointName%>"
poi.asp
Example Code (
continued
)