Solved

Flex HTML output

Posted on 2008-10-01
3
652 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now