Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading HTML text 1

Status
Not open for further replies.

blacktorncoat

Programmer
Dec 2, 2004
32
IL
Hello,

I am loading a text file using myLoadVars.load("text.txt") and then put the result in a dynamic text box.

The file looks like:
text= info1
info2

info3
info4

This works fine, but what if I want to format the text using HTML ?

Then it would look like:
----------------------------------------
text=
<html xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns:w="urn:schemas-microsoft-com:eek:ffice:word"
xmlns="<head>
-------------------------------------------
and so on..


And when I load the file again, the 'text' var doesnt contain everything..

Could anyone refer me to an example where a complete HTML txt file is loaded into one dynamic text box?

Thanks,
Y.
 
Flash only yet officially supports 11 or so html1.0 tags within a text file. You cannot load an .html page in a dynamic textfield.


You can see how .html formated text (under the limited tags above...) is loaded through LoadVars(), here, on the second half of this page (Using HTML formatting)...


Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top