2.5.1 vs 2.0.2 grid problems, possible bug?
Ok, having a few problems with my grids when trying to use 2.5.1 but I get no problems in 2.0.2.
With the following example, when using 251, when I try to resize during run time (not via css), I get a javascript error OR it will just hang up entirely. The only way to get out when it hangs is to kill IE entirely. Using IE6 only and can not use another browser. I am also getting on occassion some weird problems with row highlighting. It is almost like the onmouseover events are not working or the div's are the wrong size as I can get a row to highlight (and am then able to select it by clicking) but only if I use the bottom pixel of the row.
Trying to remember the other problem, there was one more...I'll dink with it more and get it figured out and post the other thing.
The XML output is similar to:
With the following example, when using 251, when I try to resize during run time (not via css), I get a javascript error OR it will just hang up entirely. The only way to get out when it hangs is to kill IE entirely. Using IE6 only and can not use another browser. I am also getting on occassion some weird problems with row highlighting. It is almost like the onmouseover events are not working or the div's are the wrong size as I can get a row to highlight (and am then able to select it by clicking) but only if I use the bottom pixel of the row.
Trying to remember the other problem, there was one more...I'll dink with it more and get it figured out and post the other thing.
The XML output is similar to:
<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>
Mike
February 20,