Attr.specified is deprecated error

619
6
04-22-2014 12:57 PM
DanielCooke
New Contributor
Hi all,

I am currently working on a JavaScript API that shows 4 categories using check-boxes. However when I refresh the page and inspect the element I get the following error:

Attr.specified is deprecated. Its value is always true. init.js:148

Resource interpreted as Script but transferred with MIME type text/plain: "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&callback=dojo.i...". init.js:1046
n._attach init.js:1046
n init.js:1045
c.get init.js:1414
s init.js:786
e init.js:790
A init.js:796
d._load init.js:702
(anonymous function) init.js:173
l.constructor init.js:641
(anonymous function) init.js:104
(anonymous function) init.js:390
g.forEach init.js:223
p.setBasemap init.js:389
p.constructor init.js:1529
(anonymous function) init.js:104
(anonymous function) index.html:39
ga init.js:32
(anonymous function) init.js:32
ha init.js:32
ea init.js:32
s init.js:34
(anonymous function) init.js:39

Thank you for your help!

Dan

P.S.

I've included a attachment of the code I have in a .txt
0 Kudos
6 Replies
RobertoPepato
Occasional Contributor II
Hi Daniel,

Are you serving your page though a web server (http)? Or are you just double-clicking your html file and running locally (without a web server)?
0 Kudos
DanielCooke
New Contributor
Hi Daniel,

Are you serving your page though a web server (http)? Or are you just double-clicking your html file and running locally (without a web server)?


We are running on a local server, however I can view it on a webpage through the index.html I create and save on the C drive.
0 Kudos
MichaelVolz
Esteemed Contributor
Daniel:

Why do you add http://ho213-radell19:6080/arcgis/rest/services/dtcook13/Final/MapServer as a dynamicMapServiceLayer and then give it imageParameters before adding it to the map?
0 Kudos
DanielCooke
New Contributor
Daniel:

Why do you add http://ho213-radell19:6080/arcgis/rest/services/dtcook13/Final/MapServer as a dynamicMapServiceLayer and then give it imageParameters before adding it to the map?


that just answered my question...thanks!
0 Kudos
MichaelVolz
Esteemed Contributor
Can you explain how that answered your question?
0 Kudos
DanielCooke
New Contributor
Can you explain how that answered your question?


looking back at my code (and code that i had continued on) it made me realize that I had called dynamicMapServiceLayer twice...thus, not allowing it to work as i want it to.
0 Kudos