I send you the current code
many thanks!
<%@ taglib uri="
http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/struts-html" prefix="HTML" %>
<html>
<head>
<link href="../runtime/styles/flat/grid.css" rel="stylesheet" type="text/css" ></link>
<link href="../general/style.css" rel="stylesheet" type="text/css" ></link>
<script src="../runtime/lib/grid.js"></script>
<!-- grid format -->
<style>
.active-controls-grid {height: 100%; font: menu;}
.active-column-0 {width: 80px;}
.active-column-1 {width: 200px; background-color: threedlightshadow;}
.active-column-2 {text-align: right;}
.active-column-3 {text-align: right;}
.active-column-4 {text-align: right;}
.active-scroll-data {left:0px; top: 0px}
.active-grid-column {border-right: 1px solid threedshadow;}
.active-grid-row {border-bottom: 1px solid threedlightshadow;}
</style>
<script>
function inputFormAction(methodName){
document.forms[0].action = 'listInputForms.do?methodName='+methodName;
document.forms[0].method='POST';
document.forms[0].submit();
}
function startProposalAction(methodName){
document.forms[0].action = 'startProposal.do?methodName='+methodName;
document.forms[0].method='POST';
document.forms[0].submit();
}
function validate(form) {
var idNameIF = form.idNameIF.value; //document.getElementById("idNameIF");
var idPracticeIF = form.idPracticeIF.value; // document.getElementById("idPracticeIF");
var idSolutionIF = form.idSolutionIF.value; //document.getElementById("idSolutionIF");
var idStateIF = form.idStateIF.value; //document.getElementById("idStateIF");
var url = "examples/toto.ax?idNameIF=" + escape(idNameIF.value)+"&idPracticeIF="+ escape(idPracticeIF)+"&idSolutionIF="+escape(idSolutionIF)+"&idStateIF="+escape(idStateIF);
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
}
req.open("GET", url, true);
req.onreadystatechange = callback;
req.send(null);
}
function callback() {
if (req.readyState == 4) {
if (req.status == 200) {
res = req.responseText;
if(res){
createTable(res); // res = is a text with XML format, this I must put into the grid
}
}
}
}
</script>
<title>Untitled Document</title>
</head>
<body>
<HTML:form action="listInputForms.do" method="POST">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="titleGeneral">input forms for ${proposalType} (draft)</td>
</tr>
<tr>
<td class="formBorder"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="formulary">
<tr>
<td colspan="3"><img src="imgs/clear.gif" width="2" height="8"></td>
</tr>
<tr>
<td>
<div>
<script>
var table = new Active.XML.Table;
// provide data URL
table.setXML("");
// set columns
var columns = ["Practice", "Solution", "Company"];
// create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid;
// provide column labels
obj.setColumnProperty("texts", columns);
// provide external model as a grid data source
obj.setDataModel(table);
// write grid html to the page
document.write(obj);
</script>
</div>
</td>
</tr>
<tr>
<td colspan="3"><img src="imgs/clear.gif" width="2" height="8"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="footBarLeft"> </td>
<td valign="top" class="footBar"></td>
<td class="footBarRight"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><HTML:button property="createProposal" value="Create Proposal" styleClass="buttonNew" onclick="startProposalAction('loadStartProposalPage');"/></td>
<td><HTML:button property="createInputForm" value="New Input Form" styleClass="buttonNew" onclick="inputFormAction('newInputForm');"/></td>
<td><HTML:button property="searchInputForms" value="Search" styleClass="buttonNew" onclick="validate();"/></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</HTML:form>
</body>
</html>