You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2008/01/02 21:57:55 UTC
svn commit: r608224 - in /incubator/cxf/branches/2.0.x-fixes: ./
distribution/src/main/release/samples/restful_http_binding/test.html
Author: dkulp
Date: Wed Jan 2 12:57:55 2008
New Revision: 608224
URL: http://svn.apache.org/viewvc?rev=608224&view=rev
Log:
Merged revisions 605092 via svnmerge from
https://svn.apache.org/repos/asf/incubator/cxf/trunk
........
r605092 | jliu | 2007-12-18 00:19:32 -0500 (Tue, 18 Dec 2007) | 1 line
Apply patch provided by Jeff Yu. CXF-1308, CXF-1306.
........
Modified:
incubator/cxf/branches/2.0.x-fixes/ (props changed)
incubator/cxf/branches/2.0.x-fixes/distribution/src/main/release/samples/restful_http_binding/test.html
Propchange: incubator/cxf/branches/2.0.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: incubator/cxf/branches/2.0.x-fixes/distribution/src/main/release/samples/restful_http_binding/test.html
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/distribution/src/main/release/samples/restful_http_binding/test.html?rev=608224&r1=608223&r2=608224&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/distribution/src/main/release/samples/restful_http_binding/test.html (original)
+++ incubator/cxf/branches/2.0.x-fixes/distribution/src/main/release/samples/restful_http_binding/test.html Wed Jan 2 12:57:55 2008
@@ -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>