# Html in loading txt file

**URL:** <https://forum.kirupa.com/t/html-in-loading-txt-file/19478>\
**Category:** Uncategorized\
**Created:** [April 28, 2003, 4:01pm UTC](https://forum.kirupa.com/t/html-in-loading-txt-file/19478 "2003-04-28T16:01:41Z")\
**Posts on this page:** 9\
**Page:** 1

<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:** [April 28, 2003, 4:01pm UTC](https://forum.kirupa.com/t/html-in-loading-txt-file/19478/1 "2003-04-28T16:01:41Z")

</div>

ok i need to have a txt file loaded into a dynamic textfield, with the scroll bar ui component controlling it. for some reason this is a problem ☹ any tutorials or ideas guys? highly appreciated

---

<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:** [April 28, 2003, 4:32pm UTC](https://forum.kirupa.com/t/html-in-loading-txt-file/19478/2 "2003-04-28T16:32:56Z")

</div>

tutorial [here](http://www.kirupa.com/developer/mx/dynamic_scroller.htm). 🙂

just change the script to

```auto
loadText = new loadVars();
loadText.load("kirupa.txt");
loadText.onLoad = function() {
scroller.html = true;
scroller.htmlText = this.kirupatext;
};

```

😉

---

<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:** [April 28, 2003, 4:55pm UTC](https://forum.kirupa.com/t/html-in-loading-txt-file/19478/3 "2003-04-28T16:55:31Z")

</div>

ok but the problem is my html in my textfile is not working… this is what u see

\<a href=“[http://www.delsuioanlfx.com](http://www.delsuioanlfx.com)”\>"I am an \</a\>example of text that has been loaded from a separate location on kirupa’s server.

Best of all, notice that you can scroll the contents of the text up and down by clicking on the arrows. This is a nice, useful feature that you can

i need the href to work and be hidden

---

<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:** [April 28, 2003, 4:59pm UTC](https://forum.kirupa.com/t/html-in-loading-txt-file/19478/4 "2003-04-28T16:59:10Z")

</div>

```php
<a href='http://www.delsuioanlfx.com'>I am an</a> example of text blah, blah, blah...

```

---

<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:** [April 28, 2003, 5:25pm UTC](https://forum.kirupa.com/t/html-in-loading-txt-file/19478/5 "2003-04-28T17:25:51Z")

</div>

this is f@cked up its still not working i am going nuts

---

<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:** [April 28, 2003, 5:29pm UTC](https://forum.kirupa.com/t/html-in-loading-txt-file/19478/6 "2003-04-28T17:29:00Z")

</div>

ok where in this do i put html-true

loadText = new loadVars();  
loadText.load(“kirupa.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
scroller.text = this.kirupatext;  
};

---

<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:** [April 28, 2003, 5:32pm UTC](https://forum.kirupa.com/t/html-in-loading-txt-file/19478/7 "2003-04-28T17:32:22Z")

</div>

> _Originally posted by kax_

```auto
loadText = new loadVars();
loadText.load("kirupa.txt");
loadText.onLoad = function() {
scroller.html = true;
scroller.htmlText = this.kirupatext;
};

```

but not necessarily… just put it before you assign the text to the TextField.

---

<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:** [April 28, 2003, 5:42pm UTC](https://forum.kirupa.com/t/html-in-loading-txt-file/19478/8 "2003-04-28T17:42:43Z")

</div>

OMG thank you so much bro… i had these lines swapped

scroller.html = true;  
scroller.htmlText = this.kirupatext;

\*\*\*\* hey thanks a bunch 🙂

---

<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:** [April 28, 2003, 5:46pm UTC](https://forum.kirupa.com/t/html-in-loading-txt-file/19478/9 "2003-04-28T17:46:10Z")

</div>

😛

no problem. 😉 =)
