4
td.result{border-bottom: 1px solid green;}
5
td.head{background-color:#ffeedd;border-top: 1px solid green;border-right: 1px solid green;border-bottom: 2px solid black;}
7
table {border: 1px dotted gray; padding: 1em;}
10
<script language="javascript" src="../jquery/jquery-1.8.2.min.js"></script>
12
<script language="javascript">
14
// The API is passed a customer ID and the name of the return function
15
function ResultClicks(returnedData)
17
// An XML DOM document is returned from AJAX
18
var resultset=returnedData.childNodes[0];
22
// Iterate over all nodes in root node (i.e. customers)
23
for (i = 0; i < resultset.childNodes.length; i++) {
24
// Iterate over all child nodes of that node that are booking nodes
25
if(resultset.childNodes.item(i).nodeName=="click"){
26
// Retrieve first name and last name for node
27
var booking=resultset.childNodes.item(i);
30
output+="<td>"+booking.attributes['numberofclicks'].nodeValue+"</td>";
31
output+="<td>"+booking.attributes['type'].nodeValue+"</td>";
32
output+="<td>"+booking.attributes['customerid'].nodeValue+"</td>";
33
output+="<td>"+booking.attributes['clickdata'].nodeValue+"</td>";
40
var div=document.getElementById('OutputDiv');
44
function processinputbox()
46
value=document.getElementById("resType").value;
49
url: '../booking/getClicks_XML.php',
52
// customerID: // Optional : The id of the customer
62
<form name='searchClicks'>
63
Application:<input type='text' name='resType' id='resType' onchange="processinputbox()" onkeyup="processinputbox()">
66
<div id="OutputDiv" />