Load asp problem

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??

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

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 :slight_smile:

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?

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

lol

care to share what it was? =)