display an error alert if service proxy authentifiction failed
authorWolfram Schneider <wosch@indexdata.dk>
Thu, 13 Jun 2013 16:36:10 +0000 (18:36 +0200)
committerWolfram Schneider <wosch@indexdata.dk>
Thu, 13 Jun 2013 16:36:10 +0000 (18:36 +0200)
experiments/spdemo/index.html

index 6d8f610..0954f03 100644 (file)
 
   <!-- post configure -->
   <script type="text/javascript">
-    $(document).ready(function() { if (useServiceProxy) jQuery.get(authURLServiceProxy) } );
+    $(document).ready(function() { 
+       if (useServiceProxy) { 
+           var jqxhr = jQuery.get(authURLServiceProxy)
+               .fail(function() { alert("service proxy authentifiction failed"); });
+       } 
+      } 
+    );
   </script>
  </head>