Autodesk 15606-011408-9300 Developer Guide - Page 101
function should be invoked each time a user clicks the button.
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 101 highlights
This is a standard HTML form consisting of a single button named Parcel Report. By setting the value of ONCLICK to runReport, we specify that the function should be invoked each time a user clicks the button. Note A JavaScript function must appear above the JavaScript code that calls it. This keeps users from trying to call a function before it has been parsed by the browser. JavaScript functions are typically defined in a single tag in the section of the HTML file. The following code is the finished application: ColdFusion 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 (CF)'); } Querying and Displaying Data via the Map This example uses ColdFusion to access an Autodesk MapGuide Report