Request class is used for advanced users who find that our built-in callback and updatepanel are not enough and want to build a custom ajax request.
In above example, upon selection of customer, the customerNumber will be sent to server. At server-side, the orders of that customer will be queried and sent back to client-side in table format. At client-side, on receiving the response from server, the onDone event handle will be called to display out the result.
span style="color: #ff0000;">"/KoolAjax/koolajax.php";
$koolajax->scriptFolder = $KoolControlsFolder."/KoolAjax""form1" method="post""cbbCustomer" onchange="select_customer()">
<option value="""select customerNumber,customerName from customers limit 0,10""<option value='".$row["customerNumber"]."'>".$row["customerName"]."</option>""orderSummary" style="padding-top:10px;width:300px;"></div>
<script type="text/javascript""post",
url:"Process.php"//Show orders of customers
"orderSummary""cbbCustomer""")
{
request.addArg("customerNumber"
span style="color: #ff0000;">"../../../../Resources/config.php""customerNumber""select orderNumber,orderDate, status from orders where customerNumber=$customerNumber""<table border='1'>""<tr><th>Order Number</th><th>Order Date</th><th>Status</th></tr>""<tr>""<td>".$row["orderNumber"]."</td>""<td>".$row["orderDate"]."</td>""<td>".$row["status"]."</td>""</tr>""</table>"