cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r647235 - in /incubator/cxf/trunk: distribution/src/main/release/samples/js_browser_client_java_first/staticContent/ distribution/src/main/release/samples/js_browser_client_simple/staticContent/ rt/javascript/src/main/resources/org/apache/c...
Date Fri, 11 Apr 2008 17:34:05 GMT
Author: bimargulies
Date: Fri Apr 11 10:34:03 2008
New Revision: 647235

URL: http://svn.apache.org/viewvc?rev=647235&view=rev
Log:
Repair javascript for IE.

Modified:
    incubator/cxf/trunk/distribution/src/main/release/samples/js_browser_client_java_first/staticContent/Beverages.html
    incubator/cxf/trunk/distribution/src/main/release/samples/js_browser_client_simple/staticContent/HelloWorld.html
    incubator/cxf/trunk/rt/javascript/src/main/resources/org/apache/cxf/javascript/cxf-utils.js

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/js_browser_client_java_first/staticContent/Beverages.html
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/js_browser_client_java_first/staticContent/Beverages.html?rev=647235&r1=647234&r2=647235&view=diff
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/js_browser_client_java_first/staticContent/Beverages.html
(original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/js_browser_client_java_first/staticContent/Beverages.html
Fri Apr 11 10:34:03 2008
@@ -22,14 +22,14 @@
 <!-- Generate and retrieve a JavaScript client for the server. -->
 <script type="text/javascript" src="/beverages?js"></script>
 <script type="text/javascript">
-<!-- create an object that talks to the server. -->
+// Create an object that talks to the server.
 var server = new urn_cxf_apache_org_jsjaxws_JavascriptExample();
-<!-- set the URL for the service. No cross-scripting allowed. -->
+// Set the URL for the service. No cross-scripting allowed. 
 server.url = "/beverages";
 
 var responseSpan;
 
-<!-- This is the function called upon success. -->
+// This is the function called upon success.
 function beverageListResponse(response)
 {
     responseSpan = document.getElementById('beverages');
@@ -42,13 +42,13 @@
     responseSpan.firstChild.nodeValue = str;
 }
 
-<!-- This is the function called for an error. -->
+// This is the function called for an error.
 function onerror(error)
 {
       alert('error ' + error);
 }
 
-<!-- This function is invoked from the button press to run the service. -->
+// This function is invoked from the button press to run the service.
 function invokeCategoryQuery()
 {
     responseSpan = document.getElementById('beverages');

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/js_browser_client_simple/staticContent/HelloWorld.html
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/js_browser_client_simple/staticContent/HelloWorld.html?rev=647235&r1=647234&r2=647235&view=diff
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/js_browser_client_simple/staticContent/HelloWorld.html
(original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/js_browser_client_simple/staticContent/HelloWorld.html
Fri Apr 11 10:34:03 2008
@@ -29,19 +29,20 @@
 
 var responseSpan;
 
-<!-- This is the function called upon success. -->
+// This is the function called upon success.
 function sayHiResponse(response)
 {
     responseSpan.firstChild.nodeValue = response.getResponseType();
 }
 
-<!-- This is the function called for an error. -->
+// This is the function called for an error.
+
 function sayHiError(error)
 {
       alert('error ' + error);
 }
 
-<!-- This function is invoked from the button press to run the service. -->
+// This function is invoked from the button press to run the service. 
 function invokeSayHi()
 {
     responseSpan = document.getElementById('sayHiResponse');

Modified: incubator/cxf/trunk/rt/javascript/src/main/resources/org/apache/cxf/javascript/cxf-utils.js
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/main/resources/org/apache/cxf/javascript/cxf-utils.js?rev=647235&r1=647234&r2=647235&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/main/resources/org/apache/cxf/javascript/cxf-utils.js
(original)
+++ incubator/cxf/trunk/rt/javascript/src/main/resources/org/apache/cxf/javascript/cxf-utils.js
Fri Apr 11 10:34:03 2008
@@ -20,8 +20,8 @@
 // Alternative, it could be made 'static', but this allowed us to use this same
 // object
 // to carry some state.
-const org_apache_cxf_XSI_namespace_uri = "http://www.w3.org/2001/XMLSchema-instance";
-const org_apache_cxf_XSD_namespace_uri = "http://www.w3.org/2001/XMLSchema";
+var org_apache_cxf_XSI_namespace_uri = "http://www.w3.org/2001/XMLSchema-instance";
+var org_apache_cxf_XSD_namespace_uri = "http://www.w3.org/2001/XMLSchema";
 
 function cxf_apache_org_util_null_trace(message) {
 }
@@ -268,7 +268,7 @@
 
 CxfApacheOrgUtil.prototype.endSoap11Message = org_apache_cxf_end_soap11_message;
 
-const org_apache_cxf_base64_keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
+var org_apache_cxf_base64_keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
 
 function org_apache_cxf_base64_encode64array(input) {
 	var output = "";
@@ -397,7 +397,7 @@
 	return output;
 }
 
-const org_apache_cxf_base64_hD = "0123456789ABCDEF";
+var org_apache_cxf_base64_hD = "0123456789ABCDEF";
 function org_apache_cxf_base64_d2h(d) {
 	var h = org_apache_cxf_base64_hD.substr(d & 15, 1);
 	while (d > 15) {
@@ -467,7 +467,7 @@
 // <'
 // + uuid + '>\r\n\r\n' + value + '\r\n';
 
-const org_apache_cxf_XOP_NS = 'http://www.w3.org/2004/08/xop/include';
+var org_apache_cxf_XOP_NS = 'http://www.w3.org/2004/08/xop/include';
 
 function org_apache_cxf_deserialize_MTOM_or_base64(element) {
 	var elementChild = this.getFirstElementChild(element);
@@ -528,9 +528,9 @@
 	this.READY_STATE_DONE = 4;
 }
 
-const org_apache_cxf_pad_string_PAD_LEFT = 0;
-const org_apache_cxf_pad_string_PAD_RIGHT = 1;
-const org_apache_cxf_pad_string_PAD_BOTH = 2;
+var org_apache_cxf_pad_string_PAD_LEFT = 0;
+var org_apache_cxf_pad_string_PAD_RIGHT = 1;
+var org_apache_cxf_pad_string_PAD_BOTH = 2;
 
 function org_apache_cxf_pad_string(string, len, pad, type) {
 	var append = new String();
@@ -600,7 +600,7 @@
 	return null;
 }
 
-const ORG_APACHE_CXF_MTOM_REQUEST_HEADER = 'Content-Type: application/xop+xml; type="text/xml";
charset=utf-8\r\n';
+var ORG_APACHE_CXF_MTOM_REQUEST_HEADER = 'Content-Type: application/xop+xml; type="text/xml";
charset=utf-8\r\n';
 
 // Caller must avoid stupid mistakes like 'GET' with a request body.
 // This does not support attempts to cross-script.



Mime
View raw message