Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

refresh browser page after an update

Posted on 2011-09-30
7
Medium Priority
?
299 Views
Last Modified: 2012-05-12
I am using Flash CS3 and  ASP to update a database in MsAccess. Everything works fine.  The problem is that when I update the database and the SharedObject, I call the domain (to reflect the changes), BUT IT LOADS THE OLD INFORMATION. I need to EXIT or CLOSE the browser, and open the website again, and IT SHOWS THE CORRECT DATA.  I guess this has to do something with cache or expiration, but I can not figure it out.
The code below is after it has CORRECTLY updated the database, and I am ready to show the CURRENT UPDATE.  I thought that by calling the domain again, it will re-fresh it NUT NOT :(

Thanx

    var my_so:SharedObject = SharedObject.getLocal("tipocambio", "/");
    my_so.data.compra = compra.text;
    my_so.data.venta = venta.text;
    my_so.flush();
      getURL("http://www.bestratelaredo.com");            
0
Comment
Question by:crescue
[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
  • 4
  • 2
7 Comments
 
LVL 29

Accepted Solution

by:
dgofman earned 2000 total points
ID: 36892968
Can you try to validate if files saved?

var my_so:SharedObject = SharedObject.getLocal("tipocambio", "/");
    my_so.data.compra = "compra";
    my_so.data.venta = "venta";
    my_so.flush();
my_so.close();

my_so= SharedObject.getLocal("tipocambio", "/");
trace( my_so.data.compra);
trace(my_so.data.venta);
0
 

Author Comment

by:crescue
ID: 36893062
Yes, it validates
IF I close the browser, and re-load it again  EVERYTHING WORKS !!!
or how can I force the browser to close ?
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36893094
You don'n need to close a browser.

As soon you execute flush command the data it saved.

Why do you want to close a browser?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:crescue
ID: 36893119
Ohhh I guess I didn't explain correctly, sorry
It does update the SharedObject  
THE PROBLEM is that I load the fields in the SharedObject  AND DISPLAY THEM IN MY BROWSER
but those values ARE NOT UPDATED unless I close the browser and load the page again
I have a button in Flash CS3 that performs the ASP, Flush, etc... IT WORKS FINE, but I am not able to see the update immediateley, UNLESS I CLOE THE BROWSER AND LOAD THE PAGE AGAIN

Thanx for ur help, sorry for the original explanation :(
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36894482
That is impossible, can you share your sample?
0
 
LVL 28

Expert Comment

by:sybe
ID: 36901811
The problem is probably in Flash. It caches urls. Force flash to reload the url properly, for example by adding a time dependent value in the querystring.
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36908287
That cannot be flash problem as soon as SharedObject get flush command data submitted to the file
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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 what frame rate is, how to control it and what effect it has on the video.

715 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