AW.HTTP.Request
Hi,
How can I put array using AW.HTTP.Request to JSP or HTML at the server side.
Thanks a lot.
How can I put array using AW.HTTP.Request to JSP or HTML at the server side.
Thanks a lot.
November 7,
function getGrid(){
var req = new AW.HTTP.Request;
req.setURL("Response.jsp");
req.setRequestMethod('POST');
req.setAsync(false)
req.response = function(data){
document.write(data);
}
req.request();
}
</script>
</head>
<body>
<script>
getGrid();
</script>
<span
style="cursor: pointer; text-decoration: underline"
onclick="getGrid();">
Make a request
</span>
</body>
var tree = {
0: [1, 2, 3],
1: [4],
2: [7],
3: [8],
4: [5,6]
}
var obj = new AW.UI.Tree;
obj.onItemClicked = function(event, index){
alert("you clicked on the " + index + " leaf");
window.status = index; // should work now
}
obj.onItemStateChanged = function(value, index){
this.getItemTemplate(index).refreshClasses(); return true;
}
obj.setItemText(["", "A", "B", "C", "A1", "A11", "A12", "B1", "C1"]);
obj.setViewCount(function(i){return tree[i] ? tree[i].length : 0});
obj.setViewIndices(function(i){return tree[i]});
obj.setStyle("background", "lightyellow");
document.write(obj);
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021