Solved

Refreshing target page via flash menu.

Posted on 2004-08-27
5
259 Views
Last Modified: 2008-03-17
I have a flash menu that allows users to specifiy what page opens up.  This is achieved by actionscript assigned to each button..

on (release) {
    getURL("http://domain.com/Vault/index.php?sid="+_root.sid, "mainFrame");
}

but on several pages it shows login details & for some reason if the user logs out on one page & then goes to another page that contained login details it shows then still logged in, although if you refresh the page it then shows the true not logged in status.  Therefore is there a way to get a page to refresh on load or more to the point is there any code i can add to the menu's button actionscript so that after selecting a button the target page is refresh on loading?  or do you guys or girls know of another way?

Thanks.
0
Comment
Question by:creativepresence
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:creativepresence
ID: 11918044
I have sort or resolved the problem with...

<script type="text/javascript">
function refreshPage(){
window.location.reload( false );
}
</script>

<body onLoad="if (location.href.indexOf('reload')==-1) location.replace(location.href+'?reload')">

this reloads the page once it has reloaded & truth be known looks pretty rubbish.  Therefore to improve on the original question, instead of reloading the page once its loaded, is there a way to clear the cache of the target page?  thus acting as its a new page.

Hope this makes sense.

Thanks
0
 

Author Comment

by:creativepresence
ID: 11918064
Thinking about it, that may cause problems if the user want to stay logged in.  Therefore please give suggestions, although im putting this question on hold for the moment until i decide my course of action.
0
 
LVL 10

Accepted Solution

by:
muso120999 earned 180 total points
ID: 11922816
Can you not append the time or counter value to the getURL address above?  The page should load as new as long as the URL is different.

ie.
on (release) {
    getURL("http://domain.com/Vault/index.php?sid="+_root.sid + "&" + (index++), "mainFrame");
}
0
 

Author Comment

by:creativepresence
ID: 11935487
Hi Muso, That seem to work fine and thanks for your answer & also taking the time to read my question and follow ups. Im glad they made sense :o)  Anyway, enjoy the points & if i come across any issues with this question i will return, but until then thanks.
0
 
LVL 10

Expert Comment

by:muso120999
ID: 11936427
I have had to use something similar a couple of times myself, so I hoped it would work for you too.

Glad it did, and thanks for the points - I wasn't sure if you were still looking for an answer, just wanted to give my ten cents :-)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question