Tables

10 views
Skip to first unread message

fb6668

unread,
Oct 26, 2011, 10:46:30 AM10/26/11
to htmlwrapper
Hey,
I've just started looking into HTMLWrapper for my flex project and I
think it's pretty neat. I do have one problem, though, in that even
simple tables aren't being rendered.

I just doctored the FlexDemo app and put in the following code, but it
simply displays the contents of the cells in a vertical list.

window.frames[0].getLayer(0).innerHTML = '<div style="width:855px;
height:500px; background:#EEE;">' +
'<table border="1">'+
' <thead>'+
'    <tr>'+
'      <th><b>Month</b></th>'+
'      <th><strong>Savings</strong></th>'+
'    </tr>'+
'  </thead>'+
'  <tfoot>'+
'    <tr>'+
'      <td>Sum</td>'+
'      <td>$180</td>'+
'    </tr>'+
'  </tfoot>'+
'  <tbody>'+
'    <tr>'+
'      <td>January</td>'+
'      <td>$100</td>'+
'    </tr>'+
'    <tr>'+
'      <td>February</td>'+
'      <td>$80</td>'+
'    </tr>'+
'  </tbody>'+
'</table>' +
'</div>';


Displays:
Month
Savings
Sum
$180
January
$100
February
$80

instead of in the table format.

Any ideas what I'm doing wrong?

Tyler Larson

unread,
Oct 26, 2011, 11:17:51 AM10/26/11
to htmlw...@googlegroups.com

Tables are not supported currently. The layout logic within them is very complicated to get right and I just haven't had a case that I needed them because div based layouts are normally simpler and technically what is happening behind the scenes is far less processor intensive.

The start of table based rendering is inside of http://github.com/talltyler/ASTRID but not finished. ASTRID is another html rendering ActionScript library I created more recently.

-Tyler

> --
> You received this message because you are subscribed to the Google Groups "htmlwrapper" group.
> To post to this group, send email to htmlw...@googlegroups.com.
> To unsubscribe from this group, send email to htmlwrapper...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/htmlwrapper?hl=en.
>

fb6668

unread,
Oct 26, 2011, 1:34:24 PM10/26/11
to htmlwrapper
Great, I have ASTRID and it's really interesting. I wasn't very clear
in my previous post, because it was actually ASTRID that I was using
and still getting these results, not simply the HTMLWrapper. I agree
with you about the divs, but I'm having to render user-generated HTML
so the likelihood is that we'll need to include some sort of (very
basic) table support.

And one other question; my project has very many projects in it, and
rather than copying the framework into every project, it would be best
if I could use it as a Flex Library project, but when I try to put the
framework code into this type of project, I get a whole ream of
compilation errors. Can it be used in this way, or compiled into a
swc?

Thanks for your quick response.

On Oct 26, 5:17 pm, Tyler Larson <tallty...@gmail.com> wrote:
> Tables are not supported currently. The layout logic within them is very complicated to get right and I just haven't had a case that I needed them because div based layouts are normally simpler and technically what is happening behind the scenes is far less processor intensive.
>
> The start of table based rendering is inside ofhttp://github.com/talltyler/ASTRIDbut not finished. ASTRID is another html rendering ActionScript library I created more recently.

fb6668

unread,
Oct 27, 2011, 5:11:13 AM10/27/11
to htmlwrapper
OK, I sorted making it into a library project; the errors that the
project contains were in unreferenced classes, which weren't being
compiled in a normal project because they were unreferenced. I simply
removed or commented-out all the offending code and it now compiles as
a library.

On Oct 26, 7:34 pm, fb6668 <flovet...@gmail.com> wrote:
> Great, I have ASTRID and it's really interesting. I wasn't very clear
> in my previous post, because it was actually ASTRID that I was using
> and still getting these results, not simply the HTMLWrapper. I agree
> with you about the divs, but I'm having to render user-generated HTML
> so the likelihood is that we'll need to include some sort of (very
> basic) table support.
>
> And one other question; my project has very many projects in it, and
> rather than copying the framework into every project, it would be best
> if I could use it as a Flex Library project, but when I try to put the
> framework code into this type of project, I get a whole ream of
> compilation errors. Can it be used in this way, or compiled into a
> swc?
>
> Thanks for your quick response.
>
> On Oct 26, 5:17 pm, Tyler Larson <tallty...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Tables are not supported currently. The layout logic within them is very complicated to get right and I just haven't had a case that I needed them because div based layouts are normally simpler and technically what is happening behind the scenes is far less processor intensive.
>
> > The start of table based rendering is inside ofhttp://github.com/talltyler/ASTRIDbutnot finished. ASTRID is another html rendering ActionScript library I created more recently.

Tyler Larson

unread,
Oct 27, 2011, 10:15:59 AM10/27/11
to htmlw...@googlegroups.com

Cool thanks for the update. Try to use tables first and I will try to work on tables when I get some time.
Thanks for the interest in my work.
Reply all
Reply to author
Forward
0 new messages