Select to view content in your preferred language

Can someone show me how to put a map on a blank canvas, have code below:

895
4
05-27-2014 12:47 PM
KenDeeds
Regular Contributor
https://gs3.consensusdev.com/test.html   view source

I've copy and pasted from https://developers.arcgis.com/javascript/jstutorials/#step1

In FF I get this in the error console, totally confused.  I really just need to make a simple map and put one point on it, but I can't even get pasting your simplest example to page to work without all kinds of include errors:


Blocked loading mixed active content "http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css"
Blocked loading mixed active content "http://js.arcgis.com/3.9/js/esri/css/esri.css"
Blocked loading mixed active content "http://js.arcgis.com/3.9/"
Blocked loading mixed active content "http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css"
Blocked loading mixed active content "http://js.arcgis.com/3.9/js/esri/css/esri.css"
Blocked loading mixed active content "http://js.arcgis.com/3.9/"
ReferenceError: require is not defined


require(["esri/map", "dojo/domReady!"], function(Map) {
0 Kudos
4 Replies
TimWitt
Deactivated User
0 Kudos
KenDeeds
Regular Contributor
Tim, thank you.  When I take the working code in the sandbox, and copy and paste into any site on any server, it doesn't work.  This page is now verbatim the code from the sandbox:


Blocked loading mixed active content "http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css"
Blocked loading mixed active content "http://js.arcgis.com/3.9/js/esri/css/esri.css"
Blocked loading mixed active content "http://js.arcgis.com/3.9/"
Blocked loading mixed active content "http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css"
Blocked loading mixed active content "http://js.arcgis.com/3.9/js/esri/css/esri.css"
Blocked loading mixed active content "http://js.arcgis.com/3.9/"
ReferenceError: require is not defined


require(["esri/map", "dojo/domReady!"], function(Map) {
0 Kudos
KenDeeds
Regular Contributor
The issue is gs3.consensusdev.com is a blocked domain.  Can someone tell me why?
0 Kudos
KenDeeds
Regular Contributor
this post can be removed, I've seen a co-worker is forcing https on the domain and thus problem solved, knew had to be something simple.
0 Kudos