The <h3>...</h3> part is interfering with the view. The <table> element must be the first element inside the <div>. Try to remove the <h3> element.
David Yee-Ting Li wrote: > ops, sorry... > > http://www.slac.stanford.edu/~ytl/exhibit/ports.html > http://www.slac.stanford.edu/~ytl/exhibit/ports-notsorted.html > > Yee. > > On 10 Dec 2008, at 16:46, David Huynh wrote: > > >> Could you give us full URLs? http://www/ will not work for us. >> >> David >> >> yee379 wrote: >> >>> so i've found what appears to be a bug (or feature) >>> >>> if i used the rowStyler like in the following >>> >>> <div ex:role="view" >>> ex:viewClass="Tabular" >>> ex:label="Table" >>> >>> ex:columns >>> = >>> ".device >>> , .vendor, .model, .software_version, .last_seen, .uptime, .label" >>> ex:columnLabels="device, vendor, model, sw_version, >>> last_seen, uptime, action" >>> ex:sortColumn="1" >>> ex:sortAscending="true" >>> >>> ex:rowStyler="rowColour" >>> >>> <tr> >>> <td><span ex:content=".device"></span></td> >>> <td><span ex:content=".vendor"></span></td> >>> <td><span ex:content=".model"></span></td> >>> <td><span ex:content=".software_version"></span></td> >>> <td><span ex:content=".last_seen"></span></td> >>> <td><span ex:content=".uptime"></span></td> >>> <td><span ex:content=".label"></span></td> >>> </tr> >>> >>> </div> >>> >>> then it works (with the relevant rowColour() function). >>> >>> however, if i have the table content (ie all the <tr><td><span/></ >>> td></ >>> tr>) wrapped up in a <table> element then the entire table get's a >>> single colour rather than colouring each row dependent upon the >>> function. >>> >>> this is a problem because i need the <table/> wrapped around the >>> spans >>> in order to basically allow customised sorting of the columns - which >>> appears to require that the column contents must be in a <table/> >>> element. this is shown in the following example (note that this is a >>> different view to the one above) where i sort by a network 'port': >>> >>> http://www/~ytl/exhibit/ports.html >>> >>> however, if i leave out the <table/>, then it doesn't show the >>> correct >>> content on the sorted column (ie it just shows the label, rather than >>> the actual port): >>> >>> http://www/~ytl/exhibit/ports-notsorted.html >>> >>> i think a viable solution would be to allow the <table/> element to >>> contain the ex:rowStyler attribute. >>> >>> cheers, >>> >>> >>> >>> >>> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
