Dynamic layer transparency in custom JSAPI web app

Discussion created by rikke on Feb 23, 2011
Latest reply on Feb 27, 2013 by dvela
Hi there,

I have a custom web application (JSAPI) consuming a web service from ArcGIS Server 10. In that service there are some polygon layers with a transparency value set > 0% (i.e. semi-transparent). However, when that service is published in the application, the layers are shown at 0% transparency (i.e. opaque).

I have published the same service in a web application built from the ArcGIS Server Manager, and the transparency is honored.

Can someone explain how to replicate that behavior in my own application?