Relax Breath of Solution.Community tech blog of Sameera Thilakasiri - Consultant UI, UX, RWD Specialist/ Interactive Designer

Just I wanted.. Do you?…

Display HTML content in Flex screen

Posted on July 11, 2010 | No Comments

Problem
I have a application where i need to display HTML text in flex screen (using TextArea). Problem is HTML text contains
tag which is not supported in flex htmlText property. So all the information under

tag is being displayed in single row. Is there any component which understands

tag and display in a tablur format.

Solution
Use Iframes for Flex.
Detailed explanation
An IFrame is an entity which has the ability to load any external HTML in Flex.You can either go for giving a direct URL as to the soource of the IFrame or you could also give a HTML text which understands things like Table and all.
You can get IFrames for Flex from http://code.google.com/p/flex-iframe/

You can also refer for Table and HTML support in flex.
http://code.google.com/p/flex-htmlfilter/
http://code.google.com/p/flex-table/

By default, Flash only supports a small subset of HTML in htmlText fields Reference:

Anchor tag ()
Bold tag   ()
Break tag ()
Font tag ()
Image tag ()
Italic   tag ()
List item tag ( 
  • ) Paragraph buy viagra online order | buy cialis tadalafil | buy levitra vardenafil 424 buy viagra | where to buy cialis without prescription | order online levitra tag () Text format tag () Underline tag () Flex-htmlFilter can be utilised to extend the HTML support of htmlText fields by enabling the use of: Unordered list tag (
      1. ) Table tag (
    • ) Ordered list tag (
  • ) Table row tag () Table column tag (
    ) Table header column () Table caption tag (
    ) Heading tags (

    ) As well as this, it allows the use of some "custom" buy viagra pill | where can i buy cialis | buy levitra online tags and some custom attributes of the above tags.


    Author
    Sameera Thilakasiri By Sameera Thilakasiri
    ,is a front-end developer based in Colombo, is a blogger and a lifestyle photographer.
    Follow him Twitter and Google+. Check out him.

    Comments

    Leave a Reply

    You must be logged in to post a comment.