Actualización de página...

30/09/2004 - 17:12 por Diana | Informe spam
Hola:

Me pueden orientar sobre como forzar a que una página se
pueda actualizar en el browser del cliente, sin necesidad
de presionar la tecla F5.
Tengo las instrucciones:
<html>
<head>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="expires" CONTENT="0">
<% una conexión a bd...%>
<title></title>
<script funciones javascript ...
</script>
</head>

gracias...

Preguntas similare

Leer las respuestas

#1 Omar Valdovino
30/09/2004 - 18:49 | Informe spam
tal vez esto te sirva

http://www.asptutor.com/frontpage/s.../moved.htm

"Diana" escribió en el mensaje
news:183201c4a6ff$f4ae6e40$

Hola:

Me pueden orientar sobre como forzar a que una página se
pueda actualizar en el browser del cliente, sin necesidad
de presionar la tecla F5.
Tengo las instrucciones:
<html>
<head>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="expires" CONTENT="0">
<% una conexión a bd...%>
<title></title>
<script funciones javascript ...
</script>
</head>

gracias...
Respuesta Responder a este mensaje
#2 Franco Figún
30/09/2004 - 22:16 | Informe spam
En una pagina .asp, pones todo este codigo:

<%
response.clear
Response.CacheControl = "Private"
Response.ExpiresAbsolute = #1/1/2000 12:12:12#
Response.Expires = -1000
Response.Buffer = false
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"

If Not Response.IsClientConnected Then
Response.End
End If
%>

<script language="JavaScript">
var countDownInterval;
var c_reloadwidth 0
</script>
</center>
<ilayer id="c_reload" width=&{c_reloadwidth}; ><layer id="c_reload2"
width=&{c_reloadwidth}; left=0 top=0></layer></ilayer>
<script>
var countDownTime=countDownInterval+1;
function countDown(){
countDownTime--;
if (countDownTime <=0){
countDownTime=countDownInterval;
clearTimeout(counter)
window.location.reload()
return
}
if (document.all) //if IE 4+
document.all.countDownText.innerText = countDownTime+" ";
else if (document.getElementById) //else if NS6+
document.getElementById("countDownText").innerHTML=countDownTime+" "
else if (document.layers){
document.c_reload.document.c_reload2.document.write('Próxima <a
href="javascript:window.location.reload()">actualización</a> en <b
id="countDownText">'+countDownTime+' </b> segundos')
document.c_reload.document.c_reload2.document.close()
}
counter=setTimeout("countDown()", 1000);
}

function startit(){
if (document.all||document.getElementById)
document.write('Próxima <a
href="javascript:window.location.reload()">actualización</a> en <b
id="countDownText">'+countDownTime+' </b> segundos')
countDown()
}

if (document.all||document.getElementById)
startit()
else
window.onload=startit
</script>

FF
www.francofigun.com.ar
Yahoo MSN:
ICQ: 314408886
"Diana" escribió en el mensaje
news:183201c4a6ff$f4ae6e40$

Hola:

Me pueden orientar sobre como forzar a que una página se
pueda actualizar en el browser del cliente, sin necesidad
de presionar la tecla F5.
Tengo las instrucciones:
<html>
<head>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="expires" CONTENT="0">
<% una conexión a bd...%>
<title></title>
<script funciones javascript ...
</script>
</head>

gracias...
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida