i have a problem that i want to zoom to place using esri javascript api
i have this class from esriGetStarted javascript
function zoomToPlace(lon, lat, scale) {
mapDeferred.centerAndZoom([lon, lat], scale);
}
i have tried to zoom to place using this html element :
<a href="#place" class="buttonStyle" onclick="javascript:zoomToPlace('118.12', '-5.52', '9');">zoom to place </a>
but it never work untill now, please help me how to zoom to place, or may be is there alternative.