Canceling a 'refresh' meta tag

Discussion in 'Javascript' started by Andrew May, Oct 5, 2007.

  1. Andrew May

    Andrew May Guest

    I have a page that is using AJAX type technologies to update some
    elements on a regular basis. As a fallback for browsers that do not
    support XMLHttpRequest I am putting:

    <meta http-equiv='refresh' content='5'>

    in the header to force a refresh of the whole page at regular intervals.

    What I have not been able to find is any way to cancel this whole page
    refresh once I have established that the browser supports
    javascript/XMLHttpRequest.

    Can it be done or am I going about it the wrong way?

    Thanks,

    Andrew
     
    Andrew May, Oct 5, 2007
    #1
    1. Advertising

  2. Randy Webb wrote:
    > if(ajaxSupported){
    > document.location.href="thisPageWithoutTheMetaTag.php?noRefresh";


    `document.location' has been deprecated long since in favor of
    `window.location'. The `href' property of Location objects was
    tainted in DOM Level 0, and should not be used in order to be
    compatible among DOM-0-supporting UAs.

    window.location = "thisPageWithoutTheMetaTag.php?noRefresh";


    PointedEars
    --
    realism: HTML 4.01 Strict
    evangelism: XHTML 1.0 Strict
    madness: XHTML 1.1 as application/xhtml+xml
    -- Bjoern Hoehrmann
     
    Thomas 'PointedEars' Lahn, Oct 5, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. aaa
    Replies:
    4
    Views:
    664
  2. shruds
    Replies:
    1
    Views:
    932
    John C. Bollinger
    Jan 27, 2006
  3. Nym Pseudo

    META NAME and META HTTP-EQUIV

    Nym Pseudo, Sep 26, 2003, in forum: HTML
    Replies:
    1
    Views:
    599
    =?iso-8859-1?Q?brucie?=
    Sep 26, 2003
  4. Jon Berg
    Replies:
    6
    Views:
    1,123
    Toby Inkster
    Apr 19, 2005
  5. Duane Johnson

    Meta methods to govern meta data?

    Duane Johnson, Oct 25, 2005, in forum: Ruby
    Replies:
    6
    Views:
    271
    Adam Sanderson
    Oct 28, 2005
Loading...

Share This Page