ArcGIS JavaScript API: CurrentFuncClass (MapServer)
Built using the
ArcGIS API for JavaScript