Canceling a 'refresh' meta tag

A

Andrew May

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
 
T

Thomas 'PointedEars' Lahn

Randy said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Alternative to http meta refresh 2
Meta refresh in Safari 3
meta tag 1
META REFRESH 1
META REFRESH 2
Writing a META tag? 2
Meta Refresh Tag (turn on and off) 4
Detect meta refresh to a page 0

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top