473,386 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Reloading Website??

I have created a website, however, when I make changes to it and upload to a hosting site it doesn't load the changes. Instead it loads the cache memory of the website. Is there a way of getting around this??
Oct 14 '08 #1
11 2803
joedeene
583 512MB
Unless you made a full flash website, I think this is in the wrong forum, but anyways, most browsers have a refresh button, or F5 also, and try clicking that and it should check the site again, and are you putting the uploaded site or flash file into the sites directory exactly where it was before?

joedeene
Oct 14 '08 #2
Sorry, should have said. Yes it is a full flash site, created in Flash 8. I no about the refresh button, but in Firefox this still doesn't make a difference as it loads the website from memory. The site is copied straight to the hosting site in the same location as before, overwriting the old data.

Is there a way of achieving a clear cache so that other users dont have to clear there cache to see the upload?
Oct 15 '08 #3
joedeene
583 512MB
No, you cannot clear the user's cache directly through flash, but there are ways to "prevent" the caching of the .swf file. Take a look of of this link off Adobe's Help Site. Let me know, if that works.

joedeene
Oct 15 '08 #4
Ok so I have to insert this into the HTML page for each one created. Fingers crossed it should fix it, however, when i then publish the document from Flash it doesn't keep the changes does this mean that it will need to be entered each time?
Oct 16 '08 #5
joedeene
583 512MB
What changes? the flash file changes? I thought you wanted the new changes to the flash file, if any to show. So basically, they're downloading the file each time...

joedeene
Oct 16 '08 #6
What changes? the flash file changes? I thought you wanted the new changes to the flash file, if any to show. So basically, they're downloading the file each time...

joedeene
For example.......... each time I update the website I 'Publish' the Flash document to create a HTML document. Now when that is Published the Flash file overwrites th changes in the HTML document e.g. where you put the coding from that Adobe site.

Does this mean that this code has to be entered each time the file is updated or can it be inserted into the Flash actionscript so this does not have to be done?
Oct 16 '08 #7
asedt
125 100+
For example.......... each time I update the website I 'Publish' the Flash document to create a HTML document. Now when that is Published the Flash file overwrites th changes in the HTML document e.g. where you put the coding from that Adobe site.

Does this mean that this code has to be entered each time the file is updated or can it be inserted into the Flash actionscript so this does not have to be done?
As I understand you, you are generate your HTML file with some Flash software, and as long as you can't change whats included when that is done you have to put it in yourself afterwards. But look if there is some template or something that is generating the HTML, then you can change it.
Oct 16 '08 #8
But look if there is some template or something that is generating the HTML, then you can change it.

Template????? There is no template in Flash 8. You simply create the HTML file by going to: FILE>> PUBLISH. Then this will create the HTML file, you understand????
Oct 16 '08 #9
joedeene
583 512MB
Template????? There is no template in Flash 8. You simply create the HTML file by going to: FILE>> PUBLISH. Then this will create the HTML file, you understand????
I would not directly publish the .html file, i would create the .swf flash file and then set it to a certain directory, and embed it with it centered, and as its picking up the flash file from the directory, the <head> tag will always be the same. Do you understand what I'm suggesting? If not I'll be glad to show an example, or source code.

joedeene
Oct 16 '08 #10
asedt
125 100+
Template????? There is no template in Flash 8. You simply create the HTML file by going to: FILE>> PUBLISH. Then this will create the HTML file, you understand????
I dont know anything about this but i think it is. And a google makes the trick:

http://livedocs.adobe.com/flash/8/ma...=00000822.html


"You can easily use the same template, change the settings, and publish a new HTML page. If you're proficient in HTML, you can also create custom templates using any HTML editor. Creating a template is the same as creating a standard HTML page, except that you replace specific values pertaining to a Flash SWF file with variables that begin with a dollar sign ($). "
Oct 17 '08 #11
bnashenas1984
258 100+
Hi
I have my own way to solve this problem..

Here's what I do:
Lets say you have a flash file (www.yourdomain.com/flashfile.swf) which is called by a HTML file (index.html).
When you publish your files change (index.html) to (index.php) then open it in a text editor and change the URL of your flash file to something like this:

Expand|Select|Wrap|Line Numbers
  1. www.yourdomain.com/flashfile.swf?rnd=<?PHP print date("U"); ?>
  2.  
This PHP code generates a 10 digit number of seconds past since (January / 1 / 1970) which helps you prevent the browser to show old versions of files.

By the way , this could be done by any other server side scripting languages like asp etc.

Hope this helps you
Oct 17 '08 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Greg Bryant | last post by:
Wondering why my setcookies didn't have any impact, I noticed the line in the manual that said the page needs to be reloaded before they take effect (which does make a certain kind of sense). So,...
8
by: Aspersion | last post by:
I'm building an ASP page that has a lot of text and graphics. There is a calculation facility on the page. The user enters several numbers in a form and presses a button to see the calculated...
2
by: Snolly | last post by:
Hi all, Here is my issue. I have a web page (lets call it page1) with an iframe in it that then opens a pop-up window (page2). The pop-up window is used to edit some data that was loaded into...
6
by: iwearwatches | last post by:
Group, What a root canal. Here is what I have: I have a page that has several layers that I will either show/hide based on a graphic/tab that the user clicks. (works perfectly)
3
by: Richard | last post by:
Hey there, I have a textbox and a listbox. When a user types a number in the textbox, I want to get all the records from a MS Access DB but without reloading the page. I now have something...
5
by: Admin | last post by:
Ok, fairly new to php but I am learning. This may be an easy question but here it goes anyway. I have a website that is built on php/mysql. My members can send and get email and instant...
9
by: andrewfelch | last post by:
Hello all, I'm using the metaclass trick for automatic reloading of class member functions, found at: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/160164 My problem is that if I 1)...
2
by: jamjam19 | last post by:
Hello, I've created a Flash movie with animation as a header for my website. This movie is embedded into my "header.html" file which is called by every page on the site (by way of PHP). Is...
2
by: rosie01 | last post by:
hi, I have set up a chat forum that loads within the website when a user logs in. However, this chat page loads everytime a user is brought to the welcome page. Is there any asp code that can be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.