Solved

Flex HTML output

Posted on 2008-10-01
3
662 Views
Last Modified: 2013-12-12
In my flex application i need to show certain text which consists of html tags.I am giving you an example. <P>ABCDEFGHIJKLMN<b>OPQR</b>STU<i>VWX<i>YZ</P>.
Some <TABLE> tag are also present there.
The text should come to as it will show in html. I am passing the data through PHP from MYSQL database. Now it is showing me the as it was written previously. But i want that browser should parse the html portion. How to achieve these ?
Its urgent
0
Comment
Question by:akulavi
  • 2
3 Comments
 
LVL 19

Expert Comment

by:Gary Benade
ID: 22651307
The data is probably being stored in the database in escaped format, you will need to unescape it first
0
 

Author Comment

by:akulavi
ID: 22684665
i dont know regarding escaped format or unescaped format. User will enter the data through FCKEditor. And then data will save into MySql database as BLOB. So what can i do now ???
0
 
LVL 19

Accepted Solution

by:
Gary Benade earned 500 total points
ID: 22684790
Which component are you using to display this text data in flex?

If it's a TextBox are you setting the htmlText property to the html string above, or the text property?

Not all html tags are supported in flex, tags like table won't work for instance, it's mainly the formatting tags that work.

If you are using the htmlText property, put a breakpoint in the code and have a look what the text data looks like, if it's filled with ampersands & then you have to unescape the data in php before sending it to flex
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question