Kelly,
I downloaded the geoform code from the link below and I'm getting the following message when trying to run it from one of our web servers. It works fine when I run it from a local machine, but I get this message on the web server. It's as if it's trying to look for the web map on a premise portal, but I want it to look to cms.maps.arcgis for the web map. Which again it works fine locally in my dev environment on my machine, but not on the web server. Also I have the "sharinghost": in the default.js set to "http://cms.maps.arcgis.com".
Thanks for the help.
Troy Proctor
Tony,
On production is your app deployed to a location that has apps or home in the path? If so try switching line 179 in template.js from this:
appLocation = location.pathname.indexOf("/apps/");
To this:
appLocation = -1;
If your path contains home you'll also want to comment out the if statement from lines 180-182
Kelly,
Thanks for the quick response!
It was under /apps/.
That got it to look at cms,maps.arcgis.com, but now I'm getting this error.
Thanks,
Troy
Looks like that url works fine. Can you try just navigating to the url on your production server:
http://cms.maps.arcgis.com/sharing/rest/content/items/1579f66872684abb9c003a21df4e972d/data
Kelly,
Yeah, that link works fine in Internet Explorer on the production server.
It made me think to try to browse to the application with IE and after
doing that the site runs fine. So it looks like it's just an issue within
Chrome and Safari when trying to browse to site, which is weird because it
still works fine in my local dev environment with Chrome. If you happen to
think of something that might be causing that let me know.
Thanks for your help.
Troy Proctor
Kelly,
I got that last piece figured out.
I didn't have the http(s) in my url. Once I had "sharinghost": "
https://cms.maps.arcgis.com", it worked fine in Chrome and Firefox.
Thanks Again,
Troy
On Thu, Oct 16, 2014 at 1:20 PM, Troy Proctor <troy.c.proctor@gmail.com>