I have external .txt files that loads information into a defined area. It works fine through testing on my computer. Once uploaded, I’m getting an undefined in the fields where the information should appear.
The link:
http://www.shakeyhands.com/BunnyB/index.html
click on the gallery link and choose an image. The text box reads “undefined”
Here’s the code i’m using to load the .txt file when a thumbnail is selected:
imageFrame.thumbSelected = function() {
showImage(this.imagePath);
loadText = new LoadVars();
loadText.load(this.txt);
loadText.onLoad = function() {
model.text = this.model;
colors.text = this.colors;
sizes.text = this.sizes;
};
};
here’s the line of code I’m using to load the proper .txt file when selected:
thumbFrame.txt = “Data/gal1/1_0”+x+".txt";