ArcGIS API for JavaScript: Utility/AutoFlushDevice (MapServer)
Built using the ArcGIS API for JavaScript