:: Forum >> Version 1 >>

layout problem

can someone tell me what I'm doing wrong here?

Style:

<style>
        .
active-controls-grid {width230pxheight360pxfontmenuoverflowhidden;}

        .
active-column-{width1pxbackground-color:#FFFFFFvisibility:hiddendisplaynone!important;}
        .
active-column-{width90px; }
        .
active-column-{width130px; }

        .
active-grid-column {border-right1px solid threedlightshadow;}
        .
active-grid-row {border-bottom1px solid threedlightshadow;}

        .
active-templates-row.gecko display: -moz-boxwidthautomin-width100%; }

        .
active-row-highlight {background-color#ddeeff!important}
        .
active-row-highlight .active-row-cell {background-color#ddeeff;}
    </
style>
 
html:
[code <td align="left">
<div id="stuff">
<div id="loading" style="margin: 10px; color: #979797">Loading...</div>
</div>
</td>][/code]

js:
var table = new Active.XML.Table;
                
table.setURL(get_xml_url("list"));
                
table.request();
                var 
columns = ["id""head1""head2"];

                
//    create ActiveWidgets Grid javascript object
                
var obj = new Active.Controls.Grid;
                
obj.setColumnProperty("texts"columns);
                
obj.setDataModel(table);

                var 
alternate = function(){
                        return 
this.getProperty("row/order") % 2 ? "#fcfaf6" "#ffffff";
                    }

                var 
mark = function(){
                        var 
this.getProperty("row/index");
                        return (
i==|| i==|| i==5? true false;
                      }

                var 
row = new Active.Templates.Row;
                
row.setStyle("background"alternate);
                
row.setClass("mark"mark);
                
row.setEvent("onmouseover""mouseover(this, 'active-row-highlight')");
                
row.setEvent("onmouseout""mouseout(this, 'active-row-highlight')");
                
obj.setTemplate("row"row);
document.getElementById("events").innerHTML obj;

 
I get no scroll bars Horizontal or vertical, the columns don't line up properly, the column headers don't show up properly and don't resize.. it's a mess. I've used the widget before with success but I'm not sure what's going on here.
Dave
Monday, June 13, 2005



This topic is archived.

Back to support forum

Forum search