142
|
Chapter 7
Applications
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
// Function: notify()
// Description: Turns on Incident Monitor by calling
// CreateInWindow() function, below
// Arguments: none
// Returns: nothing
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
function notify()
{
// Call function
CreateInWindow();
}
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
// Function: CreateInWindow()
// Description: Calls a ColdFusion file and generates the
// resulting incident report in a new window (called by 'On'
// button, under 'Incident Monitor')
// Arguments: none
// Returns: nothing
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
// First, a global variable, defined *outside* of the function body
var InWindow;
// Function starts here
function CreateInWindow()
{
// Set 'URL' variable to location of ColdFusion file used to
// generate report; then
// open URL in new window called 'InWindow'
var URL =
"http://www.gridnorth.com/interdemo/municipal/reports/Incident1.cfm"
InWindow = open(URL,"InWindow", "toolbar=no,width=480,
height=350,directories=no,status=no,
scrollbars=YES,resizable=YES,menubar=no")
}
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
// Function: notifyoff()
// Description: Closes window containing incident report
// (called by 'Off' button, under 'Incident Monitor')
// Arguments: none
// Returns: nothing
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
function notifyoff()
{
// If 'InWindow' doesn't exist, or if it's already closed,
// terminate function; otherwise close 'InWindow'
Municipal Application Example Code (
continued
)
Summary of Contents for 15606-011408-9300 - MAP R6.3 UPG
Page 1: ...15306 010000 5060 October 2001 Autodesk MapGuide Release 6 Developer s Guide ...
Page 6: ...vi ...
Page 16: ...16 ...
Page 30: ...30 ...
Page 84: ...84 ...
Page 134: ...134 ...
Page 202: ...202 ...