|
POST
|
I am receiving this error immediately: TypeError: Cannot read property 'call' of undefined {stack: (...), message: "Cannot read property 'call' of undefined"} message: "Cannot read property 'call' of undefined" stack: (...) get stack: function () { [native code] } set stack: function () { [native code] } __proto__: Error "in domReady callback" "TypeError: Cannot read property 'call' of undefined at Function.k.parse (http://js.arcgis.com/3.13compact/init.js:218:362) at k (http://js.arcgis.com/3.13compact/init.js:218:47) at http://localhost:50548/app/main.js:130:52 at ha (http://js.arcgis.com/3.13compact/init.js:32:473) at ha (http://js.arcgis.com/3.13compact/init.js:32:184) at http://js.arcgis.com/3.13compact/init.js:33:202 at ia (http://js.arcgis.com/3.13compact/init.js:33:89) at fa (http://js.arcgis.com/3.13compact/init.js:33:144) at b (http://js.arcgis.com/3.13compact/init.js:34:122) at e (http://js.arcgis.com/3.13compact/init.js:170:442)" And I just added these two line to try to get the value of the checkboxes: on(dom.byId("lyrSigns"), "change", console.log(on(dom.byId("lyrSigns").value))); on(dom.byId("lyrSupports"), "change", console.log(on(dom.byId("lyrSupports").value)));
... View more
05-04-2015
09:01 AM
|
0
|
15
|
3391
|
|
POST
|
I can't believe I forgot to post the error message. Just in case it helps, I'll add that to this thread as well: ncaught SyntaxError: Unexpected token {
... View more
05-04-2015
07:57 AM
|
2
|
0
|
1493
|
|
POST
|
I am just trying to figure out a toggle layer visibility. I re-uploaded my project as I comment out what I am not working on so they don't conflict.
... View more
05-01-2015
11:59 AM
|
0
|
0
|
2614
|
|
POST
|
Still getting a syntax error. I have my code on github here if you want to see it: https://github.com/csergent45/streetSigns I am working through two issues.
... View more
05-01-2015
11:40 AM
|
0
|
2
|
2614
|
|
POST
|
I am trying to use this sample to toggle layers: Toggle layer visibility | ArcGIS API for JavaScript but I receive this error message: TypeError: Cannot read property 'on' of null {stack: (...), message: "Cannot read property 'on' of null"} message: "Cannot read property 'on' of null" stack: (...) get stack: function () { [native code] } set stack: function () { [native code] } __proto__: Error "in domReady callback" "TypeError: Cannot read property 'on' of null and here is my code: var visibleLayerIds = [];
on(dom.byId("lyrSigns"), "change", updateLayerVisibility);
on(dom.byId("lyrSupports"), "change", updateLayerVisibility);
function updateLayerVisibility() {
var inputs = query(".list_item");
var inputCount = inputs.length;
for (var i = 0; i < inputCount; i++) {
if (inputs.checked) {
visibleLayerIds.push(inputs.value);
}
}
if (visibleLayerIds.length === 0) {
visibleLayerIds.push(-1);
}
layer.setVisibleLayers(visibleLayerIds);
} And here is my project on github: csergent45/streetSigns · GitHub
... View more
05-01-2015
11:37 AM
|
1
|
22
|
11535
|
|
POST
|
Here is the complete block: function sendEmail(ev) { on(dom.byId("btnFeedback"), "click", function () { If(document.getElementById("eMail").value == null || document.getElementById("eMail").value == "") { alert("not working"); } else { sendEmail(); } ); I removed the semi-colon but still receive a syntax error.
... View more
05-01-2015
11:21 AM
|
0
|
5
|
2614
|
|
POST
|
I am trying to see if a field is empty, but I am receiving a syntax error. Any ideas: on(dom.byId("btnFeedback"), "click", function () { If(document.getElementById("eMail").value == null || document.getElementById("eMail").value == ""); { alert("not working"); } else { sendEmail(); } );
... View more
05-01-2015
11:13 AM
|
1
|
14
|
8691
|
|
POST
|
It's been updated? When was that? I might want to try out the update.
... View more
05-01-2015
11:07 AM
|
0
|
0
|
2341
|
|
POST
|
I tried it and I set always use proxy to false. There appears to be a delay before it populates, but it does populate. Thanks @Ken_Buja. I'll try to add it to my application.
... View more
05-01-2015
11:05 AM
|
0
|
0
|
2341
|
|
POST
|
Here is the file I uploaded that doesn't work. It kind of works, but does not show all layers. https://community.esri.com/docs/DOC-5792
... View more
05-01-2015
08:04 AM
|
0
|
2
|
2341
|
|
POST
|
I would like for my users to be able to turn layers on and off so they can see just street signs or supports. I have tried using this widget, but it does not work: http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109http://Is there a way to add a checkbox next to the layer in the legend widget to turn layers on/off? My code for starting the legend is the following: app.legend = new Legend({ map: app.map, layerInfos: [{ title: app.supportLayer.name, layer: app.supportLayer }, { title: app.signLayer.name, layer: app.signLayer }] }, "legend"); app.legend.startup();
... View more
05-01-2015
06:47 AM
|
0
|
6
|
5638
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-26-2015 12:31 PM | |
| 1 | 06-24-2015 06:06 AM | |
| 1 | 07-15-2015 12:34 PM | |
| 1 | 05-21-2015 02:27 PM | |
| 1 | 05-19-2015 11:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|