|
POST
|
I had this problem too. I came across a post, that I can't seem to find now, that said to use an absolute path rather than relative path because of some bug. So, something like this: esriConfig.defaults.io.proxyUrl = "http://yourServer/proxy.ashx"; //Full path required due to some bug....
... View more
07-16-2014
12:47 PM
|
0
|
1
|
2330
|
|
POST
|
No problem. Just use Chrome dev tools (or firebug) to open up all the child nodes of the widget and play with the styles till it works.
... View more
07-11-2014
11:29 AM
|
0
|
0
|
1765
|
|
POST
|
This may work for you or at least get you started. .templatePicker .grid .dojoxGridCell {background-color:transparent; border-color: transparent;} .templatePicker .grid .dojoxGridRow {background-color: transparent; border-color: transparent;} .templatePicker .grid .dojoxGridRowOver .dojoxGridCell {background-color:transparent} .templatePicker .grid .dojoxGridRowOdd {background-color: transparent;} .dojoxGridScrollbox {background-color: transparent;} .templatePicker {background-color: transparent;} .templatePicker .grid {background-color: transparent;}
... View more
07-11-2014
11:14 AM
|
1
|
2
|
1765
|
|
POST
|
Looking at the error, it looks like Text editing (maybe all points) requires Edit.EDIT_VERTICES, Edit.EDIT_TEXT (text only?), Edit.MOVE tools n=this._enableBoxEditing(b,c,p);(a&e)===e&&(k=this._enableVertexEditing(b));(a&g)===g&&this._enableTextEditing(b);if(!h&&!k&&!n)throw Error("[esri.toolbars.Edit::activate] Unable to activate the tool. Check if the tool is valid for the given geometry type."); The code below prevents the error, which makes the popup work as expected.... function createGraphicsMenu() { // Creates right-click context menu for GRAPHICS ctxMenuForGraphics = new Menu({}); ctxMenuForGraphics.addChild(new MenuItem({ label: "Edit", onClick: function() { if ( selected.geometry.type !== "point" ) { editToolbar.activate(Edit.EDIT_VERTICES, selected); } else { editToolbar.activate(Edit.MOVE | Edit.EDIT_VERTICES | Edit.EDIT_TEXT, selected); } } }));
... View more
07-01-2014
09:41 AM
|
0
|
0
|
2189
|
|
POST
|
Did it work before you made any modifications? Maybe start over fresh and see. I just downloaded and unzipped the template without modification and it worked fine. Does you javascript console show any errors?
... View more
05-27-2014
11:34 AM
|
0
|
0
|
772
|
|
POST
|
It doesn't look like dom is defined in the fiddle? require([
"esri/map", "esri/geometry/Point",
"esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol",
"esri/graphic", "esri/Color", "dojo/domReady!"
], function(
Map, Point,
SimpleMarkerSymbol, SimpleLineSymbol,
Graphic, Color
) { try require([
"dojo/dom", "esri/map", "esri/geometry/Point",
"esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol",
"esri/graphic", "esri/Color", "dojo/domReady!"
], function(
dom, Map, Point,
SimpleMarkerSymbol, SimpleLineSymbol,
Graphic, Color
) {
... View more
05-16-2014
10:21 AM
|
0
|
0
|
1742
|
|
POST
|
I have been banging my head against the wall for a while with a similar issue. Turns out it was <a> tag that I was using as a 'zoom to' link. <div id='featureListDiv'><a href='javascript:;' class='zoomFeatureAnchor'>zoom to</a> ...... on(dom.byId("featureListDiv"), ".zoomFeatureAnchor:click", zoomFeature); From link below: "check your application for instances of <a> tags which don't go anywhere (e.g. have href="javascript:") but also aren't having their events canceled, and make sure to cancel their events" or "So, this was a really weird issue that ended up being fixed by a wild guess. The thing that was setting IE9+ off was clicking the a tags in the navigation controls. Changing them to spans (which is something we had a mind to do anyway) resolved the issue." See http://dojo-toolkit.33424.n3.nabble.com/Weird-TabContainer-Tabs-Title-behavior-IE9-Dojo-1-8-1-td3992531.html and https://github.com/SitePen/dgrid/issues/379#issuecomment-14877163 So I changed to this and it finally seems ok. <div id='featureListDiv'><span class='zoomFeatureAnchor'>zoom to</span> ....
... View more
05-14-2014
11:44 AM
|
0
|
0
|
1312
|
|
POST
|
Could try something like this:
function submitCSVprint(gridName, inputData) {
//var f = registry.byId("downloadForm");
//dom.byId("reportinput").value = inputData;
var outFileName = setOutName(gridName);
//dom.byId("filename").value = outFileName;
//f.submit();
require(["dojo/request"], function(request){
request.post("webservices/csv.ashx", {
data: {
report: inputData,
filename: outFileName
}
}).then(function(text){
console.log("it worked");
});
});
}
... View more
11-27-2013
08:32 AM
|
0
|
0
|
1838
|
|
POST
|
Perhaps only one form submission is allowed? The page seems to do a refresh. Also, I don't think forEach guarantees order, which could be the browser discrepancy. I could be wrong. Some alternatives: Package all of the outputs together with one form submit and parse it on the .ashx page. Make one or multiple ajax (post) calls to the .ashx page rather than using a form submit.
... View more
11-27-2013
05:51 AM
|
0
|
0
|
1838
|
|
POST
|
This may be fixed in 3.7 but I haven't tried yet. Otherwise try wrapping your map initialization in a setTimeout
ready(function(){
parser.parse();
setTimeout(function () {
map = new Map("mapPane", {
basemap: "streets"
});
}, 10);
});
... View more
10-03-2013
09:45 AM
|
0
|
0
|
1446
|
|
POST
|
IE8 doesnt always seem to be ready when dojo/ready or addOnLoad is called. The differences between your local copy of the jsapi and the hosted one is probably latency allowing IE8 to be more ready. Try wrapping your map initialization in a timeout. I've had to do similar things before. function init() {
setTimeout(function () {
var myMap = new esri.Map("mapDiv");
//note that if you do not have public Internet access then you will need to point this url to your own locally accessible cached service.
var myTiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/NGS_Topo_US_2D/MapServer");
myMap.addLayer(myTiledMapServiceLayer);
}, 10);
}
... View more
09-10-2013
10:46 AM
|
0
|
0
|
397
|
|
POST
|
My JS app (v3.6) has two parts: map and form. Both are in absolutely positioned divs that toggle display. In other words, when the map is visible, the form is set to display = none and when the form is set to display = block, the map is set to display = none. I am finding that if I go to the form page and move my browser from one monitor to another or even change the size of my browser window, when I return to the map page the map is not visible. If I resize the map after returning to the map page, I only see a strip of map vertically in the center of the page and I get 2 error messages in my console that say: Error: Invalid value for <image> attribute x="NaN" svg.js:15 Error: Invalid value for <image> attribute y="NaN" svg.js:15 How can I refresh the map so that it will show up even if the window size is changed while it is hidden. As far as I can tell, everything works fine if I change the window size while the map is visible. Set autoResize to false var map = new Map("mapPane", { autoResize : false, //..... Handle the map resize only when the map is visible: on(window, 'resize', function() { // prevent map from resizing when not visible. This would error otherwise if ( map is visible ) //pseudo code { map.resize(); map.reposition(); } }); also after your map becomes visible, call resize() and reposition()
... View more
09-10-2013
08:11 AM
|
1
|
1
|
1337
|
|
POST
|
Does anyone else have problems with the Mobile Template sample at the following URL? http://developers.arcgis.com/en/javascript/samples/mobile_template/index.html I noticed back in 3.3 that if you click About, rotate the screen, go back to the map and rotate the screen a couple of times, the map will resize itself into nothing. I brought this up with ESRI Support, even filed a bug about it and was told it was "a priority item to solved right away". Here we are at 3.6 and it doesn't appear to me that anything has changed. Is it just my iPad and half a dozen Android sample devices doing this? Thanks, Doug This was brought up a couple months ago. But when creating the map, set autoResize to false. Then only call map.resize() when inside the map view. map = new esri.Map("mapPane", {
autoResize : false,
..... dojo.connect(map, "onLoad", function () {
dojo.connect(window, 'onresize', function() { // prevent map from resizing in non map view. This would error otherwise
if (currentView == "mapView")
{
map.resize();
map.reposition();
}
});
});
... View more
08-22-2013
11:44 AM
|
0
|
0
|
746
|
|
POST
|
Has anyone else had problems getting JavaScript API 3.5 working? I have installed/configured per the instructions contained in the install_linux.htm and cannot seem to get the test page to come up. Try adding /init.js to the end of that line.
... View more
08-22-2013
11:28 AM
|
0
|
0
|
455
|
|
POST
|
I've had some issues with 3.5 and IE8 and having different results on page refreshes. It seems to me that dojo/ready function happens slightly too fast for IE8. Anyway, wrapping map initialization with a setTimeout worked for me. require([ "dojo/ready" ], function (ready) { ready(function () { //ie8 fix -- ready() called slightly too fast for ie8? setTimeout(function () { initMap(); // create map and such after short timeout }, 10); }); })
... View more
08-08-2013
12:24 PM
|
0
|
0
|
1652
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-10-2013 08:11 AM | |
| 1 | 06-26-2015 10:21 AM | |
| 1 | 08-11-2017 11:02 AM | |
| 2 | 01-03-2019 10:31 AM | |
| 2 | 05-18-2017 01:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|