french misspeech
[mkws-moved-to-github.git] / experiments / spclient / mkws.js
index 3c8d76e..179e972 100644 (file)
@@ -426,10 +426,10 @@ $(document).ready(function() {
     domReady();
 });
 
-$(document).ready(function() {
+function mkws_service_proxy_auth() {
     var jqxhr = jQuery.get("/service-proxy-auth")
        .fail(function() {
-           alert("service proxy authentification failed, give up!");
+           alert("service proxy authentication failed, give up!");
        })
        .success(function(data) {
            if (!jQuery.isXMLDoc(data)) {
@@ -442,4 +442,9 @@ $(document).ready(function() {
                return;
            }
        });
+}
+
+$(document).ready(function() {
+    mkws_service_proxy_auth();
 });
+