You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by jl...@apache.org on 2007/12/18 06:19:32 UTC
svn commit: r605092 -
/incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/test.html
Author: jliu
Date: Mon Dec 17 21:19:32 2007
New Revision: 605092
URL: http://svn.apache.org/viewvc?rev=605092&view=rev
Log:
Apply patch provided by Jeff Yu. CXF-1308, CXF-1306.
Modified:
incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/test.html
Modified: incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/test.html
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/test.html?rev=605092&r1=605091&r2=605092&view=diff
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/test.html (original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/test.html Mon Dec 17 21:19:32 2007
@@ -40,6 +40,10 @@
customers = customers['acme.Customers'];
var customer = customers['acme.customer'];
+ var t = document.getElementById("customertable");
+ while(t.rows.length > 1) {
+ t.deleteRow(t.rows.length-1);
+ }
if (customer.length) {
for (var i = 0; i < customer.length; i++) {
addCustomer(customer[i]);
@@ -69,7 +73,8 @@
var name = document.createTextNode(c['acme.name']);
td.appendChild(name);
tr.appendChild(td);
- t.appendChild(tr);
+ t.getElementsByTagName("tbody")[0].appendChild(tr);
+ //t.appendChild(tr);
}
</script>
</head>
@@ -87,12 +92,13 @@
<h1>Customers</h1>
<!-- Yes, this is using a table because I'm incompotent with HTML! -->
<table id="customertable">
+ <tbody>
<tr>
- <th><strong>ID</strong></th>
- <th><strong>Customer Name</strong></th>
+ <td><strong>ID</strong></td>
+ <td><strong>Customer Name</strong></td>
</tr>
+ </tbody>
</table>
- </div>
</p>
</body>
-</html>
\ No newline at end of file
+</html>