ArcGIS API for JavaScript: Editing/Custom_Boundaries (MapServer)
Built using the ArcGIS API for JavaScript