Now I am trying to see if I can get the button to fire as a function. Here is the code:
From the sample:
Code Block:
app.printer = new esri.dijit.Print({
"map": app.map,
"templates": templates,
url: app.printUrl
}, dojo.byId("print_button"));
app.printer.startup();
}
Button Defined in the DIV:
Note: This sample uses an ArcGIS Server version 10.1 export web map task.
</div>
<!-- that will be used for the print dijit -->
<!--<div id="print_button"></div>-->
<button id="print_button" dojoType="dijit.form.Button">Print Map</button>
I have been able to get the button, but cannot get it to fire: