Create Polygon and place with mouse click

Discussion created by ER_JAS on Sep 14, 2011
Latest reply on Sep 15, 2011 by ER_JAS

I new to JavaScripts (have experience with C# And ArcObjects)

I'm making a task at want to place a Rectangle / Polygon in the map when the user clicks a button(executing the JavaScript), then the rectangle / polygon should show up at the curser and be placed in the map where the user clicks.
(i want to use it to specify print extend)

I've searched for some samples but i i'm having trouble finding them, can anybody help?

I would like to calculate the size of the rectangle and pass the value to the JavaScript.

any idea?