Reading XML data from string
I need to read the xml data from a string and put it intot the grid.
How can this be done?Please elaborate
How can this be done?Please elaborate
ajay
May 21,
<html>
<head>
<title>ActiveWidgets Examples</title>
<style>body {font: 12px Tahoma}</style>
<script src="../../runtime/lib/aw.js"></script>
<link href="../../runtime/styles/xp/aw.css" rel="stylesheet"></link>
</head>
<body>
<script>
var ServerXML="<companies><company><ticker>MSFT1</ticker><name>Microsoft Corporation</name></company></companies>";
var table = new AW.XML.Table;
table.setXML(ServerXML);
var obj = new AW.UI.Grid;
obj.setId("myGrid");
obj.setCellModel(table);
obj.setRowCount(1); // or obj.setRowCount(table.getCount());
obj.setColumnCount(2);
document.write(obj);
</script>
</body>
</html>
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