ArcGIS API for JavaScript: Publishing_ViewOnly/Properties (MapServer)
Built using the ArcGIS API for JavaScript