Browser auto refresh

Method 1:

Http header: “Transfer-Encoding: chunked” instead of content length
final chunk of length 0

http://en.wikipedia.org/wiki/Chunked_transfer_encoding

Method 2:
use loop of iframes. In the example belo instead of “BLAH BLAH” use another iframe

<!– iframe example –>

<html>
<head>iframe example</head>
<body>
<table>
<tr>
<td><a href=”http://www.cnn.com&#8221; target=”inlineframe”>blah</a></td>
<td>
<font face=”Verdana,Geneva,Arial,Helvetica,sans serif” size=”-1″>

</font>
</td>
</tr>
</table>
</body>
</html>
<!— inline.htm —>
<html>
<head>iframe example</head>
<body>
BLAH BLAH
<br>

BLAH

</body>
</html>
Method 3:
JS timer
http://stackoverflow.com/questions/12092705/automatic-refresh-of-gwt-screen/12092874#12092874

https://developers.google.com/web-toolkit/doc/1.6/tutorial/codeclient

drawbacks: inefficient, slow

Method 4:
http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ

Wait
Resond
close
Re-Open

Method 5:

<META http-equiv=”refresh” content=”5;URL=’http://example.com/'”&gt;

More Reading:

COMET – http://infrequently.org/2006/03/comet-low-latency-data-for-the-browser/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s