I am new to web mapping application with ArcGIS Java Script API, I build a page its works fine on Local, but when i go over internet, it doesn't show my Layers only Google Background image, I am giving my Live IP address to connect Services, These services can be viewed but i am not able to access these services through Web Application.
I am pasting my code below. ________________________________________________________________________________
2. Please create a map variable using esri.Map class. Specify value "gmap" as the name of the DIV element that will contain the map. e.g. var map = new esri.Map("gmap");
3. Please create a mapservicelayer variable using using the ArcGISDynamicMapServiceLayer constructor. e.g. var mapservicelayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://<server name>/ArcGIS/rest/services/javatest/admin_boundries/MapServer",{"opacity":0.75});
4. Add the mapservicelayer to the map using the map's addLayer method e.g. map.addLayer(mapservicelayer);
<script type="text/javascript"> function initialize() { var gmap = new GMap2(document.getElementById("gmap")); var centerat = new GLatLng(31.592, 71.014); gmap.addControl(new GLargeMapControl()); gmap.addControl(new GMapTypeControl()); gmap.setCenter(centerat, 6);