loadVar problem

Howdy
I´m having a textfield that is editable and then saved (by a button click) to a txt file. when pressing that button the visitor goes to another frame that just tells the user that the text is saved. Now my problem is that when the user goes back to the frame where he/she can edit the text the latest changes aren´t visible, but when closing the browser and returning to the page the new changes appears.
The code in my first frame (as learned from kirupa tutorials to make the scroller work).

[AS]
loadText = new loadVars();
loadText.load(“skivlog.txt”);
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.newtext;
};
stop();
[/AS]

The php I use to save the text works I just can´t figure out how to “refresh” the textfield when new text is edited. I tought that jumping to another frame where the scroller.text = “”, and then back would automaticly reload the text?
Very tankful for all help…

Here´s a link to the fla if anyone likes to try something similar.
Link to fla

It’s just a cache problem. Just add the bolded part next to the textfile name.


loadText.load("skivlog.txt**?var="+new Date().getTime()**);

Ok thx I´ve seen something similar to that before but never understood what is was for :wink:

Unfortunately it didn´t work, are you sure that´s the right code. Used it like this

[AS]
loadText = new loadVars();
loadText.load(“skivlog.txt?var=”+new Date().getTime);
// creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.newtext;
};
[/AS]

“getTime**()**” instead of “getTime”

(Forgot to add the brackets. It’s a function.)

YES!
Thx alot h88 thank you very much!