I am having some cache problems.
The code below is for updating a users profile,
When a user makes changes,
he/she is redirected back to the SWF where the editor is,
but the values remain the same.
They might think it did’nt update their changes,
but it did.
I tried using:
<META HTTP-EQUIV=“Pragma” CONTENT=“no-cache”>
<META HTTP-EQUIV=“Cache-Control” CONTENT=“no-cache”>
in the html where the swf is embeded,
but it did not work.
Is there some sort of cache control,
or a way to reload the new vars using actionScript.
I’m open to any ideas,
The code is below. Thanks.
stop();
loadText = new LoadVars();
loadText.load("../members/" + _root.username + "/profile.txt");
loadText.onLoad = function() {
genderSex.text = this.genderSex;
DOB.text = this.DOB;
location.text = this.location;
aboutMe.text = this.aboutMe;
};
function updateSex(){
this.genderSex.text = genderSex_drop.getSelectedItem().label;
}
//
function editProfile(){
username = _root.username;
password = _root.password;
genderSex = this.genderSex.text;
dob = this.DOB.text;
location = this.location.text;
aboutMe = this.aboutMe.text;
//secret = "HIDDEN";
getURL ("../change.cgi", "", "POST");
};