Flashchick
03-12-2004, 05:04 PM
Hi all,
I have a frame structure (three frames) where the top one is my flash navigation. The navigation itself is quite complex so I have given up on the idea of creating a back button code to control the flash. All I want to do now is to refresh the flash page when browser's back button is pressed.
What I would like to do is to set a variable of the previous page I just have been so when I hit browser's back button I know if this page is the same as the variable. In each individual page i would set the varaible to be the previous page. Here are few things I have tried so far and none of them seems to work (even online!)
(sections is the name of the main frame)
old_page = parent.sections.history.previous;
old_page =document.referrer;
I tried both of them at the beginning of each page. then used onUnload command in the body tag to call a function on another frame where I have the comparison:
function check_history(old_page){
if (old_page == parent.sections.location){
alert(" refresh flash");
}
If I use referrer, the value is null (empty) or if I use history the variable is undefined.
Has anyone come accross with anything similar?
Thank you very much for your help.
I have a frame structure (three frames) where the top one is my flash navigation. The navigation itself is quite complex so I have given up on the idea of creating a back button code to control the flash. All I want to do now is to refresh the flash page when browser's back button is pressed.
What I would like to do is to set a variable of the previous page I just have been so when I hit browser's back button I know if this page is the same as the variable. In each individual page i would set the varaible to be the previous page. Here are few things I have tried so far and none of them seems to work (even online!)
(sections is the name of the main frame)
old_page = parent.sections.history.previous;
old_page =document.referrer;
I tried both of them at the beginning of each page. then used onUnload command in the body tag to call a function on another frame where I have the comparison:
function check_history(old_page){
if (old_page == parent.sections.location){
alert(" refresh flash");
}
If I use referrer, the value is null (empty) or if I use history the variable is undefined.
Has anyone come accross with anything similar?
Thank you very much for your help.