Autodesk 15606-011408-9300 Developer Guide - Page 142
Description: Turns on Incident Monitor by calling, Function: CreateInWindow
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 142 highlights
Municipal Application Example Code (continued 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' 142 | Chapter 7 Applications