|
POST
|
Question - would you know how to avoid / disable these warnings in IE8 ?0 I know the user can change a setting, but is there some other way ? I'm still not sure of the specific error you're seeing in IE. Can you post a screen shot of what you're seeing? As I said initially, testing for CORS support logs a message to the browser's console and does not require any interaction from the user. If you're seeing security warnings, it's probably because you have mixed http and https resources in your page.
... View more
11-19-2012
07:57 AM
|
0
|
0
|
2637
|
|
POST
|
Yes, it still works. One of the Dojo changes that happened (I don't recall exactly when it happened) is that you set the store for a dijit using .set("store", store) instead of .store = store. Here's a version of the page from the blog post that uses 3.2: http://jsfiddle.net/4yghv/ The key line of code is: dijit.byId("mySelect").set("store", store); I also modified the code to use OBJECTID as the store's identiifer. This causes lots of duplicates to be displayed in the ComboBox and that's not a good idea for an actual app, but the link above shows that you can still use a ComboBox with current versions of the JS API.
... View more
11-19-2012
07:51 AM
|
0
|
0
|
1080
|
|
POST
|
Can you post a simple test page that uses 3.2 to reproduce this?
... View more
11-19-2012
07:06 AM
|
0
|
0
|
1397
|
|
POST
|
Are you looking for something more granular than showing the loading icon just before you send the request, then hiding it when the request finishes? We have talked about providing request progress in supported browsers, but it's not in the API yet.
... View more
11-19-2012
06:12 AM
|
0
|
0
|
781
|
|
POST
|
We had a bug or two in the past where we had hard coded http URLs for certain resources. There isn't an easy one line workaround. If you really can't upgrade to 3.2, you can build Basemaps manually using the services hosted on arcgis.com with https URLs and use those in the basemap gallery.
... View more
11-16-2012
11:41 AM
|
0
|
0
|
2026
|
|
POST
|
Do you happen to have an example of that? This configuration isn't working for me: <snip> In Chrome I get: [blocked] The page at https://xxx/test2.html ran insecure content from http://www.arcgis.com/sharing/community/groups?q=title%3A%22ArcGIS%20Online%20Basemaps%22%20AND%20owner%3Aesri&f=json&callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback. Can you use version 3.2 of the API and see the same error?
... View more
11-16-2012
10:53 AM
|
0
|
0
|
2026
|
|
POST
|
Glad to help. If you're app is running over https, the basemap gallery will also use https. Otherwise, it uses http as the protocol.
... View more
11-16-2012
09:40 AM
|
0
|
0
|
2026
|
|
POST
|
All the samples are using standard HTTP, but I figured using SSL would be as simple as adding an "s" It is, here's an example: https://servicesbeta.esri.com/demos/jsapi_over_ssl.html <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6"></script> And while it more or less was, I did have to apply the hack below: esri.setRequestPreCallback(function (ioArgs) {
alert(ioArgs.url);
ioArgs.url = ioArgs.url.replace('http:', 'https:');
return ioArgs;
}); Unfortunately even with that, all of the map images are being loaded over non-SSL. Is there a proper way to using ArcGIS over SSL? Some property I need to set somewhere? TIA! There's no need to do that. Make sure your script tag including the API uses https, all the services you're using use https URLs and that your app is accessed over https as well.
... View more
11-16-2012
08:53 AM
|
0
|
0
|
2026
|
|
POST
|
Hi Sean, These messages: XMLHttpRequest cannot load http://<map host name>/ArcGIS/rest/info?f=json. Origin http://<myApp hostname>:10350 is not allowed by Access-Control-Allow-Origin. Are not "XSS warnings" but rather are related to the API trying to detect support for CORS. We've discussed why these errors are logged, and why you can ignore them a couple of times in the past. Please see this post for the background: http://forums.arcgis.com/threads/60386-Access-Control-Allow-Origin-and-3.0?p=208466&viewfull=1#post208466 The error for CORS detection does not cause IE to display any dialog that requires a click from the user. You can confirm this by visiting any of our samples in IE, such as the terrain + dynamic layer. When I go there in IE 8 and 9, the page loads without any dialogs/warnings/errors. Can you elaborate on what you're seeing in IE? Are you using mixed http and https resources? As you've suggested, using a proxy for everything is not a good idea. Regarding your question about JSONP, the API already uses it extensively. I talked about this more over on GIS.StackExchange: http://gis.stackexchange.com/a/33177/124 Rather than knowing when to use JSONP and the various XHR options, we encourage our devs to use esri.request and let the API figure out which method (JSONP, xhrGet, xhrPost) to use to execute the request. We have more information on how esri.request works here in the "Under the hood" section: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/inside_esri_request.html
... View more
11-16-2012
05:57 AM
|
0
|
0
|
2637
|
|
POST
|
If you pass in tileInfo, the WebTiledLayer will use that. Otherwise, it defaults to web mercator. Edit: You already marked this as answered, but I wanted to follow up with more info and an example showing a non-web-mercator tiled layer. When you do this, your esri.Map will have to use 4326 as its spatial reference. This will happen automatically if you create your map and specify its extent in 4326 or if you specify no extent and the first layer you add to the map is your Google Imagery layer. I point out the spatial reference side of this because you won't be able to use other tiled services that are in web mercator. You'll still be able to use dynamic map services and feature layers as those support project on the fly. Here's an example of using a web tiled layer in 4326: http://jsfiddle.net/b2U82/
... View more
11-14-2012
08:16 AM
|
0
|
0
|
1459
|
|
POST
|
In the results object passed to onLayersAddResult, are you seeing success: false and an error object?
... View more
11-14-2012
06:52 AM
|
0
|
0
|
1375
|
|
POST
|
It's probably a CSS issue. Are you defining text color as an almost white color somewhere? The drawing toolbar tooltip element is a div with class="tooltip" so you could use: div.tooltip { color: #777; } to specify some other color for the text.
... View more
11-12-2012
08:12 AM
|
1
|
0
|
1096
|
|
POST
|
We haven't discussed it yet but I'll bring it up with the team. I'm honestly not sure if we can make this all work client side or if we would need to make changes to the server side print task as well.
... View more
11-05-2012
06:08 AM
|
0
|
0
|
1906
|
|
POST
|
Unfortunately, no, our print tools do not support web tiled layers.
... View more
11-04-2012
06:03 AM
|
0
|
0
|
1906
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-23-2012 07:54 AM | |
| 1 | 05-28-2010 08:31 AM | |
| 1 | 11-12-2012 08:12 AM | |
| 3 | 02-23-2012 10:57 AM | |
| 1 | 06-27-2011 08:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|