Skip to content

Commit

Permalink
Updated to V1.1 of API
Browse files Browse the repository at this point in the history
  • Loading branch information
amundhak committed Jun 3, 2014
1 parent 7e29d9e commit a251f1b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<!-- Stylesheet for demo/tutorial -->
<link rel="stylesheet" href="css/index.css">
<!-- FME Server Javascript API -->
<script type="text/javascript" src="http://api.fmeserver.com/js/v1/FMEServer.min.js"></script>
<script type="text/javascript" src="http://api.fmeserver.com/js/v1.1/FMEServer.js"></script>
</head>
<body>
<div class="navbar navbar-fixed-top">
Expand Down Expand Up @@ -94,10 +94,9 @@ <h3>Google StaticMaps and FME Server <small>Order a static map for a park in Aus
<div id="results"</div>
</div>
<script type="text/javascript">
var fmes;

window.onload = function(){
fmes = new FMEServer({
FMEServer.init({
server : "https://fmepedia2014-safe-software.fmecloud.com",
token : "fb1c3ee6828e6814c75512dd4770a02e73d913b8"
});
Expand Down Expand Up @@ -132,7 +131,7 @@ <h3>Google StaticMaps and FME Server <small>Order a static map for a park in Aus
};

// FME Server submitJob( Repository, Workspace, Parameters Object, Callback Function );
fmes.submitJob("Demos", "staticmaps.fmw", params, function(json){
FMEServer.submitJob("Demos", "staticmaps.fmw", params, function(json){
var html = "<hr /><p>Your Request has been submitted to the server. You should recieve your email shortly.</p>";
html += "<p>Job ID: "+json.id+"</p>";
document.getElementById("results").innerHTML = html;
Expand Down

0 comments on commit a251f1b

Please sign in to comment.