Select to view content in your preferred language

arcgis works on IE but not Chrome/Firefox

4276
29
Jump to solution
09-03-2014 02:11 PM
NathanLindley
Deactivated User

Map just keeps trying to load in Chrome/Firefox but works great in Internet Explorer...any ideas??

Using:

<script type="text/javascript" src="http://js.arcgis.com/3.10/"></script>

Thanks in advance for any suggestions!

0 Kudos
29 Replies
NathanLindley
Deactivated User

No, it is a subscription based service.  I wish it was public, as it would be a lot easier to show you guys what exactly is going on.  Is there any other information you need?

Previously we used http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5 and had no issues with either IE/FireFox.  Upgraded to add scalebar and ran into this issue.

0 Kudos
ScottRutzmoser2
Regular Contributor

I was looking at your JSFiddle example...I couldn't get it work because you are using some aspx parameters but I did notice a couple of potential issues.

I think this:

dojo.require("esri/layers/ArcGISDynamicMapServiceLayer");

should be:

dojo.require("esri.layers.ArcGISDynamicMapServiceLayer");

and you may need to add this:

dojo.require("esri.symbol.Symbol);

0 Kudos
NathanLindley
Deactivated User

When I include: dojo.require("esri.symbol.Symbol); this error comes up:

I have tried pretty much every combination of dojo.require that I can and it still gets that javascript error on FF/chrome.

Also, thanks a lot for your help.  I really appreciate it.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Scott,

  Wouldn't that be

dojo.require("esri.symbols.Symbol");

0 Kudos
ScottRutzmoser2
Regular Contributor

you are correct sir, esri.symbols.Symbol

0 Kudos
NathanLindley
Deactivated User

Yep, tried that as well.  Same result.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Nathan,

  OK checking every spelling and use of symbols now (everywhere in your code that you have esri.symbol... it has to be esri.symbols intead:

var markerSymbol = new esri.symbols.SimpleMarkerSymbol(esri.symbols.SimpleMarkerSymbol.STYLE_SQUARE, 28, new esri.symbols.SimpleLineSymbol(esri.symbols.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([27, 236, 86]), 0.75), new dojo.Color([255, 0, 0, 0.30]));
0 Kudos
NathanLindley
Deactivated User

Edit fiddle - JSFiddle

Changed and same error:

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Nathan,

   Try this fiddle. I think I have all the issues worked out

Edit fiddle - JSFiddle

0 Kudos
NathanLindley
Deactivated User

Thank you soooo much Robert, it works like a charm!

Very confusing that the require has a different path than the actual variable declarations.

Thanks again!

0 Kudos