Welcome to TalkGraphics.com
Results 1 to 8 of 8
  1. #1

    Default Getting the pages to Refresh on load

    I understand there is a piece of code that you can add to your site to get the pages to refresh each time they are loaded rather than going to the viewers cache?

    Can you give me the code, thanks.

    Also do I add the code to the template so it is on all the pages? Or do I have to add it to each page?

    Do I put it into the Header or the Body of the template/page?

    Where do I go to access the area to put the code in?

    Thanks for the info. I am currently trying both standard and premium to see which to go for.

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: Getting the pages to Refresh on load

    This should work <META HTTP-EQUIV="refresh" CONTENT="15"> Goes in the <HEAD> area

    I think the 15 is the time it waits to refresh the page so could change this. It came from this site http://www.htmlgoodies.com/tutorials...g-The-Page.htm

    I would add it to the HEAD section of the page you want to reload. Website Properties > Page and click the <HTML> Code Head button and add the script in here.

  3. #3

    Default Re: Getting the pages to Refresh on load

    Fantastic! Works perfectly. I am experimenting with trail version perhaps that is why there did not seem to be a HEAD button or box but I put it in the BODY for website and it worked. Perhaps the button/box to put it into the HEAD is only on the Premium version? Also the changes had happened when I click back to the page on the browser, instant - didn't even need to go to another browser page. Thank you so much.

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,814

    Default Re: Getting the pages to Refresh on load

    I would use <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">.
    Gary's approach your update the page every 15 seconds so if you were in a long read, you would lose the place.

    You could play about with a mix or all of the following to cover key browsers and 32- & 64-bit variants:
    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />


    A good source is:
    http://www.i18nguy.com/markup/metatags.html.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  5. #5
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: Getting the pages to Refresh on load

    Thanks Acorn - I knew you would have a better script.

    Janet - Your trial copy should have both buttons. The only thing missing from the trial versions I believe is the access to the free websites and templates and maybe some of the other content from the Online Content Catalog. All features should be working.

  6. #6
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,814

    Default Re: Getting the pages to Refresh on load

    Janet, buy Premium: http://www.xara.com/us/web-designer/compare/.
    If you have a 64-bit operating system, it must be Premium, otherwise all the extras are worth the price differntial.
    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  7. #7

    Default Re: Getting the pages to Refresh on load

    Thanks for this. Both work, the first is a very quick refresh - I can see advantages to that for urgent stuff. But second only refreshes when you load the page which is what I wanted. Thank you both.

    Re finding the HEAD I double checked an it only shows Body. I clicked on Utilities>web properties>website (but Page is the same) and could only find BODY. I will experiment to see if the code works on BODY for all pages.

    Follow up
    Just checked and the Standard trial version only has BODY but the Premium trial version has both HEAD and BODY. Does it matter which you use?
    Last edited by janet2280; 11 July 2016 at 03:56 PM. Reason: Follow up

  8. #8

    Default Re: Getting the pages to Refresh on load

    Quote Originally Posted by Acorn View Post
    Janet, buy Premium: http://www.xara.com/us/web-designer/compare/.
    If you have a 64-bit operating system, it must be Premium, otherwise all the extras are worth the price differntial.
    Acorn
    Thanks for the link. Looking at the list I do want slideshows/scrapbooks and the Find & Replace would be very useful. I have only got 32bit but there may be other things I would find useful once I had them.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •