Hell all,
I can't figure out why the map & query results won't display when using Firefix and IE. Only able to use it in Chrome?
Does anyone got this problem too?
Here is my jsfiddle:
Thank you.
Solved! Go to Solution.
You're not using sort correctly, needs to be something like:
var sortedFeatures = results.features.sort(function(a,b) { return a.attributes.PARCELID.localeCompare(b.attributes.PARCELID); });
May Jeff,
Other browsers do not support the Array.prototype.sort (the way that you are trying to use it).
Here is the workaround for your code.
var sortedFeatures = results.features;//.sort('PARCELID');
look at using the Query orderByFields
Robert, all browsers support Array.sort...
True, but not the way he was using it. Only Chrome did not have issue with his use of it. I will edit my response.
You're not using sort correctly, needs to be something like:
var sortedFeatures = results.features.sort(function(a,b) { return a.attributes.PARCELID.localeCompare(b.attributes.PARCELID); });
Thank you for taking your times to look into it. I updated the sorting part based on Heiko. Edit fiddle - JSFiddle and I also do another way for sorting based on Robert help link mentioned on his last posted Edit fiddle - JSFiddle
When I use notepadd ++ to create a file and run it on IE - always got Access Denied - See my attachment file.
Both links above using JSFiddle can see both map and query results when using IE but not firefox.
Using firefox so far nothing show up at all. Got any ideas?
Thank you.