Author: gnodet
Date: Sat Oct  7 09:33:51 2006
New Revision: 453959

URL: http://svn.apache.org/viewvc?view=rev&rev=453959
Log:
SM-691: Client html pages do not work in IE

Modified:
    incubator/servicemix/trunk/samples/bridge/client.html
    incubator/servicemix/trunk/samples/ws-sec/client-basic.html
    incubator/servicemix/trunk/samples/ws-sec/client-ws-sec.html
    incubator/servicemix/trunk/samples/wsdl-first/client.html

Modified: incubator/servicemix/trunk/samples/bridge/client.html
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/client.html?view=diff&rev=453959&r1=453958&r2=453959
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/client.html (original)
+++ incubator/servicemix/trunk/samples/bridge/client.html Sat Oct  7 09:33:51 
2006
@@ -83,6 +83,9 @@
   var response = document.getElementById("response");  

   try {

     netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead 
UniversalBrowserWrite");

+  } catch (e) {

+  }

+  try {

     xmlhttp.open("POST", urlToOpen, true);

   } catch (e) {

     alert('Error opening connection');


Modified: incubator/servicemix/trunk/samples/ws-sec/client-basic.html
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/ws-sec/client-basic.html?view=diff&rev=453959&r1=453958&r2=453959
==============================================================================
--- incubator/servicemix/trunk/samples/ws-sec/client-basic.html (original)
+++ incubator/servicemix/trunk/samples/ws-sec/client-basic.html Sat Oct  7 
09:33:51 2006
@@ -18,8 +18,9 @@
 -->

 <html>

 <head>

-<title>ServiceMix SOAP Binding Example</title>

+<title>ServiceMix WS-Security Example</title>

 <script type="text/javascript">

+var urlToOpen = "http://localhost:8192/Service/";; //default URL to open

 

 function getHTTPObject() {

   var xmlhttp = false;

@@ -54,7 +55,13 @@
      xmlhttp.onreadystatechange=function() {

         if (xmlhttp.readyState == 4) { /* 4 : état "complete" */

            var response = document.getElementById("response");

-           response.value = "STATUS: " + xmlhttp.status + "\n" + 
xmlhttp.responseText

+           var responseStatus = "";

+           try {

+             responseStatus = xmlhttp.status + "";

+           } catch (e) {

+             responseStatus = "ERROR WHILE RETRIEVING STATUS; MAYBE UNABLE TO 
CONNECT.";

+           }

+           response.value = "STATUS: " + responseStatus + "\n" + 
xmlhttp.responseText;

         }

      }

   }

@@ -71,7 +78,10 @@
   var response = document.getElementById("response");

   try {

     netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead 
UniversalBrowserWrite");

-    xmlhttp.open("POST", "http://localhost:8192/Service/";, true);

+  } catch (e) {

+  }

+  try {

+    xmlhttp.open("POST", urlToOpen, true);

   } catch (e) {

     alert('error opening');

   }

@@ -83,11 +93,12 @@
 

 <body>

 

-<h1>ServiceMix SOAP Binding Example</h1>

+<h1>ServiceMix WS-Security Example</h1>

 

-<p>Welcome to the soap binding example for ServiceMix</p>

+<p>Welcome to the WS-Security example for ServiceMix</p>

 

-Perform a POST into the HTTP binding <p>

+<p>Perform a POST into the HTTP binding. This requires JavaScript.</p> 

+<p>Target: <input type="text" size="50" id="urlToOpen" value=""><script 
type="text/javascript">document.getElementById("urlToOpen").value = 
urlToOpen;</script>.</p>

 

 <table>

   <tr>


Modified: incubator/servicemix/trunk/samples/ws-sec/client-ws-sec.html
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/ws-sec/client-ws-sec.html?view=diff&rev=453959&r1=453958&r2=453959
==============================================================================
--- incubator/servicemix/trunk/samples/ws-sec/client-ws-sec.html (original)
+++ incubator/servicemix/trunk/samples/ws-sec/client-ws-sec.html Sat Oct  7 
09:33:51 2006
@@ -18,8 +18,9 @@
 -->

 <html>

 <head>

-<title>ServiceMix SOAP Binding Example</title>

+<title>ServiceMix WS-Security Example</title>

 <script type="text/javascript">

+var urlToOpen = "http://localhost:8192/WSSec/";; //default URL to open

 

 function getHTTPObject() {

   var xmlhttp = false;

@@ -54,7 +55,13 @@
      xmlhttp.onreadystatechange=function() {

         if (xmlhttp.readyState == 4) { /* 4 : état "complete" */

            var response = document.getElementById("response");

-           response.value = "STATUS: " + xmlhttp.status + "\n" + 
xmlhttp.responseText

+           var responseStatus = "";

+           try {

+             responseStatus = xmlhttp.status + "";

+           } catch (e) {

+             responseStatus = "ERROR WHILE RETRIEVING STATUS; MAYBE UNABLE TO 
CONNECT.";

+           }

+           response.value = "STATUS: " + responseStatus + "\n" + 
xmlhttp.responseText;

         }

      }

   }

@@ -71,7 +78,10 @@
   var response = document.getElementById("response");

   try {

     netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead 
UniversalBrowserWrite");

-    xmlhttp.open("POST", "http://localhost:8192/WSSec/";, true);

+  } catch (e) {

+  }

+  try {

+    xmlhttp.open("POST", urlToOpen, true);

   } catch (e) {

     alert('error opening');

   }

@@ -83,11 +93,12 @@
 

 <body>

 

-<h1>ServiceMix SOAP Binding Example</h1>

+<h1>ServiceMix WS-Security Example</h1>

 

-<p>Welcome to the soap binding example for ServiceMix</p>

+<p>Welcome to the WS-Security example for ServiceMix</p>

 

-Perform a POST into the HTTP binding <p>

+<p>Perform a POST into the HTTP binding. This requires JavaScript.</p> 

+<p>Target: <input type="text" size="50" id="urlToOpen" value=""><script 
type="text/javascript">document.getElementById("urlToOpen").value = 
urlToOpen;</script>.</p>

 

 <table>

   <tr>


Modified: incubator/servicemix/trunk/samples/wsdl-first/client.html
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/wsdl-first/client.html?view=diff&rev=453959&r1=453958&r2=453959
==============================================================================
--- incubator/servicemix/trunk/samples/wsdl-first/client.html (original)
+++ incubator/servicemix/trunk/samples/wsdl-first/client.html Sat Oct  7 
09:33:51 2006
@@ -83,6 +83,9 @@
   var response = document.getElementById("response");

   try {

     netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead 
UniversalBrowserWrite");

+  } catch (e) {

+  }

+  try {

     xmlhttp.open("POST", urlToOpen, true);

   } catch (e) {

     alert('error opening');



Reply via email to