HighDots Forums  

REFRESH

Javascript (Italian) Il linguaggio JavaScript (it.comp.lang.javascript)


Discuss REFRESH in the Javascript (Italian) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
amavisti
 
Posts: n/a

Default REFRESH - 10-04-2003 , 03:43 PM






Scusate la domanda cretina, qual'è la stringa Java per il refreshg di una
pagina?

Andrea



Reply With Quote
  #2  
Old   
amavisti
 
Posts: n/a

Default Re: REFRESH - 10-04-2003 , 03:59 PM






X FAVORE, RISPONDETE, COME SI FA A RICARICA UNA PAGINA?



"amavisti" <b@b.it> ha scritto nel messaggio
news:ZpFfb.167075$hE5.5618167 (AT) news1 (DOT) tin.it...
Quote:
Scusate la domanda cretina, qual'è la stringa Java per il refreshg di una
pagina?

Andrea





Reply With Quote
  #3  
Old   
APB
 
Posts: n/a

Default Re: REFRESH - 10-04-2003 , 05:09 PM



Calmati cazzo, non siamo mica una hot-line! E per di più è sabato sera!

Usando HTML:
<META HTTP-EQUIV="Refresh" CONTENT="3;URL=http://www.some.org/some.html">

Usando javascript:
window.location.reload()

Se metti
window.location.reload(true)

ricarichi la pagina e tutti i suoi contenuti (come se premessi Shift-F5)

Alex.
--
__________________________________________________ _________
a p bertolini

"Se Dio è perfetto, perché ha creato le funzioni discontinue?"

#ICQ: 10681264
(www.webwarrior.org)



Reply With Quote
  #4  
Old   
Gabriele
 
Posts: n/a

Default Re: REFRESH - 10-05-2003 , 02:51 AM



Quote:
Scusate la domanda cretina, qual'è la stringa Java per il refreshg di una
pagina?
la stringa Java?... javascript o volevi dire proprio Java?

In javascript:
self.location.reload(); //dovrebbe andare bene

Riprendo un vecchio thread su questo NG:
-----------------------------------------------------------------------
<a href="javascript:self.location.reload();">Ricarica mi (manco fossi una
batteria..)</a>

Se vuoi forzare il reload richiedendo nuovamente la pagina al server, devi
mettere "true" come parametro:

<a href="javascript:self.location.reload(true);">Rich iedimi al Server</a>

Cito testualmente dalla documentazione di JS:

"If you supply true, forces an unconditional HTTP GET of the document from
the server. This should not be used unless you have reason to believe that
disk and memory caches are off or broken, or the server has a new version of
the document (for example, if it is generated by a CGI on each request)."
-----------------------------------------------------------------------
http://groups.google.it/groups?q=sel...t&lr=lang_ it
&ie=UTF-8&oe=UTF-8&selm=8o0luc%24bv8%241%40fe2.cs.interbusiness.it& rnum=1



In Java :
vedi se ti aiuta qualcuno sul NG di Java

Infine,

sabato 4 ottobre 2003 21.43
sabato 4 ottobre 2003 21.59
=
16 min.

.... e pretesa di risposta con "urlo" (maiuscolo)? Wow... :-|

Ciao.
--Gabriele





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.