# Dynamic text wont display html no matter what I try

**URL:** <https://forum.kirupa.com/t/dynamic-text-wont-display-html-no-matter-what-i-try/64370>\
**Category:** Uncategorized\
**Created:** [September 15, 2004, 4:23pm UTC](https://forum.kirupa.com/t/dynamic-text-wont-display-html-no-matter-what-i-try/64370 "2004-09-15T16:23:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuglobe](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@nuglobe](https://forum.kirupa.com/u/nuglobe)\
**Post date:** [September 15, 2004, 4:23pm UTC](https://forum.kirupa.com/t/dynamic-text-wont-display-html-no-matter-what-i-try/64370/1 "2004-09-15T16:23:41Z")

</div>

> loadText = new LoadVars();  
> loadText.load(“home.txt”);  
> loadText.html = true;  
> loadText.onLoad = function() {  
> loadedNews.htmlText = this.news;  
> loadedUpdates.htmlText = this.updates;  
> loadedMedia.htmlText = this.media;  
> };

I for the live of me cant get this to display html!  
What am I doing wrong. Thanks for the help.  
[www.genshiro.com/lina/lina.html](http://www.genshiro.com/lina/lina.html)

You can see what it shows here. No both no color, and no BR. Just displays the text the way its spaced in the txt file.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 4:46pm UTC](https://forum.kirupa.com/t/dynamic-text-wont-display-html-no-matter-what-i-try/64370/2 "2004-09-15T16:46:36Z")

</div>

```auto

loadText = new LoadVars();
loadText.load("your_txt.txt");
loadText.onLoad = function(success) {
	if (success) {
		// trace(success);
		textBox.html = true;
		textBox.htmlText = this.myNews;
	}
}; 

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 4:50pm UTC](https://forum.kirupa.com/t/dynamic-text-wont-display-html-no-matter-what-i-try/64370/3 "2004-09-15T16:50:17Z")

</div>

In your dynamic text box properties, do you have ‘render text as html’ selected? I use similar code to yours and it always works fine. Hope you get it sorted.

Nice site btw 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 5:46pm UTC](https://forum.kirupa.com/t/dynamic-text-wont-display-html-no-matter-what-i-try/64370/4 "2004-09-15T17:46:47Z")

</div>

> loadText = new LoadVars();  
> loadText.load(“home.txt”);  
> loadText.onLoad = function(success) {  
> if (success) {  
> // trace(success);  
> loadedNews.html = true;  
> loadedNews.htmlText = this.news;  
> loadedUpdates.html = true;  
> loadedUpdates.htmlText = this.updates;  
> loadedMedia.html = true;  
> loadedMedia.htmlText = this.media  
> }  
> };

[quote]

With the text

[quote]news=\<strong\>Come to Mama\</strong\>  
Sept 20 - Lina releases new single “Come to Mama”! A soulful, retro, hip track, with a French chorus! The single is

a truly original sound, style, and concept, by a true trendsetter. Along with “Come to Mama”, Lina releases the

anthem of all anthems, “I AM”, a powerful, smooth, uplifting track with a message of self assurance. The two tracks

display the range of the singer/songwriter and pave the way for a great album to come.  
New Album  
August 15 - Lina just wrapped up production on her sophomore_project titled_"Inner Beauty", her first release on

Hidden Beach recordings, and\*the follow up to her critically acclaimed 2001 debut “Stranger On Earth” (Atlantic).

The new album will feature Lina’s signature soulful fusion of RnB, Hip-Hop, Jazz and Swing,\*offering up the sure

hits “Leaving You”, “Come to Mama”, “Hope, Wish and Pray” and the blazin’ duet Anthony Hamilton, "Around the

World". Stay tuned for more details!  
Newsletter  
Sign up for Lina’s newsletter to qualify for free giveaways and stay on top of the latest info! “Sign Up Now”

(button)&updates=This is a test for the update section&media=This is a media test… please work&

I only have bold right now because I tried coding the whole thing with html but it didnt work, so I took it down to something simple. What am I doing wrong…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 5:47pm UTC](https://forum.kirupa.com/t/dynamic-text-wont-display-html-no-matter-what-i-try/64370/5 "2004-09-15T17:47:44Z")

</div>

> loadText = new LoadVars();  
> loadText.load(“home.txt”);  
> loadText.onLoad = function(success) {  
> if (success) {  
> // trace(success);  
> loadedNews.html = true;  
> loadedNews.htmlText = this.news;  
> loadedUpdates.html = true;  
> loadedUpdates.htmlText = this.updates;  
> loadedMedia.html = true;  
> loadedMedia.htmlText = this.media  
> }  
> };

With the text

> news=\<strong\>Come to Mama\</strong\>  
> Sept 20 - Lina releases new single “Come to Mama”! A soulful, retro, hip track, with a French chorus! The single is

a truly original sound, style, and concept, by a true trendsetter. Along with “Come to Mama”, Lina releases the

anthem of all anthems, “I AM”, a powerful, smooth, uplifting track with a message of self assurance. The two tracks

display the range of the singer/songwriter and pave the way for a great album to come.  
New Album  
August 15 - Lina just wrapped up production on her sophomore_project titled_"Inner Beauty", her first release on

Hidden Beach recordings, and\*the follow up to her critically acclaimed 2001 debut “Stranger On Earth” (Atlantic).

The new album will feature Lina’s signature soulful fusion of RnB, Hip-Hop, Jazz and Swing,\*offering up the sure

hits “Leaving You”, “Come to Mama”, “Hope, Wish and Pray” and the blazin’ duet Anthony Hamilton, "Around the

World". Stay tuned for more details!  
Newsletter  
Sign up for Lina’s newsletter to qualify for free giveaways and stay on top of the latest info! “Sign Up Now”

(button)&updates=This is a test for the update section&media=This is a media test… please work&

I only have bold right now because I tried coding the whole thing with html but it didnt work, so I took it down to something simple. What am I doing wrong…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 5:50pm UTC](https://forum.kirupa.com/t/dynamic-text-wont-display-html-no-matter-what-i-try/64370/6 "2004-09-15T17:50:50Z")

</div>

Try replacing news= with &news= in your text file?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 5:53pm UTC](https://forum.kirupa.com/t/dynamic-text-wont-display-html-no-matter-what-i-try/64370/7 "2004-09-15T17:53:49Z")

</div>

Nope.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 5:58pm UTC](https://forum.kirupa.com/t/dynamic-text-wont-display-html-no-matter-what-i-try/64370/8 "2004-09-15T17:58:38Z")

</div>

Here are the two files involved.
