Hi Tyler,
thanks for your reply. I used your flex example and tried to display a
very simple table, but the only thing I see is the HTMLWrapper header
in the h1 tags.
What am I doing wrong?
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="
http://ns.adobe.com/mxml/2009"
xmlns:s="library://
ns.adobe.com/flex/spark"
xmlns:mx="library://
ns.adobe.com/flex/mx"
creationComplete="application1_creationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import framework.controller.Controller;
import framework.view.html.Document;
import framework.view.html.Navigator;
import framework.view.html.Window;
import mx.events.FlexEvent;
protected function
application1_creationCompleteHandler(event:FlexEvent):void
{
var con:Controller = new Controller(container);
var nav:Navigator = new Navigator(con);
var win:Window = new Window(nav, 800, 600);
win.frames[0].getLayer(0).innerHTML =
'<div style="width:800px; height:600px;">'+
'<h1>HTMLWrapper</h1>'
'<table>'+
'<tr><th>Header1</th><th>Header2</th></tr>'+
'<tr><td>Data1</td><td>Data2</td></tr>' +
'<tr><td>Data3</td><td>Data4</td></tr>' +
'<tr><td>Data5</td><td>Data6</td></tr>' +
'</table>'+
'</div>';
container.addChild(win);
}
]]>
</fx:Script>
<s:BorderContainer width="100%" height="100%"
borderWeight="3">
<mx:UIComponent id="container"/>
</s:BorderContainer>
</s:Application>
On 4 Mrz., 16:05, Tyler Larson <
tallty...@gmail.com> wrote:
> Can you give an example of what you would like to render so that I have something to work towards?
> And features that you feel are must haves.
>
> -Tyler
>
> On Mar 4, 2011, at 2:56 AM, wei cheng wrote:
>
> > Hi Tyler,
>
> > I am only waiting for table related tags.
>
> > Cheers,
> > Cheng Wei
>
> > 2011/3/4 Tyler Larson <
tallty...@gmail.com>
>
> > Are you only waiting for table related tags or is there something else that you looking for?
>
> > -Tyler
>
> > On Mar 3, 2011, at 9:23 PM, wei cheng wrote:
>
> >> Hi Tyler,
>
> >> Interesting. I am watching the feature of table support too. Hopefully this can be decently supported by ASTRID.
>
> >> Cheers,
> >> Cheng Wei
>
> >> 2011/3/4 Tyler Larson <
tallty...@gmail.com>
>
> >> The best list of implemented tags to go from is what is provided in the code
> >> For HTMLWrapperhttps://
github.com/talltyler/HTMLWrapper/blob/master/TagsBase.as
> >> A basic implementation of tables should work but they are far from as flexible as what is possible in HTML.
> >> I was trying to impliment the new HTML5 table features but didn't get to far. Tables are complicated.
>
> >> There was an ActionScript 2 project that does a little better without the new HTML 5 features of course.
> >>
http://osflash.org/flashml
>
> >> If you have time to contribute, it would be awesome to port this as2 project to 3 and get it working with the rest of ASTRID
>
> >> -Tyler
>
> >> On Mar 3, 2011, at 6:59 AM, chegger007 wrote:
>
> >>> Hi Tyler,
>
> >>> thanks for your framework, looks like a very promising way to merge
> >>> HTML and AS.
>
> >>> My question is: Is there a list of HTML elements that are supported in
> >>> htmlwrapper?
> >>> For my flex application I need to display HTML tables and it seems not
> >>> to work....if the table element is not supported, which approach would
> >>> you propose to display HTML tables in Flex?
>
> >>> Thanks in advance!
>
> >>> --
> >>> 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 athttp://
groups.google.com/group/htmlwrapper?hl=en.