|
POST
|
I got this same issue when I stopped and started the service using a .bat file and net stop and net start - should this be an issue? If so, is there a safe way to stop and start the service on a schedule? ACM
... View more
12-07-2013
12:08 AM
|
0
|
0
|
5412
|
|
POST
|
OK - the error is now a bit more limited - certainly to Chrome based browsers. I now get only I get
XMLHttpRequest cannot load http://my server name/arcgis/rest/info?f=json. The 'Access-Control-Allow-Origin' whitelists only 'http://myURL, *'. Origin 'http://myURL' is not in the list, and is therefore not allowed access.
The request to http://my server name/arcgis/rest/info?f=json seems to be how the API determines if the server supports CORS (see http://forums.arcgis.com/threads/71824-quot-NetworkError-404-Not-Found-http-tasks.arcgis.com-ArcGIS-rest-info-f-json-quot) It may be a genuine Chrome bug - see https://code.google.com/p/chromium/issues/detail?id=321517 But it is causing issues here. Cheers ACM
... View more
12-01-2013
11:51 PM
|
0
|
6
|
2668
|
|
POST
|
Bearing in mind that in IE10+ Conditional Comments are no longer supported any ideas how I would detect if IE8 or IE10 and use a different metatag - basically, this is what I would use is conditional comments were supported <!--[if lte IE 8]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'><![endif]-->
<!--[if IE 10]><meta http-equiv="X-UA-Compatible" content="IE=9" /> <![endif]--> As our IE8 users use Google Chrome frame to improve performance, whereas our IE10 users need to run it as IE9. ACM
... View more
11-29-2013
01:48 AM
|
0
|
0
|
1710
|
|
POST
|
Oddly my code I had a different approach, which broke when I moved to API 3.7 I had hooked the onclick of the tool to a routine, disableID(), that set a global variable - which I then checked against on my id function dojo.connect(measurement, "onClick", function() {
navToolbar.deactivate();
ClearAllButtonsIcon();
disableID();
}); Since 3.7 none of this event gets triggered - using your method of checking works fine - so many thanks. Anyone any ideas why my old code broke at 3.7? I haven't tried using the newer style "on" way of linking to events yet. Cheers ACM
... View more
11-24-2013
11:54 PM
|
0
|
0
|
2734
|
|
POST
|
adding <system.webServer> <httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
</system.webServer> to my web.config (using IIS7 ) Helped a lot - still get the odd issue, but that cleared my main one.
... View more
11-24-2013
11:35 PM
|
0
|
0
|
2668
|
|
POST
|
Hi - anyone else ever seen this error script28 out of stack space I'm running API 3.7 on IE10, but forcing IE9 compatibility - when it happened the entire browser froze and had to be killed. Cheers ACM
... View more
11-20-2013
07:00 AM
|
0
|
7
|
4372
|
|
POST
|
Hi This Cross Origin thingy, AKA CORS has been discussed many time, however I have read those threads and none covers exactly what I am seeing. I am only seeing this issue when I make a request for a legend. The error doesn't always happen. At 3.5 it would happen a few times, 2 out of 10 start ups. When it fails my TOC breaks. So I was naughty and put a loop in to simply try again. The users didn't notice. Now, using 3.7 and IE8 I get this every time, and of course my loop goes on forever. I get XMLHttpRequest cannot load http://ARGISserver/arcgis/rest/services/LIVEinternal/aerials/MapServer/legend?f=json. The 'Access-Control-Allow-Origin' whitelists only 'http://appURL'. Origin 'http://appURL_dev' is not in the list, and is therefore not allowed access. (index):1
k {stack: "Error: Unable to load http://ARGISserver/arcgis/rest???ev/arcgis_js_api/library/3.7/3.7/init.js:3570:29)", message: "Unable to load http://ARGISserver/arcgis/rest/servic???nternal/aerials/MapServer/legend?f=json status: 0", response: Object, status: 0, responseText: ""???}
So, have I forgotten that I've set one domain onto a whitelist somewhere? I can't recall doing so. Or is it a IE policy stting I have no control over?
... View more
11-15-2013
05:32 AM
|
0
|
9
|
4728
|
|
POST
|
Hi - anyone else having issues with floating panes/non-AMD and 3.7 I've added dojo.require("dojox.layout.Dock"); As it seems to be required now, but still get "Uncaught TypeError: Cannot call method 'attr' of undefined " when it is called.
... View more
11-14-2013
03:51 AM
|
0
|
0
|
1526
|
|
POST
|
Many thanks - is it an official bug or something else?
... View more
10-28-2013
01:38 AM
|
0
|
0
|
1710
|
|
POST
|
PS - <meta http-equiv="X-UA-Compatible" content="IE=9"/> works for me. Also, without it the draw tools are borked. Also see http://forums.arcgis.com/threads/88426-Shift-Draw-Rectangle-on-the-map-to-zoom-in-does-not-work-in-IE?highlight=ie10+zoom which confirms this behaviour. Esri - is this a listed bug?
... View more
10-17-2013
06:12 AM
|
0
|
0
|
1710
|
|
POST
|
I had a similar issue - see http://forums.arcgis.com/threads/87962-IE10-and-zoom-box-fail?highlight=ie10+zoom But it has returned, and my previous "fix" seems to not work.
... View more
10-17-2013
05:57 AM
|
0
|
0
|
1710
|
|
POST
|
OK, now I had to adjust my sort - the brief was to sort on house number, but if no number then name. So 1 High Street 2 High Street 11 High Street And for named properties Aardvark House Hope House Zebra Cottage So I created a hidden column that on the face of it took the house number. However I created (with some help, see above) a formatter for this that changed the actual row DATA.
//change the actual DATA used in the hidden colum used for sorting
//Add a padded string of the house number to the rest of the address, so order is 001, 002,010 rather than 1,10,2
//We then change the actual row DATA TO THIS NEW VALUE, JUST CHANGING WHAT IS DIPLAYED DOES NOT WORK
//Return 0 just to get something there that fill no space
function PAOFormat(item, rowIndex) {
var rowdata = this.grid.getItem(rowIndex);
var sortAddress = dojo.string.pad(item,3) + rowdata.Address;
rowdata.PAO_FROM[0] = sortAddress;
return 0;
}
Changing what is displayed doesn't work.. Credit to this http://documentumcookbook.wordpress.com/2010/08/06/dojo-datagrid-combining-field-values-in-formatter/ blog post for showing how to retrieve other cell data in a formatter. ACM
... View more
10-16-2013
02:37 AM
|
0
|
0
|
2770
|
|
POST
|
I've never used resizing or have scrolling. I size the floating pane to fit the content without overflow. I was able to get a quick solution based on my example code above to be placed below the focus and show events. dojo.connect(mapinfofp, 'resize', function() { dojo.style(mapinfofp.canvas, 'height', dojo.style(mapinfofp.canvas, 'height') - 18 + 'px') } ); 18px seems to be enough. The problem I see with this is always having the extra "padding" on the bottom even when no scroll bars are showing. I suppose you could check to see if the cavas node is scrolling before changing the height. This is obviously non-AMD. Cheers! By the sounds of it, the appearance will match my CSS hack - leaves the padding there without scroll bars - but I think my users can cope - my floating pane contains the results of a "all layers, All features" ID task - just like old ArcIMS did, so it can have one feature in one table, or 100+ in several tables.
... View more
10-03-2013
07:04 AM
|
0
|
0
|
3904
|
|
POST
|
Ben - thanks for the answer - (and original code) The only issue I have now is the vertical scroll bar obscures the resize handle (which is a user requirement) - this was what the 20 px padding in the original CSS brought to the party - so any ideas? Cheers ACM Edit - so far I've managed to move it a bit with - seems OK. .dojoxResizeHandle { right:20px }
... View more
10-03-2013
05:40 AM
|
0
|
0
|
3904
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-19-2026 12:29 AM | |
| 1 | 08-28-2025 01:14 AM | |
| 1 | 12-01-2023 06:07 AM | |
| 2 | 11-29-2024 04:32 AM | |
| 1 | 05-28-2024 12:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|