# Load asp problem

**URL:** https://forum.kirupa.com/t/load-asp-problem/26308
**Category:** Uncategorized
**Created:** [July 21, 2003, 9:56pm UTC](https://forum.kirupa.com/t/load-asp-problem/26308 "2003-07-21T21:56:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)
#### Post date: [July 21, 2003, 9:56pm UTC](https://forum.kirupa.com/t/load-asp-problem/26308/1 "2003-07-21T21:56:49Z")

</div>

Hello,

Here’s my problem: I am loading some variables from a asp page which is almost ok but it grabs the html tags as well…  
So instead of having something like A12=links& like i have in my page if i open it with IE, i get something like A12:“links” (when i check pressing ctrl alt v while playing the movie)

My load method is (thanks to the kirupas forum gurus):

var dyntext = new loadVars();  
dyntext.load(“http://some\_url/loadmenupage.aspx?ID=1”);  
dyntext.onLoad = function() {\_root.somebutton.buttontext= dyntext.A12;}

So 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: [July 21, 2003, 10:04pm UTC](https://forum.kirupa.com/t/load-asp-problem/26308/2 "2003-07-21T22:04:07Z")

</div>

sometimes, the onLoad function will not be executed unless it was defined before the load method is called… try this:

```auto
var dyntext = new loadVars();
dyntext.onLoad = function() {_root.somebutton.buttontext= this.A12;}
dyntext.load("http://some_url/loadmenupage.aspx?ID=1");

```

and make sure ‘buttontext’ is a variable and not an instance name 🙂

---

<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: [July 21, 2003, 10:21pm UTC](https://forum.kirupa.com/t/load-asp-problem/26308/3 "2003-07-21T22:21:33Z")

</div>

Thanks for your reply but i’m not sure it would solve my problem. Anyway i’ve tried it, and i’ve checked about my button’s variable, everything is correct but it still loads A12:“entreprise” instead of A12=entreprise for instance and i don’t understand why it messes with that as when i open my ASP page in IE, i really have A12=entreprise.

Here’s the output:

Variable \_level0.boutons.dyntext = [object #1, class ‘LoadVars’] {  
onLoad:[function ‘onLoad’],  
A12:“entreprise”,

any idea?

---

<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: [July 22, 2003, 2:38am UTC](https://forum.kirupa.com/t/load-asp-problem/26308/4 "2003-07-22T02:38:15Z")

</div>

bah i’m dumb, found my pb, nevermind.

---

<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: [July 22, 2003, 4:15am UTC](https://forum.kirupa.com/t/load-asp-problem/26308/5 "2003-07-22T04:15:22Z")

</div>

lol

care to share what it was? =)
