<xml>
<host>
<value1 />
<value2>value2</value2>
<value3>value3</value3>
<value4>value4</value4>
<value5>value5</value5>
</host>
</xml>
<HTML>
<HEAD>
<LINK href="/ActiveWidgets202/runtime/styles/aqua/aw.css" rel="stylesheet"></LINK>
<SCRIPT src="/ActiveWidgets202/runtime/lib/aw.js"></SCRIPT>
<style>
#obj { left: 25px; top: 45px; width: expression(document.body.clientWidth - 50); height: 330px; }
#obj .aw-alternate-even {background: #fff;}
#obj .aw-alternate-odd {background: #eee;}
#obj .aw-mouseover-row {background: #c0c0c0;}
#obj .aw-mousedown-row {background: #999;}
#obj .aw-rows-selected {background: #316ac5; color: white; }
#obj .aw-rows-selected .aw-grid-cell {background: none!important; color: white!important;}
#obj .aw-rows-selected a:link { color: white; }
#obj .aw-rows-selected a:active { color: white; }
#obj .aw-rows-selected a:visited { color: white; }
</style>
</HEAD>
<BODY class="aw-background-1" style="overflow-y: hidden">
<SCRIPT>
data_url = '/cgi-bin/data.cgi';
var obj = new AW.Grid.Extended;
var data = new AW.XML.Table;
data.setURL(data_url);
data.setRequestMethod("POST");
data.setParameter("type", "lookup");
data_response = data.response;
data.response = function(xml) {
data_response.call(this, xml);
obj.setRowCount(data.getCount());
obj.refresh();
}
obj.setId("obj");
obj.setCellModel(data);
obj.setHeaderText(["", "", "head1", "head2", "head3", "head4", "head5"]);
obj.setColumnIndices([1,2,3,4,5,6]);
obj.setColumnCount(6);
obj.setSelectionMode("multi-row-marker");
obj.setSelectorWidth(25);
obj.setSelectorVisible(true);
obj.setSelectorTemplate(new AW.Templates.CheckedItem);
obj.setSelectorResizable(true);
document.write(obj);
data.request();
</SCRIPT>
</BODY>
</HTML>
obj.getCellTemplate().setEvent("oncontextmenu", function() {
// random context menu code
});
event.returnValue = false;
This topic is archived.