|
Re: Help with function to read external file
I just think that because of the onload event, the assignment is only made when its finished loading the quotes.txt file. So at the point you perform the abc.text assignment, its not necessarily set the global variable that you're refering to yet.
I think this is why I was having problems with it as a function - due to the nature of this onload, and only getting the value set asynchronously.
Thanks for your thoughts though.
|