Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing a file loaded into the page
Message
De
30/11/2023 02:10:57
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
Tous
Information générale
Forum:
HTML5
Catégorie:
HTML
Titre:
Refreshing a file loaded into the page
Divers
Thread ID:
01687355
Message ID:
01687355
Vues:
53
For my autobiography I'm using static pages, which are FTP'd from my home box whenever I edit something. The navigation is in a separate navigaj.html file, which is generated each time, and loaded into the page, using jQuery, like this:
	<script>$("#leviokvir").load("navigaj.html", function()
			{
			$("#k1981").attr("open", true);
			$("#z1982").attr("open", true);			
			loRow=document.getElementById("g3003");
			loRow.scrollIntoView();
			loRow=document.getElementById("naslov");
			loRow.scrollIntoView();
			});
		</script>
Just try to navigate to this page and you'll see that the date in the headline is absent from navigation (well, maybe not if you're there the first time, but it will be if you have a cached version). The #k1981 is the div with the decade summary, and #z1982 with the year's.

Now the problem: the navigation file is cached, and I can't get it to refresh even manually, until I specifically navigate to it, replacing the "3003" in the url with "navigaj", and then pressing ctrl+f5 (or ctrl-clicking the refresh button). I tried a couple of tricks on how to set the expiration on that file to something short, like a day or two, but it seems I found a few obsolete and deprecated features. How's that done in HTML5, for a file loaded on the side like this?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Répondre
Fil
Voir

Click here to load this message in the networking platform