# Undefined! Why?

**URL:** https://forum.kirupa.com/t/undefined-why/199202
**Category:** Uncategorized
**Created:** [August 31, 2006, 6:08pm UTC](https://forum.kirupa.com/t/undefined-why/199202 "2006-08-31T18:08:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![split67](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/split67/32/2089_2.png) [@split67](https://forum.kirupa.com/u/split67)
#### Post date: [August 31, 2006, 6:08pm UTC](https://forum.kirupa.com/t/undefined-why/199202/1 "2006-08-31T18:08:07Z")

</div>

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](http://www.shakeyhands.com/BunnyB/index.html)  
click on the gallery link and select an image.

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";
